Forráskód Böngészése

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

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61236 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 11 éve
szülő
commit
9f7b8e10a6
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      gui/wxpython/lmgr/datacatalog.py

+ 3 - 1
gui/wxpython/lmgr/datacatalog.py

@@ -402,7 +402,9 @@ class DataCatalogTree(LocationMapTree):
             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'):