esac
if [ -z "$LANG" ] || [ "$LANG" = "C" ]; then
- if findcommand locale; then
- if locale -a | grep -q '^no_NO$' ; then
+ if findcommand locale >/dev/null; then
+ if locale -a | grep -q '^nb_NO.utf8$' ; then
+ LANG=nb_NO.utf8
+ elif locale -a | grep -q '^no_NO$' ; then
LANG=no_NO
elif locale -a | grep -q '^en_US$'; then
LANG=en_US
fi
if [ -z "$LANG" ] || [ "$LANG" = "C" ]; then
- if findcommand localedef; then
+ if findcommand localedef >/dev/null; then
localedef --list-archive > /dev/null 2>&1
if test "$?" = "0"; then
if localedef --list-archive | grep -q '^no_NO$' ; then