mirror of
https://github.com/vale981/ablog
synced 2025-03-06 17:51:39 -05:00
40 lines
1.4 KiB
ReStructuredText
40 lines
1.4 KiB
ReStructuredText
ABlog Internationalization
|
|
==========================
|
|
|
|
.. post:: Jun 10, 2014
|
|
: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.
|
|
|
|
|
|
.. _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
|
|
|
|
- extract_messages_ must run each time you changed some translatable
|
|
message texts::
|
|
|
|
$ python setup.py extract_messages -o ablog/locale/sphinx.pot
|
|
...
|
|
|
|
This will create a file :file:`ablog/locale/sphinx.pot`, the
|
|
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
|