[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: locale setting in startkde
From: Matthias Hoelzer-Kluepfel <mhk () caldera ! de>
Date: 2000-09-28 11:33:17
[Download RAW message or body]
Hi,
this is a little patch that reads the country and locale information from the
kdeglobals file and exports the LANG and LC_ALL env vars accordingly.
I only tested it with German, where it works well. Any comments? Would it be
a good idea to add it to startkde?
Bye,
Matthias.
["locale.patch" (text/english)]
Index: startkde
===================================================================
RCS file: /home/kde/kdebase/startkde,v
retrieving revision 1.71
diff -u -r1.71 startkde
--- startkde 2000/09/16 13:13:36 1.71
+++ startkde 2000/09/28 10:47:16
@@ -48,6 +48,22 @@
kdehome=$HOME/.kde
test -n "$KDEHOME" && kdehome=$KDEHOME
+
+# set the default locale according to the settings in kdeglobals
+
+CONFIG=$KDEHOME/share/config/kdeglobals
+
+c=`grep Language $CONFIG | cut -d= -f2`
+if [ $c ]; then
+ export LANG=$c
+fi
+
+l=`grep Country $CONFIG | cut -d= -f2`
+if [ $l ]; then
+ export LC_ALL=$l
+fi
+
+
# Activate the kde font directories.
#
# There are 4 directories that may be used for supplying fonts for KDE.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic