summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6c95f19)
raw | patch | inline | side by side (parent: 6c95f19)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sun, 19 Sep 2010 14:48:59 +0000 (14:48 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:10:09 +0000 (07:10 +0000) |
Gettextize the "remove '%s'\n" message. A test in t2200-add-update.sh
explicitly checked for this message. Change it to skip under
GETTEXT_POISON=YesPlease.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
explicitly checked for this message. Change it to skip under
GETTEXT_POISON=YesPlease.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.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 e2bc260245f3ec53bbadc97ddc3357a8858cb0bb..6578cdd2b63d9492a9c91994a83973e3fa7481de 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 2ad2819a345af53ff6ab0b7c28fa313f1a0a5956..b3b90ca96eb11a8d00d3d476b11d196d3aec56e8 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 NO_GETTEXT_POISON 'add -n -u should not add but just report' '
(
echo "add '\''check'\''" &&