From b65b2a0b87776827ea9949dfe008273de2988ccc Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sun, 9 Dec 2012 00:12:57 +0100 Subject: [PATCH] libmsgmng.lib: translate "ERROR", "WARNING", and "DEBUG" Signed-off-by: Davide Madrisan --- ChangeLog | 3 +++ lib/libmsgmng.lib.in | 6 +++--- po/it/autospec.po | 9 +++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e19937c..64a903a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,9 @@ Changes in version 1.16.2 Try to catch these problems too. (This problem has been pointed out by Silvan Calarco). + * lib/libmsgmng.lib - Davide Madrisan: + Translate "ERROR", "WARNING", and "DEBUG". + ------------------------------------------------------------------------------- Changes in version 1.16.1 diff --git a/lib/libmsgmng.lib.in b/lib/libmsgmng.lib.in index 73b9ba7..740879f 100644 --- a/lib/libmsgmng.lib.in +++ b/lib/libmsgmng.lib.in @@ -31,17 +31,17 @@ notify_def_msg="<"$"no message"">" function notify.debug() { [ ${verbose:-0} -gt 1 ] || return - echo -e "${WARN}DEBUG${NORM}: ${1:-$notify_def_msg}" 1>&2 + echo -e "${WARN}"$"DEBUG""${NORM}: ${1:-$notify_def_msg}" 1>&2 } notify.debug $"loading"": \`libmsgmng.lib'..." function notify.warning() { - echo -e "${WARN}WARNING${NORM}: ${1:-$notify_def_msg}" 1>&2 + echo -e "${WARN}"$"WARNING""${NORM}: ${1:-$notify_def_msg}" 1>&2 } function notify.error() { - echo -e "${EXIT}ERROR${NORM}: ${EXIT}${1:-$notify_def_msg}${NORM}" 1>&2 + echo -e "${EXIT}"$"ERROR""${NORM}: ${EXIT}${1:-$notify_def_msg}${NORM}" 1>&2 ${EXIT_FUNC:-"exit"} 1 } diff --git a/po/it/autospec.po b/po/it/autospec.po index 0ce0f1c..678db3b 100644 --- a/po/it/autospec.po +++ b/po/it/autospec.po @@ -209,6 +209,15 @@ msgstr "caricamento di" msgid "no message" msgstr "nessun messaggio" +msgid "DEBUG" +msgstr "DEBUG" + +msgid "WARNING" +msgstr "ATTENZIONE" + +msgid "ERROR" +msgstr "ERRORE" + msgid "unknown color theme \\`$color_scheme': colors will be disabled" msgstr "tema di colori sconosciuto \\`$color_scheme': output con colori " "disabilitato"