tranchitella.recipe.i18nBuildout recipe to extract and manage po files | |
Download |
tranchitella.recipe.i18n Ranking & Summary
Advertisement
tranchitella.recipe.i18n Tags
tranchitella.recipe.i18n Description
Buildout recipe to extract and manage po files tranchitella.recipe.i18n is a buildout recipe that creates i18n tools to extract and manage po files. More specifically, i18n messages can occur in Python code, in Chameleon (ZPT) page templates and in ZCML declarations.ScriptsThis recipe provides the following scripts: i18nextract: extract the i18n messages from the Python code, the Chameleon (ZPT) page templates and the ZCML configuration files; i18nmerge: requires the GNU gettext package to be installed; the command 'msgmerge' will be executed for each language; i18nstatus: prints a simple statistics with the status of the translations.Usage:Add to your buildout configuration file the following snippet:recipe = tranchitella.recipe.i18npackage = PACKAGEzcml = PACKAGE:configure.zcmlexpressions = first=PACKAGE.expressions:FirstExpression last=PACKAGE.expressions:LastExpressionoutput = localesdomain = DOMAINverify_domain = trueexclude = tests.py ftests.pyReplace PACKAGE with your Python package name and DOMAIN with your i18n domain; the zcml setting is optional. Requirements: · Python What's New in This Release: · Do not break if the message extracted from a python file contains utf-8 text.
tranchitella.recipe.i18n Related Software