Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
9f7b8e10a6
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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'):