Message122355
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. |
|
Date |
User |
Action |
Args |
2010-11-25 12:11:55 | eric.araujo | set | recipients:
+ eric.araujo, belopolsky, bethard |
2010-11-25 12:11:55 | eric.araujo | set | messageid: <1290687115.29.0.292873846287.issue10497@psf.upfronthosting.co.za> |
2010-11-25 12:11:53 | eric.araujo | link | issue10497 messages |
2010-11-25 12:11:53 | eric.araujo | create | |
|