Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / lib / recovery-mode / | server ip : 104.21.89.46 your ip : 172.70.131.202 H O M E |
Filename | /lib/recovery-mode/l10n.sh |
Size | 1.04 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 09-Mar-2012 03:28 |
Last accessed | 05-Jul-2025 13:17 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
# default eval_gettext() to ensure that we do not fail
# if gettext-base is not installed
eval_gettext() {
echo "$1"
}
# Deal with systems where /usr isn't mounted
if [ ! -d /usr/share/locale ]; then
return
fi
# blacklist some languages that we don't have a good console fonts for
# see bug #573502
in_lang_blacklist() {
LANG_BLACKLIST="ar_ he_IL ja_JP ko_KR ru_RU sl_SI vi_VN zh_"
LANG=$1
for b in $LANG_BLACKLIST; do
# equal to lang.startswith(b)
if expr match "$LANG" ^"$b" >/dev/null ; then
return 0
fi
done
return 1
}
# There is no environment set, as these steps are skipped,
# so we need to source the variables needed for localization ourselves
if [ -r /etc/default/locale ]; then
. /etc/default/locale
if ! in_lang_blacklist "$LANG"; then
export LANG LANGUAGE
fi
elif [ -r /etc/environment ]; then
. /etc/environment
if ! in_lang_blacklist "$LANG"; then
export LANG LANGUAGE
fi
fi
. gettext.sh
export TEXTDOMAIN=friendly-recovery
export TEXTDOMAINDIR=/usr/share/locale
# if gettext-base is not installed
eval_gettext() {
echo "$1"
}
# Deal with systems where /usr isn't mounted
if [ ! -d /usr/share/locale ]; then
return
fi
# blacklist some languages that we don't have a good console fonts for
# see bug #573502
in_lang_blacklist() {
LANG_BLACKLIST="ar_ he_IL ja_JP ko_KR ru_RU sl_SI vi_VN zh_"
LANG=$1
for b in $LANG_BLACKLIST; do
# equal to lang.startswith(b)
if expr match "$LANG" ^"$b" >/dev/null ; then
return 0
fi
done
return 1
}
# There is no environment set, as these steps are skipped,
# so we need to source the variables needed for localization ourselves
if [ -r /etc/default/locale ]; then
. /etc/default/locale
if ! in_lang_blacklist "$LANG"; then
export LANG LANGUAGE
fi
elif [ -r /etc/environment ]; then
. /etc/environment
if ! in_lang_blacklist "$LANG"; then
export LANG LANGUAGE
fi
fi
. gettext.sh
export TEXTDOMAIN=friendly-recovery
export TEXTDOMAINDIR=/usr/share/locale