summaryrefslogtreecommitdiff
path: root/functions/l10n.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-11-02 13:07:24 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:44 +0100
commitd0276d0b16eab1827c81e462ad28a48318b227fc (patch)
treec2a639f8909d373f24732f4e797d46236ab9b2e8 /functions/l10n.sh
parentf070302f5817204e4e84e434618e484128ae432f (diff)
downloadvyos-live-build-d0276d0b16eab1827c81e462ad28a48318b227fc.tar.gz
vyos-live-build-d0276d0b16eab1827c81e462ad28a48318b227fc.zip
Also checking for gettext catalogs to be installed before enabling l10n.
Diffstat (limited to 'functions/l10n.sh')
-rwxr-xr-xfunctions/l10n.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/l10n.sh b/functions/l10n.sh
index 1e149888c..4e6c9e9af 100755
--- a/functions/l10n.sh
+++ b/functions/l10n.sh
@@ -7,7 +7,7 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
-if [ -x "$(which gettext.sh 2>/dev/null)" ]
+if [ -x "$(which gettext.sh 2>/dev/null)" ] && Find_files /usr/share/locale/*/LC_MESSAGES/${PROGRAM}.mo
then
_L10N="enabled"