/novelyst_xx

Language pack for novelyst

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

novelyst_xx

Language pack for novelyst.


How to install the language pack

  1. Download the novelyst_xx.zip file.
  2. Unpack it and move the i18n/locale directory tree to your novelyst installation directory. This may be ~/.pywriter/novelyst.

How to create/update the language pack

  1. Check/edit the entries in the tools/settings.py file.
  2. Make sure you have got a recent messages.pot file for each program.
  3. Run the tools/set_up.py script to create or update the xx.po message catalogs.
  4. Edit the xx.po message catalogs in the programs subfolders.
  5. Run the tools/build_release.py script to create the zipfile for distribution.

Editing a message catalog

A "message catalog" is a dictionary for the program's messages and menu entries. The file name is xx.po.

Be sure to use a text editor that writes utf-8 encoded text. Otherwise, it may not work with non-ASCII characters used in your language.

The xx.po dictionary is organized as a set of message ID (msgid) - message string (msgstr) pairs, where msgid means the English term, and msgstr means the translated term. This is an example for such a pair where the message string is still missing:

msgid "Cannot overwrite file"
msgstr ""

Just enter all missing message strings.

  • If a message ID contains placeholders like {}, be sure to put them also into the message string.
  • If a message ID starts with !, the message string must also start with !.

Advertising a new/updated language pack

You may want to put a posting in the novelyst forum.


License

This is Open Source software, and novelyt_xx is licenced under GPLv3. See the GNU General Public License website for more details, or consult the LICENSE file.