summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-11-01 14:52:35 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:43 +0100
commitd3c29179ad1f408389d7819ae287d45a323f780b (patch)
tree3f9b11c572fe8d40e646ffdbf1503f4f54284f28 /functions
parent1783c91424167b23a3e25d679ee4dacf4218c06f (diff)
downloadlive-build-d3c29179ad1f408389d7819ae287d45a323f780b.zip
live-build-d3c29179ad1f408389d7819ae287d45a323f780b.tar.gz
Generalizing internal LH_L10N variable.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/echo.sh12
-rwxr-xr-xfunctions/l10n.sh4
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