X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fgrml-setlang;h=01977f5a574b223d69305e45b9f4178ac3ed0148;hb=60258902c9e10b015b5a4e8aca639adcef7882c6;hp=3efda814ae9aa53d2bc19b18e3e207691cc6d7ea;hpb=ebc57739c2ef2fa44f126bc29ccdee7ea025401f;p=grml-scripts.git diff --git a/usr_sbin/grml-setlang b/usr_sbin/grml-setlang index 3efda81..01977f5 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: Sam Dez 16 18:20:42 CET 2006 [mika] +# Latest change: Sam Mär 31 23:26:35 CEST 2007 [mika] ################################################################################ PN="$(basename $0)" @@ -71,7 +71,7 @@ if [ -z "$NONINTERACTIVE" ] ; then LANGUAGE=$($DIALOG --stdout --title "$PN" --default-item $DEFAULT_LANGUAGE --radiolist \ "Which language do you want to use? -This will affect \$LANG, \$LANGUAGE, \$LC_MESSAGES and \$TZ. +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) @@ -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 @@ -173,7 +173,7 @@ cat > $CONFFILE <