[GRASS-SVN] r42381 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 29 12:51:28 EDT 2010
Author: martinl
Date: 2010-05-29 12:51:28 -0400 (Sat, 29 May 2010)
New Revision: 42381
Modified:
grass/trunk/gui/wxpython/gui_modules/vclean.py
Log:
wxGUI/vclean: avoid gettext warnings
Modified: grass/trunk/gui/wxpython/gui_modules/vclean.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/vclean.py 2010-05-29 16:44:11 UTC (rev 42380)
+++ grass/trunk/gui/wxpython/gui_modules/vclean.py 2010-05-29 16:51:28 UTC (rev 42381)
@@ -118,7 +118,7 @@
self.ftype_string = ''
self.SetTitle(_('Set up vector cleaning tools'))
- self.SetStatusText( _("Set up vector cleaning tools"))
+ self.SetStatusText(_("Set up vector cleaning tools"))
self.elem = 'vector'
self.ctlabel = _('Choose cleaning tools and set thresholds')
@@ -359,9 +359,9 @@
self.FindWindowById(id+1000).SetValue('')
self.toolslines[id]['tool_desc'] = ''
self.toolslines[id]['tool'] = ''
- self.SetStatusText( _("%s. cleaning tool removed, will be ignored") % id)
+ self.SetStatusText(_("%s. cleaning tool removed, will be ignored") % id)
else:
- self.SetStatusText( _("Please select a cleaning tool to remove"))
+ self.SetStatusText(_("Please select a cleaning tool to remove"))
def OnMoveToolUp(self, event):
"""!Move up tool button pressed"""
@@ -382,11 +382,11 @@
self.FindWindowById(id+2000).SetValue(up_toolline['thresh'])
self.toolslines[id] = up_toolline
self.selected = id_up
- self.SetStatusText( _("%s. cleaning tool moved up") % id)
+ self.SetStatusText(_("%s. cleaning tool moved up") % id)
elif id == 1:
- self.SetStatusText( _("1. cleaning tool can not be moved up "))
+ self.SetStatusText(_("1. cleaning tool can not be moved up "))
elif id == -1:
- self.SetStatusText( _("Please select a cleaning tool to move up"))
+ self.SetStatusText(_("Please select a cleaning tool to move up"))
def OnMoveToolDown(self, event):
@@ -409,11 +409,11 @@
self.FindWindowById(id+2000).SetValue(down_toolline['thresh'])
self.toolslines[id] = down_toolline
self.selected = id_down
- self.SetStatusText( _("%s. cleaning tool moved down") % id)
+ self.SetStatusText(_("%s. cleaning tool moved down") % id)
elif id == snum:
- self.SetStatusText( _("Last cleaning tool can not be moved down "))
+ self.SetStatusText(_("Last cleaning tool can not be moved down "))
elif id == -1:
- self.SetStatusText( _("Please select a cleaning tool to move down"))
+ self.SetStatusText(_("Please select a cleaning tool to move down"))
def OnSetTool(self, event):
"""!Tool was defined"""
@@ -424,7 +424,7 @@
self.toolslines[tool_no]['tool_desc'] = self.tool_desc_list[num]
self.toolslines[tool_no]['tool'] = self.tool_list[num]
- self.SetStatusText( _("%s. cleaning tool: '%s'") % (tool_no, self.tool_list[num]))
+ self.SetStatusText( str(tool_no) + '. ' + _("cleaning tool: '%s'") % (self.tool_list[num]))
def OnThreshValue(self, event):
"""!Threshold value was entered"""
@@ -432,8 +432,10 @@
num = id-2000
self.toolslines[num]['thresh'] = self.FindWindowById(id).GetValue()
- self.SetStatusText( _("Threshold for %s. tool '%s': %s") % \
- (num, self.toolslines[num]['tool'], self.toolslines[num]['thresh']))
+ self.SetStatusText(_("Threshold for %(num)s. tool '%(tool)s': %(thresh)s") % \
+ { 'num' : num,
+ 'tool' : self.toolslines[num]['tool'],
+ 'thresh' : self.toolslines[num]['thresh'] })
def OnSelect(self, event):
"""!Tool was selected"""
@@ -451,7 +453,7 @@
def OnCleaningRun(self, event):
"""!Builds options and runs v.clean
"""
- self.SetStatusText( _("Executing selected cleaning operations..."))
+ self.SetStatusText(_("Executing selected cleaning operations..."))
snum = len(self.toolslines.keys())
self.GetCmdStrings()
@@ -505,7 +507,7 @@
if wx.TheClipboard.Open():
wx.TheClipboard.SetData(cmddata)
wx.TheClipboard.Close()
- self.SetStatusText( _("Vector cleaning command copied to clipboard"))
+ self.SetStatusText(_("Vector cleaning command copied to clipboard"))
def GetCmdStrings(self):
self.tools_string = ''
More information about the grass-commit
mailing list