[GRASS-dev] i18N guisection bug

Hamish hamish_nospam at yahoo.com
Wed Oct 17 23:06:06 EDT 2007


Markus:
> > 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?


Hamish




More information about the grass-dev mailing list