Buildout recipe to extract and manage po files
Project description
tranchitella.recipe.i18n
This buildout recipe 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.
Scripts
This 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:
[i18n] recipe = tranchitella.recipe.i18n package = PACKAGE zcml = PACKAGE:configure.zcml output = locales domain = DOMAIN verify_domain = true exclude = tests.py ftests.py
Replace PACKAGE with your Python package name and DOMAIN with your i18n domain; the zcml setting is optional.
0.1 (2010-02-17)
First public release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for tranchitella.recipe.i18n-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6af8827e03f5c63b913bc27ed85584066eb8b6ef9bd59a9e8f786564dd06f2f |
|
MD5 | 96812c1f8eb9c2bfd1abaadf01e2cfc2 |
|
BLAKE2b-256 | 45f8972d02d846f5c4d77c94e1f73d8d802513844263a2c2bc005989daead33f |