How to create new translation
Note: Requires version 1.2.9 or greater.
This document assumes current working directory is main directory of your TT-RS installation, de_DE is used as example locale name.
1. Create directory for your translation in standard locale format and LC_MESSAGES subdirectory for translation files:
mkdir -p locale/de_DE/LC_MESSAGES
2. Generate main .po file (messages.pot):
./update-translations.sh
3. Place messages.pot as messages.po into LC_MESSAGES directory:
cp messages.pot locale/de_DE/LC_MESSAGES/messages.po
4. Edit the file header as needed, translate strings, etc.:
vi locale/de_DE/LC_MESSAGES/messages.po
5. Use update-translations.sh to compile your messages.po into binary (.mo) format and merge any new strings from main if necessary:
./update-translations.sh
Sometimes, merging new strings generates "fuzzy" translations which are marked as such in your .po file - you will have to review them, fix incorrect assumptions of Gettext if necessary and remove the remark so they can be compiled and used by the application.