[GRASS-SVN] r53789 - grass/branches/develbranch_6/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 13 09:11:20 PST 2012
Author: martinl
Date: 2012-11-13 09:11:20 -0800 (Tue, 13 Nov 2012)
New Revision: 53789
Modified:
grass/branches/develbranch_6/lib/init/init.sh
Log:
fix r53788, don't override LANG if not defined
Modified: grass/branches/develbranch_6/lib/init/init.sh
===================================================================
--- grass/branches/develbranch_6/lib/init/init.sh 2012-11-13 17:01:17 UTC (rev 53788)
+++ grass/branches/develbranch_6/lib/init/init.sh 2012-11-13 17:11:20 UTC (rev 53789)
@@ -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