Updated with more improvements translations guide

This commit is contained in:
Leonardo J. Caballero G 2018-04-18 18:42:23 -04:00
parent 50f7c8b245
commit 3b50dc09aa

View File

@ -16,13 +16,11 @@ For translating the Read the Docs Sphinx Theme you will need to install the foll
$ pip install babel Jinja2
If the command has been correctly installed, a command should allow you to use the following command:
Translating Applications with Babel
-----------------------------------
After you marked all the strings you want to translate in this Sphinx theme with the gettext function
alias ``_('str')`` or ``{% trans %}string 1, string 2, string 3, etc.{% endtrans %}`` blocks.
alias ``_('str')`` or ``{% trans %}string 1, string 2, string 3, etc.{% endtrans %}`` blocks.
Then its time to create a .pot file. A .pot file contains all the strings and is the template for a
.po file which contains the translated strings. The ``babel`` package can do all that for you.
@ -192,4 +190,3 @@ command will compile catalog of PO files:
.. code:: bash
$ python ./setup.py compile_catalog -d ./sphinx_rtd_theme/locale/