3 Commits

Author SHA1 Message Date
Ondrej Grover
4c33944bb9 i18n_subsites: add lang_subsites template var, improve docs
- the new variable makes it easier to implement language buttons
- a short howto on language buttons is also provided
- the dictionary mapping template vars are now OrderedDict
  for consistent-looking language buttons
2014-02-05 21:42:12 +01:00
Ondrej Grover
0c172ba023 i18n_subsites: consider templates lang, expand docs
this commit removes the need to make a dummy translation for
the language in which the templates are written.
This only affects themes using jinja2.ext.i18n.
The I18N_THEMES_LANG is introduced to address this issue.

Also expanded the docs for making gettext .po files with babel.
2014-02-03 20:04:40 +01:00
Ondrej Grover
0ed8750b7d i18n_subsites plugin: implement jinja2.ext.i18n support
this commit introduces optional support for translatable templates
2014-02-02 16:50:15 -08:00