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

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



On Tuesday, June 02 2009, David Cantrell said:
> 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.

Okie doke, I just hate redundancy and wanted to make sure :)

Jeremy


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