Open adiroiban opened 3 years ago
I also have a patch to translate the values from pelicanconf.py
using gettext.
But I think that this patch is still valid for people who don't want to use gettext
@adiroiban Mind filing the same against my fork at https://github.com/georgkrause/i18n_subsites ?
To help organize the translations any text from pelicanconf.py that is presented on the site is put in a common dictionary
The idea is that if you add a new value in the default site and that site is not translated, it will be present in the translated site using the default language....similar to gettext.
Instead of using a simple copy with overwriting of root dict keys I went with a simple dict merge code.
I have simplified the tests.
to run the tests
An example