7 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
aa5c414d0b 18n_subsites: use configure_settings() to sanitize
Also needed for LOCALE overrides, etc.
2014-02-04 15:07:24 +01:00
Ondrej Grover
8ee994b70d i18n_subsites: improve develop server support
1. main site url root fix
2. support autoreload mode
Also removed trailing slash on dir name.
2014-02-04 14:24:44 +01:00
Ondrej Grover
72b5de1af6 i18n_subsites: fix HIDE_UNTRANSLATED_CONTENT
1. was removing items of an active iterator -> only first worked
2. Article inherits Page, so first check if is Article
2014-02-04 14:14:43 +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
Ondrej Grover
e4fef3ebdf new plugin: i18n_subsites
This plugin extends the translations functionality by creating i8n-ized
sub-sites for the default site.
This commit implements the basic generation functionality.
2014-02-02 09:09:20 +01:00