Metadata-Version: 2.0
Name: i18nize-templates
Version: 0.2
Summary: Adds i18n markup to jinja2 and handlebars templates.
Home-page: https://github.com/csilvers/i18nize_templates
Author: Craig Silverstein
Author-email: csilvers+i18nize_templates@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Keywords: i18n jinja jinja2 handlebars translation
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Internationalization
Classifier: Topic :: Software Development :: Libraries :: Python Modules

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>


