blob: 76f804afb77de493d40802666838565b239e839c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
_luit_encoding=koi8-r
_golded_lang=ru_RU.KOI8-R
_locale_check=koi8r
_locale_message="${_golded_lang} KOI8-R"
_gedlnx=$(which gedlnx)
if [ ! -x ${_gedlnx} ]; then
echo "gedlnx is not avaiable/executable, sorry"
exit 1
fi
_has_locale=$(locale -a | grep ${_locale_check})
if [ -z ${_has_locale} ]; then
echo -n "Checking system locale presence ${_locale_check}: "
echo "Not avaiable!"
echo "Add ${_locale_message} to /etc/locale.gen and run"
echo "sudo locale-gen"
exit 1
fi
if [ "$LANG" = "${_golded_lang}" ]; then
exec "${_gedlnx}" "$@"
else
LANG=${_golded_lang} exec luit -encoding ${_luit_encoding} -x -- "${_gedlnx}" "$@"
fi
|