[GRASS-SVN] r39784 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 22 17:32:26 EST 2009
Author: martinl
Date: 2009-11-22 17:32:25 -0500 (Sun, 22 Nov 2009)
New Revision: 39784
Modified:
grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI cosmetics, i18n
(merge r39783 from trunk)
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2009-11-22 22:10:09 UTC (rev 39783)
+++ grass/trunk/gui/wxpython/wxgui.py 2009-11-22 22:32:25 UTC (rev 39784)
@@ -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:
@@ -781,7 +781,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:
@@ -820,7 +820,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