A simple hyde website derived from the BASIC layout that provides support for a multilingual site.
mkvirtualenv hyde --no-site-packages
pip install -r requirements.txt
# Generate the site
hyde gen -r
# Serve
hyde serve
Uses babel for translations.
This can be vastly improved. One of the major goals of hyde 1.0 is to make it absolutely simple to create multi language sites. So, expect a lot of improvements in this area soon.
pybabel extract -F babel.cfg -o strings/messages.pot .
Using the ru
locale as an example:
pybabel init -l ru -i strings/messages.pot -d .
Now you can edit the catalog file at ./strings/ru/LC_MESSAGES/messages.po
pybabel compile -f -d ./strings
pybabel update -i ./strings/messages.pot -d ./strings