@matheusbsbs / matheus-bagliano / commits / 475c73eb8c
Fork 0

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 <avarab@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Feb 22, 2011 at 23:41 UTC 475c73eb8c65fe7b4cb55f05aeb9eee547e4a359
2 files changed +2 -2
builtin/add.c
+1 -1
@@ -74,7 +74,7 @@ static void update_callback(struct diff_queue_struct *q,
74 if (!(data->flags & ADD_CACHE_PRETEND))
75 remove_file_from_index(&the_index, path);
76 if (data->flags & (ADD_CACHE_PRETEND|ADD_CACHE_VERBOSE))
77 - printf("remove '%s'\n", path);
77 + printf(_("remove '%s'\n"), path);
78 break;
79 }
80 }
t/t2200-add-update.sh
+1 -1
@@ -111,7 +111,7 @@ test_expect_success 'touch and then add explicitly' '
111
112 '
113
114 -test_expect_success 'add -n -u should not add but just report' '
114 +test_expect_success C_LOCALE_OUTPUT 'add -n -u should not add but just report' '
115
116 (
117 echo "add '\''check'\''" &&