-
Notifications
You must be signed in to change notification settings - Fork 1
Translations
EpyMC use the standard gettext way for handling translations, it will use your system language by default, to force the usage of a different language you can run epymc in this way:
LANG=en_US epymc (change en_US to the language you like)
To add a new language to EpyMC just add it's code (ex: "it" or "en") to the LINGUAS
file present in the data/locale
folder of the sources and run:
python setup.py update_po
to generate the new empty po file under data/locale/your_code.po
Once you generate the empty po file you can edit it with a text editor or (much better) using the poedit application to edit the file. If you are editing a new po file don't forget to fill the information in the header of the file (just look at other existing file), really important are the charset
(usually UTF-8
) and the Plural-Forms
(this is language dependent).
To try your modification just reinstall epymc using:
(sudo) python setup.py install
This will compile your po file in the mo format under epymc/locale/your_code.mo
and this file will be installed alogside the others in the epymc package.