argparse localization support

K

Kwpolska

I am using argparse in my project. I want to localize it, but it
seems to be impossible to change some things. See this, for example:

usage: trash [-h] [-V] [-e] [-l] [-r] [-v] [-w] [PLIK [PLIK ...]]

Trashman — menedżer śmietnika XDG w Pythonie.

positional arguments:
PLIK pliki do wyrzucenia

optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit

(a snippet of help for Trashman, a Python trash manager, with
LANG='pl_PL.UTF-8'; https://github.com/Kwpolska/trashman )

Anyways, you can see that -h and -V (added semi-automatically by
argparse), “usage:†and “positional/optional arguments:†are still in
English. It doesn’t look very professional. Also, I want to use
fancy UTF-8 characters. Is there a way to fix that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top