From d3c29179ad1f408389d7819ae287d45a323f780b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 1 Nov 2008 14:52:35 +0100 Subject: Generalizing internal LH_L10N variable. --- functions/echo.sh | 12 ++++++------ functions/l10n.sh | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/functions/echo.sh b/functions/echo.sh index 93875ea..034aab4 100755 --- a/functions/echo.sh +++ b/functions/echo.sh @@ -12,7 +12,7 @@ Echo () STRING="${1}" shift - if [ "${LH_L10N}" = "false" ] + if [ "${_L10N}" = "false" ] then printf "${STRING}\n" else @@ -27,7 +27,7 @@ Echo_debug () if [ "${LH_DEBUG}" = "enabled" ] then - if [ "${LH_L10N}" = "false" ] + if [ "${_L10N}" = "false" ] then printf "D: ${STRING}\n" else @@ -41,7 +41,7 @@ Echo_error () STRING="${1}" shift - if [ "${LH_L10N}" = "false" ] + if [ "${_L10N}" = "false" ] then printf "E: ${STRING}\n" >&2 else @@ -56,7 +56,7 @@ Echo_message () if [ "${LH_QUIET}" != "enabled" ] then - if [ "${LH_L10N}" = "false" ] + if [ "${_L10N}" = "false" ] then printf "P: ${STRING}\n" else @@ -72,7 +72,7 @@ Echo_verbose () if [ "${LH_VERBOSE}" = "enabled" ] then - if [ "${LH_L10N}" = "false" ] + if [ "${_L10N}" = "false" ] then printf "I: ${STRING}\n" else @@ -86,7 +86,7 @@ Echo_warning () STRING="${1}" shift - if [ "${LH_L10N}" = "false" ] + if [ "${_L10N}" = "false" ] then printf "W: ${STRING}\n" else diff --git a/functions/l10n.sh b/functions/l10n.sh index dded7d2..1e14988 100755 --- a/functions/l10n.sh +++ b/functions/l10n.sh @@ -9,7 +9,7 @@ if [ -x "$(which gettext.sh 2>/dev/null)" ] then - LH_L10N="enabled" + _L10N="enabled" # gettext domain (.mo file name) TEXTDOMAIN="${PROGRAM}" @@ -22,5 +22,5 @@ then # load gettext functions . gettext.sh else - LH_L10N="disabled" + _L10N="disabled" fi -- cgit v1.0