[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH 4/4] Use gettext.ldngettext when necessary (#467603)
- From: Jeremy Katz <katzj redhat com>
- To: anaconda-devel-list redhat com
- Subject: Re: [PATCH 4/4] Use gettext.ldngettext when necessary (#467603)
- Date: Tue, 2 Jun 2009 10:23:26 -0400
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
Jeremy
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]