Message122355
| 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: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 |
|