Blob Blame History Raw
diff -ruN im-chooser-0.4.0.orig/data/xinput.sh.in.in im-chooser-0.4.0/data/xinput.sh.in.in
--- im-chooser-0.4.0.orig/data/xinput.sh.in.in	2007-07-25 23:06:26.000000000 +0900
+++ im-chooser-0.4.0/data/xinput.sh.in.in	2007-07-25 23:27:56.000000000 +0900
@@ -35,7 +35,14 @@
 if [ -r "$USER_XINPUTRC" -a "x$IM_CHOOSER_DISABLE_USER_XINPUTRC" = "xno" ]; then
     source "$USER_XINPUTRC"
 elif [ -r "$SYS_XINPUTRC" ]; then
-    source "$SYS_XINPUTRC"
+    # FIXME: This hardcoded list has to be gone in the future.
+    _language_list="as bn gu hi ja kn ko ml mr ne or pa si ta te th ur vi zh"
+    for i in $_language_list; do
+        if echo $tmplang | grep -q -E "^$i"; then
+            source "$SYS_XINPUTRC"
+            break
+        fi
+    done
 fi
 
 [ -z "$XIM" ] && XIM=none