Open dreikanter opened 10 years ago
Consider to use http://babel.pocoo.org. // Nope!
Configuration changes:
culture
(default value is locale.getdefaultlocale());auto
(use current culture);auto
should also be default value.Keep template text, including culture-specific date and time formats, day names, and month names, in separate files for each language.
Ability to define template language for each separate page or post, Use lang
field in the page header.
Babel integration and POT files usage seem to be overcomplicated and underdocumented. It would be better to use YAML files for localized messages for the template, and custom message loader class to support Jinja2's
{% trans %}
tags.