diff options
author | Daniel Baumann <daniel@debian.org> | 2012-06-05 20:34:13 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-06-06 19:59:15 +0200 |
commit | 46f13db55aae3616609549072983cdb268461498 (patch) | |
tree | 8040c3da8fa828162df7a1eca5fedc3291c51881 /functions/echo.sh | |
parent | 2c5004a3583c3535e7d40d5eacad0b3b876b65b0 (diff) | |
download | vyos-live-build-46f13db55aae3616609549072983cdb268461498.tar.gz vyos-live-build-46f13db55aae3616609549072983cdb268461498.zip |
Updating l10n stuff before removing it.
Diffstat (limited to 'functions/echo.sh')
-rwxr-xr-x | functions/echo.sh | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/functions/echo.sh b/functions/echo.sh index 32cb75bd5..862d69633 100755 --- a/functions/echo.sh +++ b/functions/echo.sh @@ -13,11 +13,11 @@ Echo () STRING="${1}" shift - if [ "${_L10N}" = "false" ] + if [ "${_L10N}" = "true" ] then - printf "${STRING}\n" "${@}" - else printf "$(eval_gettext "${STRING}")" "${@}"; echo; + else + printf "${STRING}\n" "${@}" fi } @@ -28,11 +28,11 @@ Echo_debug () STRING="${1}" shift - if [ "${_L10N}" = "false" ] + if [ "${_L10N}" = "true" ] then - printf "D: ${STRING}\n" "${@}" - else printf "D: $(eval_gettext "${STRING}")" "${@}"; echo; + else + printf "D: ${STRING}\n" "${@}" fi fi } @@ -44,11 +44,11 @@ Echo_debug_running () STRING="${1}" shift - if [ "${_L10N}" = "false" ] + if [ "${_L10N}" = "true" ] then - printf "D: ${STRING}" "${@}" - else printf "D: $(eval_gettext "${STRING}")" "${@}" + else + printf "D: ${STRING}" "${@}" fi if [ "${_COLOR}" = "false" ] @@ -72,11 +72,11 @@ Echo_error () printf "${RED}E${NO_COLOR}:" fi - if [ "${_L10N}" = "false" ] + if [ "${_L10N}" = "true" ] then - printf " ${STRING}\n" "${@}" >&2 - else (printf " $(eval_gettext "${STRING}")" "${@}"; echo;) >&2 + else + printf " ${STRING}\n" "${@}" >&2 fi } @@ -94,11 +94,11 @@ Echo_message () printf "${WHITE}P${NO_COLOR}:" fi - if [ "${_L10N}" = "false" ] + if [ "${_L10N}" = "true" ] then - printf " ${STRING}\n" "${@}" - else printf " $(eval_gettext "${STRING}")" "${@}"; echo; + else + printf " ${STRING}\n" "${@}" fi fi } @@ -117,18 +117,18 @@ Echo_message_running () printf "${WHITE}P${NO_COLOR}:" fi - if [ "${_L10N}" = "false" ] + if [ "${_L10N}" = "true" ] then - printf " ${STRING}" "${@}" - else printf " $(eval_gettext "${STRING}")" "${@}"; + else + printf " ${STRING}" "${@}" fi - if [ "${_COLOR}" = "false" ] + if [ "${_COLOR}" = "true" ] then - printf "..." - else printf "... ${YELLOW}${BLINK}running${NO_COLOR}" + else + printf "..." fi fi } @@ -140,11 +140,11 @@ Echo_verbose () STRING="${1}" shift - if [ "${_L10N}" = "false" ] + if [ "${_L10N}" = "true" ] then - printf "I: ${STRING}\n" "${@}" - else printf "I: $(eval_gettext "${STRING}")" "${@}"; echo; + else + printf "I: ${STRING}\n" "${@}" fi fi } @@ -156,18 +156,18 @@ Echo_verbose_running () STRING="${1}" shift - if [ "${_L10N}" = "false" ] + if [ "${_L10N}" = "true" ] then - printf "I: ${STRING}" "${@}" - else printf "I: $(eval_gettext "${STRING}")" "${@}"; + else + printf "I: ${STRING}" "${@}" fi - if [ "${_COLOR}" = "false" ] + if [ "${_COLOR}" = "true" ] then - printf "..." - else printf "... ${YELLOW}${BLINK}running${NO_COLOR}" + else + printf "..." fi fi } @@ -184,11 +184,11 @@ Echo_warning () printf "${YELLOW}W${NO_COLOR}:" fi - if [ "${_L10N}" = "false" ] + if [ "${_L10N}" = "true" ] then - printf " ${STRING}\n" "${@}" - else printf " $(eval_gettext "${STRING}")" "${@}"; echo; + else + printf " ${STRING}\n" "${@}" fi } |