From f32292367a078bf55a16f2cebe8fd562cd4a2d3b Mon Sep 17 00:00:00 2001 From: Andrew Fyfe Date: Mon, 4 Jun 2007 21:47:40 +0100 Subject: scripts/makepkg.in: Add gettext translation for WARNING and ERROR. Signed-off-by: Andrew Fyfe --- scripts/makepkg.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/makepkg.in b/scripts/makepkg.in index 424fd9c9..1a259028 100644 --- a/scripts/makepkg.in +++ b/scripts/makepkg.in @@ -88,18 +88,18 @@ msg2() { warning() { local mesg=$1; shift if [ ! "$USE_COLOR" = "n" -a "$(check_buildenv color)" = "y" ]; then - printf "\033[1;33m==> WARNING:\033[1;37m ${mesg}\033[0m\n" "$@" >&2 + printf "\033[1;33m==> $(gettext "WARNING:")\033[1;37m ${mesg}\033[0m\n" "$@" >&2 else - printf "==> WARNING: ${mesg}\n" "$@" >&2 + printf "==> $(gettext "WARNING:") ${mesg}\n" "$@" >&2 fi } error() { local mesg=$1; shift if [ ! "$USE_COLOR" = "n" -a "$(check_buildenv color)" = "y" ]; then - printf "\033[1;31m==> ERROR:\033[1;37m ${mesg}\033[0m\n" "$@" >&2 + printf "\033[1;31m==> $(gettext "ERROR:")\033[1;37m ${mesg}\033[0m\n" "$@" >&2 else - printf "==> ERROR: ${mesg}\n" "$@" >&2 + printf "==> $(gettext "ERROR:") ${mesg}\n" "$@" >&2 fi } -- cgit v1.2.3-70-g09d2