[GRASS-dev] Re: [GRASS-SVN] r40421 - grass/branches/develbranch_6/gui/wxpython

Martin Landa landa.martin at gmail.com
Thu Jan 14 04:50:19 EST 2010


Hi,

these buttons should be translated by the system's locales. I am not
sure if it's good practice to translate them locally. At least you
disabled standard shortcuts, e.g. &Help.

Martin

2010/1/14  <svn_grass at osgeo.org>:
> Author: neteler
> Date: 2010-01-13 18:32:36 -0500 (Wed, 13 Jan 2010)
> New Revision: 40421
>
> Modified:
>   grass/branches/develbranch_6/gui/wxpython/gis_set.py
> Log:
> enable i18N for 'Quit' and 'Help'
>
> Modified: grass/branches/develbranch_6/gui/wxpython/gis_set.py
> ===================================================================
> --- grass/branches/develbranch_6/gui/wxpython/gis_set.py        2010-01-13 23:32:27 UTC (rev 40420)
> +++ grass/branches/develbranch_6/gui/wxpython/gis_set.py        2010-01-13 23:32:36 UTC (rev 40421)
> @@ -121,9 +121,11 @@
>         self.bstart = wx.Button(parent=self.panel, id=wx.ID_ANY,
>                                 label=_("Start GRASS"))
>         self.bstart.SetDefault()
> -        self.bexit = wx.Button(parent=self.panel, id=wx.ID_EXIT)
> +        self.bexit = wx.Button(parent=self.panel, id=wx.ID_EXIT,
> +                                label=_("Quit"))
>         self.bstart.SetMinSize((180, self.bexit.GetSize()[1]))
> -        self.bhelp = wx.Button(parent=self.panel, id=wx.ID_HELP)
> +        self.bhelp = wx.Button(parent=self.panel, id=wx.ID_HELP,
> +                                label=_("Help"))
>         self.bbrowse = wx.Button(parent=self.panel, id=wx.ID_ANY,
>                                  label=_("Browse"))
>         self.bmapset = wx.Button(parent=self.panel, id=wx.ID_ANY,
>
> _______________________________________________
> grass-commit mailing list
> grass-commit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-commit
>



-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-dev mailing list