[GRASS-SVN] r39783 - grass/branches/develbranch_6/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 22 17:10:10 EST 2009


Author: martinl
Date: 2009-11-22 17:10:09 -0500 (Sun, 22 Nov 2009)
New Revision: 39783

Modified:
   grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
wxGUI cosmetics, i18n


Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py	2009-11-22 17:03:16 UTC (rev 39782)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py	2009-11-22 22:10:09 UTC (rev 39783)
@@ -468,7 +468,7 @@
         """!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 @@
     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:
@@ -782,7 +782,7 @@
     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:
@@ -821,7 +821,7 @@
         """!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:



More information about the grass-commit mailing list