This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients belopolsky, bethard, eric.araujo
Date 2010-11-25.12:11:53
SpamBayes Score 1.8229807e-11
Marked as misclassified No
Message-id <1290687115.29.0.292873846287.issue10497@psf.upfronthosting.co.za>
In-reply-to
Content
A bit of rationale behind the patch.  You probably know that the gettext/_ functions serves two roles: Identifying the strings to translate, and retrieving the translation from a catalog.

At strings extraction time, the string in the line
            msg = _('unknown parser %r (choices: %s)' % tup)
will be found by xgettext (just checked), so the .pot and .po files will include it.  So far, so good.

At runtime however, the gettext function will get "unknown parser 'parserr' (choices: ('some', 'tuple'))" as argument, which isn’t in the translation catalogs.  Doing the string interpolation after the gettext call (my patch) avoids this problem.

I will write a test for those two strings.
History
Date User Action Args
2010-11-25 12:11:55eric.araujosetrecipients: + eric.araujo, belopolsky, bethard
2010-11-25 12:11:55eric.araujosetmessageid: <1290687115.29.0.292873846287.issue10497@psf.upfronthosting.co.za>
2010-11-25 12:11:53eric.araujolinkissue10497 messages
2010-11-25 12:11:53eric.araujocreate