aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang.sh b/lang.sh
new file mode 100755
index 00000000..5f17639f
--- /dev/null
+++ b/lang.sh
@@ -0,0 +1,15 @@
+if [ -f /etc/sysconfig/i18n ]; then
+ . /etc/sysconfig/i18n
+
+ if [ -n "$LANG" ]; then
+ export LANG
+ fi
+
+ if [ -n "$LINGUAS" ]; then
+ export LINGUAS
+ fi
+
+ if [ -n "$SYSTERM" ]; then
+ export TERM=$SYSTERM
+ fi
+fi