From: Ævar Arnfjörð Bjarmason Date: Tue, 22 Feb 2011 23:41:32 +0000 (+0000) Subject: i18n: git-add "remove '%s'" message X-Git-Tag: v1.7.5-rc1~19^2~60 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=475c73eb8c65fe7b4cb55f05aeb9eee547e4a359;p=git.git i18n: git-add "remove '%s'" message Make the "remove '%s'" message translatable. It's displayed under `git add -u --verbose`. Also skip the corresponding test when output is not in the C locale. Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/builtin/add.c b/builtin/add.c index ffbd45986..33b9970e1 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -74,7 +74,7 @@ static void update_callback(struct diff_queue_struct *q, if (!(data->flags & ADD_CACHE_PRETEND)) remove_file_from_index(&the_index, path); if (data->flags & (ADD_CACHE_PRETEND|ADD_CACHE_VERBOSE)) - printf("remove '%s'\n", path); + printf(_("remove '%s'\n"), path); break; } } diff --git a/t/t2200-add-update.sh b/t/t2200-add-update.sh index 0692427cb..856e7da1f 100755 --- a/t/t2200-add-update.sh +++ b/t/t2200-add-update.sh @@ -111,7 +111,7 @@ test_expect_success 'touch and then add explicitly' ' ' -test_expect_success 'add -n -u should not add but just report' ' +test_expect_success C_LOCALE_OUTPUT 'add -n -u should not add but just report' ' ( echo "add '\''check'\''" &&