Personal tools
You are here: Home Products ArchGenXML Documentation How-tos Handling i18n translation files with ArchGenXML and i18ndude
Document Actions

Handling i18n translation files with ArchGenXML and i18ndude

This How-to applies to: Any version.

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
by Reinout van Rees last modified February 27, 2006 - 21:25

i18ndude setup on Windows

Posted by Tom Elliott at November 15, 2006 - 22:09
The i18ndude installer puts an i18ndude.exe file in the Scripts subdirectory of your python installation. You must put this directory (e.g., c:\Python24\Scripts) in your Windows PATH environment variable in order for ArchGenXML to be able to find i18ndude.

Fix some errors - windows

Posted by Diego Municio at March 9, 2007 - 10:52
If you are using Windows installer, you must change i18ndude script (C:\Python24\Scripts\i18ndude-script.py):
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).

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by