-
Notifications
You must be signed in to change notification settings - Fork 7
i18n
LaunchPad has a very nice translations service that publishes and shares translations among projects. I'm using a BZR branch in launchpad to support automatic synchronization between the translation services and the branch, which hopefully will save me some manual effort.
- instructions from the project perspective: https://help.launchpad.net/Translations/YourProject
- how to synchronize bzr branches with translations: https://help.launchpad.net/Translations/ImportingFromBazaarBranches
- Translation settings: https://translations.launchpad.net/peppy/trunk/+translations-settings
Check out the launchpad bzr branch into the main svn:
cd [PEPPY-SVN-ROOT] bzr branch lp:peppy i18n.launchpad
All these commands are performed in the i18n.launchpad directory:
cd [PEPPY-SVN-ROOT]/i18n.launchpad
- update template file
make update-pot
- verify translation template if desired
- commit
bzr commit bzr push lp:peppy
- request download at https://translations.launchpad.net/peppy/trunk/+export
- wait for email
- download and merge:
wget http://launchpadlibrarian.net/...../launchpad-export.tar.gz ./merge.sh
- verify translations if desired...
- commit:
bzr commit bzr push lp:peppy
- transform message catalogs into python dict
make update-peppy
- verify message catalogs in peppy if desired
git diff ../peppy/i18n
- commit
Changed peppy to output tooltips without a trailing single "." because previously it was inconsistent. The problem is that I don't want to lose existing translations that may only differ by a trailing dot...
Added new script fixup-po.py to perform this conversion. But, because I changed the template file, there may be some translations that are missing from r17 or r18, so I'm going to try to merge from r14 to see if I missed any.