Handling i18n translation files with ArchGenXML and i18ndude

by Reinout van Rees last modified Dec 30, 2008 05:48 PM

How to use i18ndude in combination with ArchGenXML

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/*.pt

Syncing:

i18ndude sync --pot i18n/${PRODUCT}.pot i18n/${PRODUCT}-nl.po \
    i18n/${PRODUCT}-en.po