Python Sudoku Translations HowTo

Add a new translation

To add a new translation follow these instructions:

  1. Change directory to po/
  2. Execute l10n --update to get a updated version of pythonsudoku.pot.
  3. Copy pythonsudoku.pot to LANGUAGE.po (for example gl.po).
  4. Translate the strings.
  5. Set the charset to UTF-8 and save the file as UTF-8 (iconv(1) for help).
  6. Execute l10n --install to convert the translation to GNU gettext format and move it to the correct directory.

Update a translation

To update a already created translation, due to new translatable strings added to sources or deleted strings, follow these instructions:

  1. Change directory to po/
  2. Execute l10n --update.
  3. Execute l10n --check to see the changed strings.
  4. If there are changes, open LANGUAGE.po (for example gl.po) and change the strings.
  5. Set the charset to UTF-8 and save the file as UTF-8 (iconv(1) for help).
  6. Execute l10n --install to convert the translation to GNU gettext format and move it to the correct directory.