[GRASS-dev] i18N guisection bug

Glynn Clements glynn at gclements.plus.com
Thu Oct 18 02:35:53 EDT 2007


Hamish wrote:

> > > 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?
> 
> Glynn:
> > 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.
> 
> The opt->guisection setting selects the tab into which the option/flag
> will belong in the module's auto-generated GUI. If the parser code
> which generates the 'g.module --tcltk' code included G_msg(), what use
> would that be to the translators? ie how would they compile a list of
> phrases to be translated without running every module and parsing the
> --tcltk output?

In that case, the GUI needs to generate its own tab names.

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




More information about the grass-dev mailing list