File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ For instance, in this :mod:`argparse` output:
815
815
-q, --quiet
816
816
817
817
The strings ``usage: ``, ``positional arguments: ``, ``options: `` and
818
- ``show this help message and exit `` are all translatable.
818
+ ``show this help message and exit `` are all translatable.
819
819
820
820
In order to translate these strings, they must first be extracted
821
821
into a ``.po `` file. For example, using `Babel <https://babel.pocoo.org/ >`__,
@@ -839,6 +839,7 @@ Once the messages in the ``.po`` file are translated and the translations are
839
839
installed using :mod: `gettext `, :mod: `argparse ` will be able to display the
840
840
translated messages.
841
841
842
+ To translate your own strings in the :mod: `argparse ` output, use :mod: `gettext `.
842
843
843
844
Conclusion
844
845
==========
You can’t perform that action at this time.
0 commit comments