summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2011-07-26 10:28:31 +0000
committerAlfredo Tupone <tupone@gentoo.org>2011-07-26 10:28:31 +0000
commitc8c57f5137b7b2f2ed11d78bc87c4a993f2ccfed (patch)
tree4c627a8d14912636d949464130bed34b783f2799 /games-rpg/bass/files
parentx86 stable per bug 376369 (diff)
downloadgentoo-2-c8c57f5137b7b2f2ed11d78bc87c4a993f2ccfed.tar.gz
gentoo-2-c8c57f5137b7b2f2ed11d78bc87c4a993f2ccfed.tar.bz2
gentoo-2-c8c57f5137b7b2f2ed11d78bc87c4a993f2ccfed.zip
Enabling translation. Bug #211203
(Portage version: 2.1.10.7/cvs/Linux i686)
Diffstat (limited to 'games-rpg/bass/files')
-rw-r--r--games-rpg/bass/files/scummvmGetLang.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/games-rpg/bass/files/scummvmGetLang.sh b/games-rpg/bass/files/scummvmGetLang.sh
new file mode 100644
index 000000000000..b313cc7d81da
--- /dev/null
+++ b/games-rpg/bass/files/scummvmGetLang.sh
@@ -0,0 +1,19 @@
+tmplang="$LANG"
+test "$LC_MESSAGES" != "" && tmplang="$LC_MESSAGES"
+test "$LC_ALL" != "" && tmplang="$LC_ALL"
+test "$LANGUAGE" != "" && tmplang="$LANGUAGE"
+
+lang=`echo $tmplang|cut -d "_" -f 1`
+
+case $lang in
+ en)
+ lang=gb
+ echo $tmplang | grep en_US &>/dev/null && lang=en
+ ;;
+ de|fr|it|pt|es|se)
+ ;;
+ *)
+ lang=gb
+ ;;
+esac
+echo $lang