Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27929
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <kwpolska@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'example:': 0.03; 'that?': 0.05; 'things.': 0.05; 'exit': 0.07; 'utf-8': 0.07; 'python': 0.09; 'positional': 0.09; 'snippet': 0.09; 'url:github': 0.09; '\xe2\x80\x94': 0.09; 'english.': 0.15; '--help': 0.16; '-- version': 0.16; '-h,': 0.16; '-v,': 0.16; '...]]': 0.16; 'anyways,': 0.16; 'argparse': 0.16; 'arguments:': 0.16; 'fancy': 0.16; 'gpg': 0.16; 'subject:argparse': 0.16; 'trash': 0.16; 'fix': 0.17; 'subject:support': 0.22; 'seems': 0.23; 'message- id:@mail.gmail.com': 0.27; 'optional': 0.29; 'received:209.85.210.174': 0.30; 'received:mail- iy0-f174.google.com': 0.30; 'to:addr:python-list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'received:209': 0.37; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'show': 0.63; '8bit%:33': 0.91; 'url:tk': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=kPieTZvNS+5ib9SvZiMVdfGwSu7I9Gd0Q9H5RwjY4uw=; b=ldLDTHk2eTzrBFwgB2T1V44az9HscSRjDQhZ+A2+orCzNnnzH92xdpGDZ88HG3TT0D EsT0p4kTLabmoorz/xA8qWu6pi78ejrAnMzRlBRtGXS9MStvwzwVEhHRtpQWO0QaLoQq VA6MOsYu2gNybPPHOZB8lS45t1VAkbW+eiK1zQyjzXxeC5GBY3lriFAyWg197EOEU/62 J4hmGkS82mc1OhrkeK8OqTRgi0LpZpBCV2vquYLjnSwlUktpK46o1kwgcYbH+AB4Tx8d YZb5BSCgRHy+vfA7V0Gup5j62fUBRZaP1f1feHcCKDWA/Oga2zzApxGtwxVe2PoVWh/F MzyA== |
| MIME-Version | 1.0 |
| Date | Sun, 26 Aug 2012 17:06:44 +0200 |
| Subject | argparse localization support |
| From | Kwpolska <kwpolska@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3839.1345993606.4697.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1345993607 news.xs4all.nl 6957 [2001:888:2000:d::a6]:49211 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:27929 |
Show key headers only | View raw
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? -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
argparse localization support Kwpolska <kwpolska@gmail.com> - 2012-08-26 17:06 +0200
csiph-web