Translate utils docs // uk_UA // TY @MelissaLemon

This commit is contained in:
Alex Root Junior 2022-10-14 19:46:19 +03:00
parent 7a618b41f9
commit 048172bcc2
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
12 changed files with 334 additions and 182 deletions

View file

@ -125,8 +125,8 @@ or define you own based on abstract I18nMiddleware middleware:
Deal with Babel
===============
Step 1: Extract messages
------------------------
Step 1 Extract messages
~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
@ -148,7 +148,7 @@ is template where messages will be extracted and `messages` is translation domai
Step 2: Init language
---------------------
~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
@ -161,14 +161,14 @@ Step 2: Init language
Step 3: Translate texts
-----------------------
~~~~~~~~~~~~~~~~~~~~~~~
To open .po file you can use basic text editor or any PO editor, e.g. `Poedit <https://poedit.net/>`_
Just open the file named :code:`locales/{language}/LC_MESSAGES/messages.po` and write translations
Step 4: Compile translations
----------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
@ -176,7 +176,7 @@ Step 4: Compile translations
Step 5: Updating messages
-------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~
When you change the code of your bot you need to update po & mo files