Adds i18n markup to jinja2 and handlebars templates.
Project description
i18nize-templates
=================
A tool to automatically add i18n markup to jinja2 and handlebars
templates. It may also work for django, though this is not tested.
This is part of a process to make a non-i18n-aware jinja2 or
handlebars file i18n-aware. i18n-ness support is mostly a matter of
marking natural-language text in the file that needs to be translated.
While some complicated natural language constructs (like plurals)
require a bit more work, the simple case is very simple: replace
<p>Hello <b>world</b></p>
with
<p>{{ _("Hello <b>world</b>") }}</p>
This script helps with that process.
Use
---
i18nize_templates <file> ...
OR
i18nize_templates [--handlebars] < <infile> > <outfile>
=================
A tool to automatically add i18n markup to jinja2 and handlebars
templates. It may also work for django, though this is not tested.
This is part of a process to make a non-i18n-aware jinja2 or
handlebars file i18n-aware. i18n-ness support is mostly a matter of
marking natural-language text in the file that needs to be translated.
While some complicated natural language constructs (like plurals)
require a bit more work, the simple case is very simple: replace
<p>Hello <b>world</b></p>
with
<p>{{ _("Hello <b>world</b>") }}</p>
This script helps with that process.
Use
---
i18nize_templates <file> ...
OR
i18nize_templates [--handlebars] < <infile> > <outfile>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for i18nize_templates-0.1dev-20131011.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a316bc85daec74b5a8a4c93c7f51f027cdb994436c3e28b583602e823aa4ac6a |
|
MD5 | 2c30fdcecc917763e8a7d1efd0eba40e |
|
BLAKE2b-256 | 8f5375749095d9c01ccf3384671ce163e2ef8486734ba5ec3a3458a5df159202 |
Close
Hashes for i18nize_templates-0.1dev_20131011-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1632204c2be959d9098554d114c06257de120c342ab6bcdca76374aba394ebc |
|
MD5 | 9a941b7d4661449da072878ab06327a9 |
|
BLAKE2b-256 | 14f34c9323487c16912e4b6beca8658d8300b419955b163ea4b5433cd5e71c4a |