logo

Translation

Available Translations are

Language Code Remark
English en default language
French fr
German ge
Hungarian hu
Italian it
Polish pl
Romanian ro
Russian ru
Spanish es
Telugu te update required

How to Translate the Program

Translation of the program is done with GNU gettext. There are free translation tools that make translation easy.

First Steps

Find out the correct language code (iso code) of your language. There is a 2 letter short code for almost every language, e.g. de for German language, etc. A list of these codes can be found in the Gettext Documentation.

Configuration on Windows Systems

Quit the program if it is running.

Open the configuration file which is located in in the configuration directory, see the Directory Layout chapter. Find the key General/langList. Add the code of your language with space separation.

Start the program and open the configuration dialog. Your language should be visible in the language list.

Make a new directory named like the code of your language in the program's folder, e.g.
c:\Program Files\Maitreya\LANG.

Copy the file maitreya.pot to that directory an rename it to LANG.po.

Configuration on Linux/Unix Systems

Go to the po directory of the source code tree. Edit the file LINGUAS and add the code of your language. Copy the file maitreya.pot to lang.po. Go to the root or the source tree and type

automake && autoconf && configure && make

The compiler will complain about missing header entries. Add these entries and try again.

Note: if you want to test your translation from the source code tree: create a directory named like the language code in the gui directory. Go into that directory and link the gmo file to maitreya.mo, e.g.
ln -s ../../po/lang.gmo maitreya.mo.

Translation

Get a po file editor like poEdit or KBabel (available as package on most Linux/Unix systems).

Open the LANG.po file and translate the messages. There about 1000 messages. Compile the message catalogue to lang/maitreya.mo (Windows) or lang.gmo (Linux/Unix) and test your translation.

You are encouraged to publish your translation for the benefit of the community.

Note: Non European languages should use a Unicode character set (UTF-8).