2009-12-22 13:34:42 +00:00
|
|
|
Translation support in ocitysmap
|
|
|
|
|
|
|
|
|
|
* To build .pot file
|
|
|
|
|
|
|
|
|
|
ocitysmap$ pygettext -d ocitysmap -p locale ocitysmap/street_index.py
|
|
|
|
|
|
|
|
|
|
* Make the .po file for your language. Look at Map_Features in your
|
|
|
|
|
language to find correct transaltions:
|
|
|
|
|
http://wiki.openstreetmap.org/wiki/Map_Features
|
|
|
|
|
|
|
|
|
|
ocitysmap$ cp locale/ocitysmap.pot locale/fr/LC_MESSAGES/ocitysmap.po
|
|
|
|
|
|
|
|
|
|
ocitysmap$ poedit locale/fr/LC_MESSAGES/ocitysmap.po
|
|
|
|
|
|
|
|
|
|
* Compile the .mo for your language
|
|
|
|
|
|
2009-12-23 09:11:35 +00:00
|
|
|
ocitysmap$ msgfmt -o locale/fr/LC_MESSAGES/ocitysmap.mo locale/fr/LC_MESSAGES/ocitysmap.po
|