blob: c36e7e8fdb159e75207dbb62ac70452423f4d8a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Reads the language setting of vdr to localize the messages
# of start/shutdown-scripts
#
# At the moment only used for choosing localized commands.conf-files.
read_vdr_language() {
[ -n ${VDR_LANGUAGE} ] && return
local OSDLANG
local LANG_TAB
if [ -f /etc/vdr/setup.conf ]; then
OSDLANG=$(awk -F= '/^OSDLanguage/ { print $2 }' /etc/vdr/setup.conf)
else
OSDLANG="0"
fi
case "$OSDLANG" in
0) VDR_LANGUAGE="en" ;;
1) VDR_LANGUAGE="de" ;;
*) VDR_LANGUAGE="" ;;
esac
}
|