[GRASS-SVN] r53790 - grass/branches/releasebranch_6_4/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 13 09:14:02 PST 2012


Author: martinl
Date: 2012-11-13 09:14:01 -0800 (Tue, 13 Nov 2012)
New Revision: 53790

Modified:
   grass/branches/releasebranch_6_4/lib/init/init.sh
Log:
init: don't override LANG if not defined


Modified: grass/branches/releasebranch_6_4/lib/init/init.sh
===================================================================
--- grass/branches/releasebranch_6_4/lib/init/init.sh	2012-11-13 17:11:20 UTC (rev 53789)
+++ grass/branches/releasebranch_6_4/lib/init/init.sh	2012-11-13 17:14:01 UTC (rev 53790)
@@ -233,6 +233,13 @@
     	GRASS_GUI=`awk '/GRASS_GUI/ {print $2}' "$GISRC"`
     fi
 
+    # Check for a reference to the language in the grassrc file
+    if [ -f "$GISRC" ] ; then
+	if [ `grep -c 'LANG' "$GISRC"` -ge 1 ] ; then
+    	    LANG=`awk '/LANG/ {print $2}' "$GISRC"`
+	fi
+    fi
+
     # Set the GRASS user interface to the default if needed
     if [ ! "$GRASS_GUI" ] ; then
 	GRASS_GUI="$DEFAULT_GUI"



More information about the grass-commit mailing list