summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4816885)
raw | patch | inline | side by side (parent: 4816885)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Tue, 22 Feb 2011 23:41:32 +0000 (23:41 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 10 Mar 2011 07:52:53 +0000 (23:52 -0800) |
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>
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>
builtin/add.c | patch | blob | history | |
t/t2200-add-update.sh | patch | blob | history |
diff --git a/builtin/add.c b/builtin/add.c
index ffbd45986a85a596df0ac105751e670b84df9770..33b9970e15b1ffb20f2ce270d79661a6e602b2de 100644 (file)
--- a/builtin/add.c
+++ b/builtin/add.c
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 0692427cb69c62327da52061de6238ca8e12169d..856e7da1f2d3aba299d30aca9a1a6d5a288d2d91 100755 (executable)
--- a/t/t2200-add-update.sh
+++ b/t/t2200-add-update.sh
'
-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'\''" &&