dreikanter / public-static

Programmer's approach to web content management
https://github.com/dreikanter/public-static
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

Template localization #97

Open dreikanter opened 10 years ago

dreikanter commented 10 years ago

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.

dreikanter commented 10 years ago

24 is a bit obsolete duplicate:

Consider to use http://babel.pocoo.org. // Nope!

Configuration changes:

Keep template text, including culture-specific date and time formats, day names, and month names, in separate files for each language.

dreikanter commented 10 years ago

Some Jinja2 docs:

dreikanter commented 10 years ago

Ability to define template language for each separate page or post, Use lang field in the page header.