浏览代码

wxGUI cosmetics, i18n
(merge https://trac.osgeo.org/grass/changeset/39783 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39784 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 15 年之前
父节点
当前提交
c4fdbb4f00
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      gui/wxpython/wxgui.py

+ 4 - 4
gui/wxpython/wxgui.py

@@ -468,7 +468,7 @@ class GMFrame(wx.Frame):
         """!Run script"""
         # open dialog and choose script file
         dlg = wx.FileDialog(parent = self, message = _("Choose script file"),
-                            defaultDir = os.getcwd(), wildcard = "Bash script (*.sh)|*.sh|Python script (*.py)|*.py")
+                            defaultDir = os.getcwd(), wildcard = _("Bash script (*.sh)|*.sh|Python script (*.py)|*.py"))
         
         filename = None
         if dlg.ShowModal() == wx.ID_OK:
@@ -618,7 +618,7 @@ class GMFrame(wx.Frame):
     def OnWorkspaceOpen(self, event=None):
         """!Open file with workspace definition"""
         dlg = wx.FileDialog(parent=self, message=_("Choose workspace file"),
-                            defaultDir=os.getcwd(), wildcard="*.gxw")
+                            defaultDir=os.getcwd(), wildcard=_("GRASS Workspace File (*.gxw)|*.gxw"))
 
         filename = ''
         if dlg.ShowModal() == wx.ID_OK:
@@ -781,7 +781,7 @@ class GMFrame(wx.Frame):
     def OnWorkspaceLoadGrcFile(self, event):
         """!Load map layers from GRC file (Tcl/Tk GUI) into map layer tree"""
         dlg = wx.FileDialog(parent=self, message=_("Choose GRC file to load"),
-                            defaultDir=os.getcwd(), wildcard="*.grc")
+                            defaultDir=os.getcwd(), wildcard=_("Old GRASS Workspace File (*.grc)|*.grc"))
 
         filename = ''
         if dlg.ShowModal() == wx.ID_OK:
@@ -820,7 +820,7 @@ class GMFrame(wx.Frame):
         """!Save workspace definition to selected file"""
 
         dlg = wx.FileDialog(parent=self, message=_("Choose file to save current workspace"),
-                            defaultDir=os.getcwd(), wildcard="*.gxw", style=wx.FD_SAVE)
+                            defaultDir=os.getcwd(), wildcard=_("GRASS Workspace File (*.gxw)|*.gxw"), style=wx.FD_SAVE)
 
         filename = ''
         if dlg.ShowModal() == wx.ID_OK: