[pacman-dev] [PATCH] Allow translation of makepkg y/n question

Allan McRae allan at archlinux.org
Fri Jul 18 02:41:56 EDT 2008


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 scripts/makepkg.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 4edb967..3d1430f 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1216,7 +1216,7 @@ if [ "$CLEANCACHE" = "1" ]; then
 		echo -n "$(gettext "    Are you sure you wish to do this? [Y/n] ")"
 		read answer
 		answer=$(echo $answer | tr '[:upper:]' '[:lower:]')
-		if [ "$answer" = "yes" -o "$answer" = "y" ]; then
+		if [ "$answer" = "$(gettext "yes")" -o "$answer" = "$(gettext "y")" ]; then
 			rm "$SRCDEST"/*
 			if [ $? -ne 0 ]; then
 				error "$(gettext "Problem removing files; you may not have correct permissions in %s")" "$SRCDEST"
-- 
1.5.6.3





More information about the pacman-dev mailing list