Browse Source

wxGUI: use less cryptic dialog caption if workspace file exits (sync'ed with develbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31199 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 years ago
parent
commit
5f58832e9d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gui/wxpython/wxgui.py

+ 2 - 2
gui/wxpython/wxgui.py

@@ -765,7 +765,7 @@ class GMFrame(wx.Frame):
         if os.path.exists(filename):
         if os.path.exists(filename):
             dlg = wx.MessageDialog(self, message=_("Workspace file <%s> already exists. "
             dlg = wx.MessageDialog(self, message=_("Workspace file <%s> already exists. "
                                                    "Do you want to overwrite this file?") % filename,
                                                    "Do you want to overwrite this file?") % filename,
-                                   caption=_("Warning"), style=wx.YES_NO | wx.YES_DEFAULT | wx.ICON_QUESTION)
+                                   caption=_("Save workspace"), style=wx.YES_NO | wx.YES_DEFAULT | wx.ICON_QUESTION)
             if dlg.ShowModal() != wx.ID_YES:
             if dlg.ShowModal() != wx.ID_YES:
                 dlg.Destroy()
                 dlg.Destroy()
                 return False
                 return False
@@ -783,7 +783,7 @@ class GMFrame(wx.Frame):
             dlg = wx.MessageDialog(self, message=_("Workspace file <%s> already exists. "
             dlg = wx.MessageDialog(self, message=_("Workspace file <%s> already exists. "
                                                    "Do you want to overwrite this file?") % \
                                                    "Do you want to overwrite this file?") % \
                                        self.workspaceFile,
                                        self.workspaceFile,
-                                   caption=_("Warning"), style=wx.YES_NO | wx.YES_DEFAULT | wx.ICON_QUESTION)
+                                   caption=_("Save workspace"), style=wx.YES_NO | wx.YES_DEFAULT | wx.ICON_QUESTION)
             if dlg.ShowModal() == wx.ID_NO:
             if dlg.ShowModal() == wx.ID_NO:
                 dlg.Destroy()
                 dlg.Destroy()
             else:
             else: