Cleanup: Python API Docs: Text formating
This commit is contained in:
parent
4d7b664e1a
commit
b150071ece
@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Intro
|
Introduction
|
||||||
-----
|
------------
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
|
||||||
@ -9,9 +9,8 @@ Intro
|
|||||||
and the :func:`register`/:func:`unregister` functions! The :func:`pgettext` family of functions
|
and the :func:`register`/:func:`unregister` functions! The :func:`pgettext` family of functions
|
||||||
should only be used in rare, specific cases (like e.g. complex "composited" UI strings...).
|
should only be used in rare, specific cases (like e.g. complex "composited" UI strings...).
|
||||||
|
|
||||||
| To add translations to your python script, you must define a dictionary formatted like that:
|
To add translations to your python script, you must define a dictionary formatted like that:
|
||||||
| ``{locale: {msg_key: msg_translation, ...}, ...}``
|
``{locale: {msg_key: msg_translation, ...}, ...}`` where:
|
||||||
| where:
|
|
||||||
|
|
||||||
- locale is either a lang iso code (e.g. ``fr``), a lang+country code (e.g. ``pt_BR``),
|
- locale is either a lang iso code (e.g. ``fr``), a lang+country code (e.g. ``pt_BR``),
|
||||||
a lang+variant code (e.g. ``sr@latin``), or a full code (e.g. ``uz_UZ@cyrilic``).
|
a lang+variant code (e.g. ``sr@latin``), or a full code (e.g. ``uz_UZ@cyrilic``).
|
||||||
|
Loading…
Reference in New Issue
Block a user