Handling i18n translation files with ArchGenXML and i18ndude
This How-to applies to: Any version.
The file i18n/generated.pot contains the translations that archgenxml itself is trying to extract from its own python files. You should download i18ndude and perform the following things:
- extract i18n info from your page templates (into yourproduct.pot).
- merge the generated.pot into yourproduct.pot.
sync yourproduct.pot with yourproduct-de.po.
Note that you've got to take care with the upper/lowercase names for your i18n domain, so check both your templates and your .po/.pot files.
Code examples
Extracting and merging:
i18ndude rebuild-pot --pot i18n/${PRODUCT}.pot --create ${PRODUCT} \
--merge i18n/generated.pot skins/$PRODUCT/*.ptSyncing:
i18ndude sync --pot i18n/${PRODUCT}.pot i18n/${PRODUCT}-nl.po \
i18n/${PRODUCT}-en.po
Fix some errors - windows
Replace the following line:
#!C:\python\python24\python.exe
with your python path, mine was:
#!C:\python24\python.exe
Then another error appears:
no module named pkg_resources
Fix it by installing setuptools (http://cheeseshop.python.org/pypi/setuptools).
i18ndude setup on Windows