[GRASS-dev] i18N guisection bug

Glynn Clements glynn at gclements.plus.com
Wed Oct 17 18:14:22 EDT 2007


Markus Neteler wrote:

> We discovered that both 6.2 and 6.3 fail in DE locale when starting
> for example g.region:
> 
> bad window path name ".nb.fGebe_für_Shell-Skript-Weiterverwendung_aus."
> bad window path name ".nb.fGebe_für_Shell-Skript-Weiterverwendung_aus."
>     while executing
> "winfo reqwidth  $path.f$page"
>     (procedure "compute_size" line 9)
>     invoked from within
> "compute_size $path"
>     (procedure "NoteBook::_realize" line 7)
>     invoked from within
> "NoteBook::_realize .nb"
>     (command bound to event)
> 
> The related .po file contains:
> 
> general/g.region/cmd/main.c:136
> msgid "Print;Shell Script"
> msgstr "Gebe für Shell-Skript-Weiterverwendung aus."
> 
> and the source code:
> 
>         flag.gprint = G_define_flag();
>         flag.gprint->key         = 'g';
>         flag.gprint->description = _("Print in shell script style");
>         flag.gprint->guisection  = _("Print;Shell Script");
> 
> Questions:
> - is it correct to apply _() gettext macros to >guisection?

I don't think so. If it's being used for Tk window names, it shouldn't
be localised. If it's also being used for tab titles, the titles
should be localised within the GUI code with G_msg.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list