snes9x/gtk/po
Jake Smarter e2087adffb Add GTK+ pl translations 2023-08-31 11:42:32 +02:00
..
POTFILES.in GTK: Add some translation strings I missed. 2019-03-17 16:30:58 -05:00
README.md Add GTK+ pl translations 2023-08-31 11:42:32 +02:00
es.po Gtk: Fix some missing lines again. 2023-03-21 17:41:08 -05:00
fr_FR.po Merge branch 'master' into master 2020-06-30 14:13:50 -05:00
ja.po Merge branch 'master' into master 2020-06-30 14:13:50 -05:00
pl.po Add GTK+ pl translations 2023-08-31 11:42:32 +02:00
pt_BR.po Updated brazilian portuguese translation 2023-03-22 11:54:04 -03:00
ru.po Merge branch 'master' into master 2020-06-30 14:13:50 -05:00
snes9x-gtk.pot Add GTK+ pl translations 2023-08-31 11:42:32 +02:00
sr@latin.po Merge branch 'master' into master 2020-06-30 14:13:50 -05:00
uk.po Updating Ukrainian translation 2023-03-25 12:42:03 +02:00
updatepot.sh Add GTK+ pl translations 2023-08-31 11:42:32 +02:00
zh_CN.po Update version and copyright for 1.61. 2022-01-30 17:52:50 -06:00

README.md

Adding a New Language or Updating Existing Ones

  1. Generate the template file. Run the shell script updatepot.sh or change to the gtk directory and run:

    xgettext -f po/POTFILES.in --from-code=UTF-8 -o po/snes9x-gtk.pot -kmaybegettext -k_
    

    This will update the snes9x-gtk.pot file in this directory with the latest strings.

    • Use the program “poedit” with this template or your favorite text editor with a spell checker to create a new translation or,
    • merge the templates new strings into an existing .po file with msgmerge first and then edit the new .po file.
  2. In order to test your translations, you will have to build the message catalog and install Snes9x. Add the language code for your language to the list on the line in gtk/CMakeLists.txt beginning with:

    # Add any new language to this foreach loop
    foreach(lang es fr 
    

How to Add Language Files and What to Translate

Please avoid suffixing your language code with a region code unless it is absolutely necessary. In other words, if you know of any region specific distinctions in your language then and only then add the affected messages exclusively in a xx_XX.po file. Do not duplicate all messages from the base xx.po language file in a xx_XX.po language file but only translate region specific messages.

Source File Encoding

Make sure all source files are UTF-8 encoded.