[GRASS-SVN] r46360 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 22 09:06:33 EDT 2011


Author: martinl
Date: 2011-05-22 06:06:33 -0700 (Sun, 22 May 2011)
New Revision: 46360

Modified:
   grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
Log:
wxGUI: only full strings allowed


Modified: grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py	2011-05-22 12:41:57 UTC (rev 46359)
+++ grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py	2011-05-22 13:06:33 UTC (rev 46360)
@@ -114,12 +114,10 @@
             self.funct_list.insert(indx, 'z()')
             indx = self.funct_list.index('nsres()') +1
             self.funct_list.insert(indx, 'tbres()')
-            maplabel = _('3D raster map')
             element = 'rast3d'
         else:
-            maplabel = _('raster map')
             element = 'cell'
-
+        
         self.operatorBox = wx.StaticBox(parent = self.panel, id = wx.ID_ANY,
                                         label=" %s " % _('Operators'))
         self.operandBox = wx.StaticBox(parent = self.panel, id = wx.ID_ANY,
@@ -207,11 +205,17 @@
         
         #
         # Map and function insertion text and ComboBoxes
-        self.newmaplabel = wx.StaticText(parent = self.panel, id = wx.ID_ANY,
-                                         label= _('Name for new %s to create') % maplabel)
+        self.newmaplabel = wx.StaticText(parent = self.panel, id = wx.ID_ANY)
+        if self.rast3d:
+            self.newmaplabel.SetLabel(_('Name for new 3D raster map to create'))
+        else:
+            self.newmaplabel.SetLabel(_('Name for new raster map to create'))
         self.newmaptxt = wx.TextCtrl(parent = self.panel, id = wx.ID_ANY, size=(250, -1))
-        self.mapsellabel = wx.StaticText(parent = self.panel, id = wx.ID_ANY,
-                                         label = _('Insert existing %s') % maplabel)
+        self.mapsellabel = wx.StaticText(parent = self.panel, id = wx.ID_ANY)
+        if self.rast3d:
+            self.mapsellabel.SetLabel(_('Insert existing 3D raster map'))
+        else:
+            self.mapsellabel.SetLabel(_('Insert existing raster map'))
         self.mapselect = gselect.Select(parent = self.panel, id = wx.ID_ANY, size = (250, -1),
                                         type = element, multiple = False)
         self.functlabel = wx.StaticText(parent = self.panel, id = wx.ID_ANY,



More information about the grass-commit mailing list