[GRASS-SVN] r61236 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 10 12:03:00 PDT 2014


Author: wenzeslaus
Date: 2014-07-10 12:03:00 -0700 (Thu, 10 Jul 2014)
New Revision: 61236

Modified:
   grass/trunk/gui/wxpython/lmgr/datacatalog.py
Log:
wxGUI/datacatalog: use GRASS standard message format with <>, use string formatting instead of plus (to enable good translations), use keyword arguments when parameter names are unclear, prefer shorter lines

Modified: grass/trunk/gui/wxpython/lmgr/datacatalog.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/datacatalog.py	2014-07-10 18:51:58 UTC (rev 61235)
+++ grass/trunk/gui/wxpython/lmgr/datacatalog.py	2014-07-10 19:03:00 UTC (rev 61236)
@@ -402,7 +402,9 @@
             string = self.GetItemText(self.selected_layer)
             self.ChangeEnvironment(self.GetItemText(self.selected_location), self.GetItemText(self.selected_mapset))
             removed = 0
-            if (self._confirmDialog(_('Do you really want to delete layer') +string+'?', _('Delete map')) == wx.ID_YES):
+            # TODO: rewrite this that it will tell map type in the dialog
+            if (self._confirmDialog(question=_('Do you really want to delete map <{m}>?').format(m=string),
+                                    title=_('Delete map')) == wx.ID_YES):
                 label = _("Deleting") + " " + string + " ..."
                 self.showNotification.emit(message=label)
                 if (self.GetItemText(self.selected_type)=='vect'):



More information about the grass-commit mailing list