Skip to main content

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>

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

i18nize_templates-0.1dev-20131011.tar.gz (49.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

i18nize_templates-0.1dev_20131011-py2.7.egg (38.5 kB view details)

Uploaded Egg

File details

Details for the file i18nize_templates-0.1dev-20131011.tar.gz.

File metadata

File hashes

Hashes for i18nize_templates-0.1dev-20131011.tar.gz
Algorithm Hash digest
SHA256 a316bc85daec74b5a8a4c93c7f51f027cdb994436c3e28b583602e823aa4ac6a
MD5 2c30fdcecc917763e8a7d1efd0eba40e
BLAKE2b-256 8f5375749095d9c01ccf3384671ce163e2ef8486734ba5ec3a3458a5df159202

See more details on using hashes here.

File details

Details for the file i18nize_templates-0.1dev_20131011-py2.7.egg.

File metadata

File hashes

Hashes for i18nize_templates-0.1dev_20131011-py2.7.egg
Algorithm Hash digest
SHA256 a1632204c2be959d9098554d114c06257de120c342ab6bcdca76374aba394ebc
MD5 9a941b7d4661449da072878ab06327a9
BLAKE2b-256 14f34c9323487c16912e4b6beca8658d8300b419955b163ea4b5433cd5e71c4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page