String break request for Orca

2009-02-17 Thread Willie Walker

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.


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


Re: String break request for Orca

2009-02-17 Thread Claude Paroz
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.

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


Re: String break request for Orca

2009-02-18 Thread Willie Walker

Hi Claude:

Gabor Kelemen commented on the simpler form not working for him at 
http://bugzilla.gnome.org/show_bug.cgi?id=572218#c6


Looks like whatever version of msgfmt that Gabor is using is smart 
enough to compare the order of the parameters.


Will

Claude Paroz wrote:

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.

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


Re: String break request for Orca

2009-02-18 Thread Gabor Kelemen
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

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: String break request for Orca

2009-02-18 Thread Claude Paroz
Le mercredi 18 février 2009 à 03:35 -0500, Willie Walker a écrit :
> Hi Claude:
> 
> Gabor Kelemen commented on the simpler form not working for him at 
> http://bugzilla.gnome.org/show_bug.cgi?id=572218#c6
> 
> Looks like whatever version of msgfmt that Gabor is using is smart 
> enough to compare the order of the parameters.

OK, I see the problem.
Approval 1 of 2 from gnome-i18n.

Claude

> Claude Paroz wrote:
> > 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.
> > 
> > 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


Re: String break request for Orca

2009-02-18 Thread Wouter Bolsterlee
2009-02-18 klockan 13:45 skrev Claude Paroz:
> Le mercredi 18 février 2009 à 03:35 -0500, Willie Walker a écrit :
> > Gabor Kelemen commented on the simpler form not working for him at 
> > http://bugzilla.gnome.org/show_bug.cgi?id=572218#c6
> > Looks like whatever version of msgfmt that Gabor is using is smart 
> > enough to compare the order of the parameters.
> 
> OK, I see the problem.
> Approval 1 of 2 from gnome-i18n.

Approval 2/2... I was just waiting for this to happen:
http://mail.gnome.org/archives/gnome-i18n/2009-February/msg00168.html

— Wouter


signature.asc
Description: Digital signature
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n