Author eric.araujo
Recipients belopolsky, bethard, eric.araujo, eric.smith, georg.brandl
Date 2010-12-03.03:37:39
SpamBayes Score 0.000351732
Marked as misclassified No
Message-id <1291347461.83.0.702619237196.issue10528@psf.upfronthosting.co.za>
In-reply-to
Content
The incompatibility worries me a bit.  A program compatible with Python 3.1 and 3.2 would have to support both sets of messages; I don’t know whether the i18n tools support having all the strings in one PO file, and how inconvenient it would be for translators.  I assume such transitions have happened in many projects and that people just accept the inconvenience.

Attached patch changes the strings to avoid warnings.  No tests added (I intend to write tests for i18n in argparse in the future, see #10497 and #10529).

Steven, I’d like your +1 before committing anything.  One message in particular is not very helpful, but I’ve been unable to find better placeholders (it’s in ArgumentPaser._get_value):
  msg = _('invalid %(name)s value: %(arg_string)r')
History
Date User Action Args
2010-12-03 03:37:42eric.araujosetrecipients: + eric.araujo, georg.brandl, belopolsky, bethard, eric.smith
2010-12-03 03:37:41eric.araujosetmessageid: <1291347461.83.0.702619237196.issue10528@psf.upfronthosting.co.za>
2010-12-03 03:37:40eric.araujolinkissue10528 messages
2010-12-03 03:37:40eric.araujocreate