Update TRANSLATING.txt

This commit is contained in:
bearoso 2023-08-23 15:13:01 -05:00 committed by GitHub
parent e49165c560
commit b488e426b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 11 deletions

View File

@ -1,15 +1,10 @@
To add a new language or update the existing ones:
If your language isn't here, add it to the LINGUAS file.
Generate the template file:
Change to the gtk directory and run 'xgettext -f po/POTFILES.in -o po/snes9x-gtk.pot'
This will update the snes9x-gtk.pot file in this directory with the latest strings.
Use meson in the gtk directory to create the build files, ie:
$ meson build
Use the program 'poedit' to use this template and create a new translation or merge the template's new strings into an existing .po file.
Change to the build directory and run 'ninja snes9x-gtk-update-po'
$ cd build
$ ninja snes9x-gtk-update-po
This will update all the .po files in this directory with the latest strings
and create any new files for those in LINGUAS.
Use any method desired to translate the strings in the .po file.
To automatically build the message catalog and install with the program, add the language code to the list on the line in gtk/CMakeLists.txt beginning with:
foreach(lang es fr ...