On Monday, June 01 2009, David Cantrell said:
I've made the changes they have suggested. I created a new lambda
function called P_() to use for the plural cases. P_() takes in three
parameters:
[snip]
The % substitution is correct at the end because P_() returns a single
string, so we only need the format string to account for that.
[snip]
+P_ = lambda x, y, z: gettext.ldngettext("anaconda", x, y, z)
We could simplify the calling with
P_ = lambda x, y, z: gettext.ldngettext("anaconda", x, y, z) % z
but I don't know if that makes us more like or less like other things
which use a simpler wrapper for plural forms