[Sugar-devel] internationalization: homonym handling in genpot?

Bert Freudenberg bert at freudenbergs.de
Sat Sep 11 06:31:30 EDT 2010


On 11.09.2010, at 04:43, Erik Blankinship wrote:

> 
> If it doesn't work, I guess you could also directly use the low-level
> encoding of context:
> 
>    label1 = _("device_icon_menu\x04Remove")
> 
> 
> 
>  label1 = _("device_icon_menu\x04Remove")
>  label2 = _("file_menu\x04Remove")
> 
> Not surprisingly, this creates unique entries in the .pot file since they are two different strings, and then both can be translated.
> 
> However, if the translation is not available, you get one messed up looking string.  Is there supposed to be a way to suppress the first half of that string when it is displayed with gettext?

Yes, everything up to the EOT character needs to be stripped.

- Bert -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100911/a653c4cf/attachment.htm 


More information about the Sugar-devel mailing list