2014-07-29 23:04:28 -07:00
|
|
|
ABlog Internationalization
|
|
|
|
==========================
|
|
|
|
|
2014-08-24 20:21:29 -07:00
|
|
|
.. post::
|
2014-07-29 23:04:28 -07:00
|
|
|
:tags: i18n
|
|
|
|
:category: Manual
|
|
|
|
:author: Luc
|
|
|
|
|
|
|
|
ABlog automatically generates certain labels like :ref:`blog-posts` and
|
|
|
|
:ref:`blog-categories`. If these labels appear in English on your blog
|
|
|
|
although you specified another language, then this page is for you.
|
|
|
|
|
|
|
|
These labels need to be translated. ABlog needs your help.
|
|
|
|
|
|
|
|
|
2014-07-25 20:58:00 +03:00
|
|
|
.. _extract_messages: http://babel.edgewall.org/wiki/Documentation/setup.html#extract-messages
|
|
|
|
|
|
|
|
.. _init_catalog: http://babel.edgewall.org/wiki/Documentation/setup.html#init-catalog
|
|
|
|
|
|
|
|
.. _update_catalog: http://babel.edgewall.org/wiki/Documentation/setup.html#update-catalog
|
2014-07-29 23:04:28 -07:00
|
|
|
|
2014-07-25 20:58:00 +03:00
|
|
|
- extract_messages_ must run each time you changed some translatable
|
|
|
|
message texts::
|
2014-07-29 23:04:28 -07:00
|
|
|
|
2014-07-25 20:58:00 +03:00
|
|
|
$ python setup.py extract_messages -o ablog/locale/sphinx.pot
|
|
|
|
...
|
|
|
|
|
2014-08-22 20:31:46 -04:00
|
|
|
This will create a file :file:`ablog/locale/sphinx.pot`, the
|
2014-07-25 20:58:00 +03:00
|
|
|
central messages catalog used by the different translations.
|
|
|
|
|
|
|
|
- init_catalog_ must run after extract_messages_ once for each *new* language::
|
|
|
|
|
|
|
|
$ python setup.py init_catalog -l de -i ablog/locale/sphinx.pot -o ablog/locale/de/LC_MESSAGES/sphinx.po
|
|
|
|
|
|
|
|
This will create a file :xfile:`ablog/locale/de/LC_MESSAGES/sphinx.po`.
|
|
|
|
|
|
|
|
- update_catalog_ must run after extract_messages_ for each existing
|
|
|
|
language::
|
|
|
|
|
|
|
|
$ python setup.py update_catalog -l de -i ablog/locale/sphinx.pot -o ablog/locale/de/LC_MESSAGES/sphinx.po
|