Re: String break request for Orca



Claude Paroz írta:
> Le mardi 17 février 2009 à 19:57 -0500, Willie Walker a écrit :
>> This has come back to spank me square in my butt.  I need to change:
>>
>> _("%s level %d")
>>
>> to:
>>
>> _("%(role)s level %(level)d")
>>
>> Although my testing and testing from a Hungarian translator (Hammer 
>> Attila) showed that the first form worked, another Hungarian translator 
>> (Gabor Kelemen) ended up being able to coax intltool into being more 
>> picky.  So, we need to go with the parameterized form.
> 
> Is the first form really buggy? I'm all in favour of this change for
> post 2.26, but I need to be convinced this is really a problem worth to
> break the string freeze.
> 

Well, as the comment says, the point of this string is to make it
possible for us to change the order of variables.

But how do you do this correctly in Python? Simply writing "%d foo %s"
does not work even in C, msgfmt complains. Writing "%2$d foo %1$s" would
work in C, but this is Python, where it doesn't.

So we have to use _("%(role)s level %(level)d") and break the freeze, if
we want to make reordering work.

For more details, please see
http://bugzilla.gnome.org/show_bug.cgi?id=572218.

Regards
Gabor Kelemen

> Claude
> 
>> Gabor has also shown me that "msgfmt -cvo /dev/null hu.po" will detect 
>> translations that attempt to translated the parameter names (e.g., 
>> "(role)" and "(level)" in the above), alieving my concern about those 
>> things getting translated by accident.
>>
>> Ah well, for the better, I guess,
>>
>> Will
> 
> _______________________________________________
> gnome-i18n mailing list
> gnome-i18n gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-i18n



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