libmsgmng.lib: translate "ERROR", "WARNING", and "DEBUG"

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-12-09 00:12:57 +01:00
parent ee9a2c72b2
commit b65b2a0b87
3 changed files with 15 additions and 3 deletions

View File

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

View File

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

View File

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