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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file i18nize_templates-0.1dev-20131011.tar.gz.
File metadata
- Download URL: i18nize_templates-0.1dev-20131011.tar.gz
- Upload date:
- Size: 49.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a316bc85daec74b5a8a4c93c7f51f027cdb994436c3e28b583602e823aa4ac6a
|
|
| MD5 |
2c30fdcecc917763e8a7d1efd0eba40e
|
|
| BLAKE2b-256 |
8f5375749095d9c01ccf3384671ce163e2ef8486734ba5ec3a3458a5df159202
|
File details
Details for the file i18nize_templates-0.1dev_20131011-py2.7.egg.
File metadata
- Download URL: i18nize_templates-0.1dev_20131011-py2.7.egg
- Upload date:
- Size: 38.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1632204c2be959d9098554d114c06257de120c342ab6bcdca76374aba394ebc
|
|
| MD5 |
9a941b7d4661449da072878ab06327a9
|
|
| BLAKE2b-256 |
14f34c9323487c16912e4b6beca8658d8300b419955b163ea4b5433cd5e71c4a
|