Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.in
diff options
context:
space:
mode:
authorAndrew Fyfe <andrew@neptune-one.net>2007-06-04 21:47:40 +0100
committerDan McGee <dan@archlinux.org>2007-06-04 22:01:26 -0400
commitf32292367a078bf55a16f2cebe8fd562cd4a2d3b (patch)
tree6fc5e39d1caec3ed669ad4a517a4bed1a3641b4b /scripts/makepkg.in
parenta78ad0d38d03d25a32eaf78337e1a8d0d11ae60e (diff)
scripts/makepkg.in: Add gettext translation for WARNING and ERROR.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Diffstat (limited to 'scripts/makepkg.in')
-rw-r--r--scripts/makepkg.in8
1 files changed, 4 insertions, 4 deletions
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
}