Re: [PATCH 4/4] Use gettext.ldngettext when necessary (#467603)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/02/2009 04:23 AM, Jeremy Katz wrote:
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

The examples I could find online seemed to all use the former. The translation people seemed to like that form too.

--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux