Getting Umit translated to your language
$ svn co https://umit.svn.sourceforge.net/svnroot/umit/trunk umit-svn
If you are starting a new translation
- Copy share/umit/locale/umit.pot to your lang.po,
example: $ cp share/umit/locale/umit.pot lang.po
- Use your favourite translator application or just a text editor to translate your new po file. If you opt to chose a common text editor, you will notice that the file format is straightforward. The "msgid" part is the source string, the "msgstr" part is the translated string.
- After translating you will have to compile the .po file:
$ python install_scripts/utils/i18n/msgfmt.py -o umit.mo lang.po
- Send lang.po and umit.mo files to a Umit Developer Updating an existing translation
$ msgmerge translation_file umit.pot -o new_translation file
Testing Translations
$ check_po ...
$ LANG=lang python umit
Graphical translation application: PoEdit? - http://www.poedit.net/
Umit Developers
- Remember to update umit.pot (share/umit/locale/umit.pot) after adding, updating or removing translatable strings: (this actually recreates)
$ python install_scripts/utils/i18n/pygettext.py
-o share/umit/locale/umit.pot umitCore umitGUI
- Structure for share/umit/locale:
- LANG/LC_MESSAGES/umit.mo
- LANG/LC_MESSAGES/LANG.po
This page was written by Guilherme Polo
Edited by Luis Bastião Silva
