Available Translations are
|Singalese||si||Only chart graphics|
Windows: Open the configuration dialog/tab general. Chose the language from the choice box. Restart the program.
Linux/OS x, UNIX: you must configure the environment variable LANG. The required command on the (Bash-) shell looks like
export LANG = de_DE.UTF-8
Examples for supported languages are
Please restart the application after changing the language.
Translation of the program is done with GNU gettext. There are free translation tools that make translation easy.
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.
The required PO file is
The PO file is part of the source code release. e.g. the file maitreya[version].zip that can be downloaded from the source code distribution. It can be found in the directory "po".
It can also be downloaded from the Github source code repository. The root URL of the repository is http://github.com/martin-pe/maitreya8/tree/master/po.
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 FilesMaitreyaLANG.
Copy the file maitreya8.pot to that directory an rename it to LANG.po.
Go to the po directory of the source code tree. Edit the file LINGUAS and add the code of your language. Copy the file maitreya8.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 maitreya8.mo, e.g. ln -s ../../po/lang.gmo maitreya8.mo.
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/maitreya8.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).