#!/bin/sh
# de:Menuesprache auswaehlen
# en:Select menu language
# fr:Selectionnez la langue du menu
# nl:Menutaal kiezen
# default:en

echo
echo "$LANG_2"
echo

cat <<TEXTENDE
1     de
2     en
3     fr
4     nl

TEXTENDE

read input
case $input
in
    1)
    echo "de" > /var/run/menu.lang
    ;;
    2)
    echo "en" > /var/run/menu.lang
    ;;
    3)
    echo "fr" > /var/run/menu.lang
    ;;
    4)
    echo "nl" > /var/run/menu.lang
    ;;
    *)
    echo "$LANG_5"
    ;;
esac

# read the new language file
lang="`cat /var/run/menu.lang`"
lang_"$lang"

