snes9x/gtk/po/README.md

1.7 KiB
Raw Blame History

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.