瀏覽代碼

wxGUI: i18n minor update

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32049 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 年之前
父節點
當前提交
10df0c2423
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 1 0
      gui/wxpython/gui_modules/__init__.py
  2. 3 3
      gui/wxpython/gui_modules/mapdisp.py

+ 1 - 0
gui/wxpython/gui_modules/__init__.py

@@ -15,6 +15,7 @@ all = [ "dbm",
         "nviz",
         "preferences",
         "profile",
+        "psmap",
         "render",
         "rules",
         "sqlbuilder",

+ 3 - 3
gui/wxpython/gui_modules/mapdisp.py

@@ -3129,15 +3129,15 @@ class MapFrame(wx.Frame):
         point = wx.GetMousePosition()
         printmenu = wx.Menu()
         # Add items to the menu
-        setup = wx.MenuItem(printmenu, wx.ID_ANY,'Page setup')
+        setup = wx.MenuItem(printmenu, wx.ID_ANY, _('Page setup'))
         printmenu.AppendItem(setup)
         self.Bind(wx.EVT_MENU, self.printopt.OnPageSetup, setup)
 
-        preview = wx.MenuItem(printmenu, wx.ID_ANY,'Print preview')
+        preview = wx.MenuItem(printmenu, wx.ID_ANY, _('Print preview'))
         printmenu.AppendItem(preview)
         self.Bind(wx.EVT_MENU, self.printopt.OnPrintPreview, preview)
 
-        doprint = wx.MenuItem(printmenu, wx.ID_ANY,'Print display')
+        doprint = wx.MenuItem(printmenu, wx.ID_ANY, _('Print display'))
         printmenu.AppendItem(doprint)
         self.Bind(wx.EVT_MENU, self.printopt.OnDoPrint, doprint)