瀏覽代碼

wxGUI/startup: assure user that location was created

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56353 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 年之前
父節點
當前提交
ac5a6a72b4
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      gui/wxpython/gis_set.py

+ 6 - 3
gui/wxpython/gis_set.py

@@ -444,10 +444,13 @@ class GRASSStartup(wx.Frame):
 
 
     def SetDefaultRegion(self, location):
     def SetDefaultRegion(self, location):
         """!Asks to set default region."""
         """!Asks to set default region."""
+        caption = _("Location <%s> created") % location
+        message = _("Do you want to set the default "
+                    "region extents and resolution now?")
         dlg = wx.MessageDialog(parent = self,
         dlg = wx.MessageDialog(parent = self,
-                               message = _("Do you want to set the default "
-                                           "region extents and resolution now?"),
-                               caption = _("Location <%s> created") % location,
+                               message = "%(caption)s.\n\n%(extent)s" % ({'caption': caption,
+                                                                          'extent': message}),
+                               caption = caption,
                                style = wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION)
                                style = wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION)
         dlg.CenterOnScreen()
         dlg.CenterOnScreen()
         if dlg.ShowModal() == wx.ID_YES:
         if dlg.ShowModal() == wx.ID_YES: