[GRASS-SVN] r59214 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 8 14:20:18 PST 2014


Author: marisn
Date: 2014-03-08 14:20:17 -0800 (Sat, 08 Mar 2014)
New Revision: 59214

Modified:
   grass/trunk/gui/wxpython/gui_core/preferences.py
Log:
Do not store language override as an environmental variable; Correctly display word system for no language override.

Modified: grass/trunk/gui/wxpython/gui_core/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/preferences.py	2014-03-08 14:54:10 UTC (rev 59213)
+++ grass/trunk/gui/wxpython/gui_core/preferences.py	2014-03-08 22:20:17 UTC (rev 59214)
@@ -46,7 +46,7 @@
 
 from core          import globalvar
 from core.gcmd     import RunCommand
-from core.utils    import ListOfMapsets, GetColorTables, ReadEpsgCodes, StoreEnvVariable, _
+from core.utils    import ListOfMapsets, GetColorTables, ReadEpsgCodes, _
 from core.settings import UserSettings
 from gui_core.dialogs import SymbolDialog
 from gui_core.widgets import IntegerValidator, ColorTablesComboBox
@@ -177,10 +177,6 @@
                 lang = 'C'
             self.settings.SaveToFile()
             Debug.msg(1, "Settings saved to file '%s'" % self.settings.filePath)
-            if lang:
-                StoreEnvVariable(key = 'LANG', value = lang)
-            else:
-                StoreEnvVariable(key = 'LANG')
             self.settingsChanged.emit()
             self.Close()
 
@@ -426,6 +422,8 @@
             elementList.SetStringSelection(loc)
         if loc == 'C':
             elementList.SetStringSelection('en')
+        if not loc:
+            elementList.SetStringSelection('system')
         self.winId['language:locale:lc_all'] = elementList.GetId()
 
         gridSizer.Add(item = elementList,



More information about the grass-commit mailing list