abakan-zz / ablog

ABlog for blogging with Sphinx
ablog.readthedocs.org
Other
122 stars 35 forks source link

Internationalization #3

Closed lsaffre closed 10 years ago

lsaffre commented 10 years ago

The headings of certain parts ("Archives", "Recent posts") should automatically be in the correct language. E.g. the prototype site on http://luc.saffre-rumma.net/ is in German, but they remain English. I recommend the following links before getting started. http://jinja.pocoo.org/docs/extensions/#newstyle-gettext http://babel.edgewall.org/wiki/Documentation/messages.html

lsaffre commented 10 years ago

I forgot to mention http://jinja.pocoo.org/docs/integration/

abakan-zz commented 10 years ago

Thanks for pointers to the solution. It looks like (I took a quick look), all that's needed is using gettext around sidebar headers and other appropriate places. I pushed those changes. I can build docs without problems. If you find a chance to run them, please let me know how they work. I plan to make a new release in a week or so, and this may go in there.

abakan-zz commented 10 years ago

Thanks for the recent changes. Do we also need to change something to make command in i18n.rst to work?

abakan-zz commented 10 years ago

FYI, I made i18n a blog post and I plan to publish it when making a new release soon.