Generalizing internal LH_L10N variable.

This commit is contained in:
Daniel Baumann 2008-11-01 14:52:35 +01:00
parent 1783c91424
commit d3c29179ad
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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