X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fgrml-setlang;h=df45be8468f2eca68e2d7435dba224aeaf5fbaf3;hb=561b409b63346bb95f6e077a403afddef26c4417;hp=7079e76445cf1c7a5ed86d230db3e70bb665a82d;hpb=470961a79c6f99cdec8d3063e4ad89ca6297982b;p=grml-scripts.git diff --git a/usr_sbin/grml-setlang b/usr_sbin/grml-setlang index 7079e76..df45be8 100755 --- a/usr_sbin/grml-setlang +++ b/usr_sbin/grml-setlang @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Fre Mär 16 22:49:29 CET 2007 [mika] +# Latest change: Sam Apr 28 17:38:28 CEST 2007 [mika] ################################################################################ PN="$(basename $0)" @@ -75,7 +75,7 @@ This will affect \$LANG, \$LANGUAGE and \$LC_MESSAGES. Notice: if you want to adjust /etc/locale.gen (defines which locales should be generated by locale-gen) -please run 'dpkg-reconfigure locale' manually. +please run 'dpkg-reconfigure locales' manually. Configuration will be written to $CONFFILE" 0 0 0 \ at 'austria (unicode version)' off \ @@ -159,7 +159,7 @@ else # non-interactive LANGUAGE="$1" fi -if ! grep -q "${LANGUAGE})" $LANGFUNC ; then +if ! grep -qe "${LANGUAGE})" -qe "${LANGUAGE}|" $LANGFUNC ; then ewarn "Language ${LANGUAGE} not supported, using default." ; eend 0 fi