summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b8eb4c8)
raw | patch | inline | side by side (parent: b8eb4c8)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Tue, 7 Sep 2010 14:55:56 +0000 (14:55 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:58:17 +0000 (07:58 +0000) |
Make the core git-am messages that use say() translatable. These are
visible on almost every git am invocation.
There are tests that depend on the "Applying" output that need to be
skipped along with this translation.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
visible on almost every git am invocation.
There are tests that depend on the "Applying" output that need to be
skipped along with this translation.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
git-am.sh | patch | blob | history | |
t/t4150-am.sh | patch | blob | history | |
t/t4151-am-abort.sh | patch | blob | history |
diff --git a/git-am.sh b/git-am.sh
index fcce1385e8bfb409ad2d58047235aa4dfcac0a9a..ba8c24e61793497b76c74bd9c48d275f879501d3 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -723,7 +723,7 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."; ec
stop_here $this
fi
- say "Applying: $FIRSTLINE"
+ say "$(eval_gettext "Applying: \$FIRSTLINE")"
case "$resolved" in
'')
# Applying the patch to an earlier tree and merging the
# result may have produced the same tree as ours.
git diff-index --quiet --cached HEAD -- && {
- say No changes -- Patch already applied.
+ say "$(gettext "No changes -- Patch already applied.")"
go_next
continue
}
GIT_AUTHOR_DATE=
fi
parent=$(git rev-parse --verify -q HEAD) ||
- say >&2 "applying to an empty history"
+ say >&2 "$(gettext "applying to an empty history")"
if test -n "$committer_date_is_author_date"
then
diff --git a/t/t4150-am.sh b/t/t4150-am.sh
index 1c3d8ed548e629689517661cd1fc6c21d98ccc80..373d79b467f250c7ff5766d6b23a757eee87cbed 100755 (executable)
--- a/t/t4150-am.sh
+++ b/t/t4150-am.sh
git checkout first &&
test_tick &&
sed -e "s/second/second \\\n foo/" patch1 >patchnl &&
- git am <patchnl >output.out 2>&1 &&
+ git am <patchnl >output.out 2>&1
+'
+
+test_expect_success NO_GETTEXT_POISON 'output: am newline in subject' '
grep "^Applying: second \\\n foo$" output.out
'
diff --git a/t/t4151-am-abort.sh b/t/t4151-am-abort.sh
index b55c4117884744db8eda17e42fe05e0e65216215..5bb24f89e4c1c90da0a8f0a31fdab535dc5eab80 100755 (executable)
--- a/t/t4151-am-abort.sh
+++ b/t/t4151-am-abort.sh
test_cmp expect actual
'
- test_expect_success "am$with3 --skip continue after failed am$with3" '
+ test_expect_success NO_GETTEXT_POISON "am$with3 --skip continue after failed am$with3" '
test_must_fail git am$with3 --skip >output &&
test "$(grep "^Applying" output)" = "Applying: 6" &&
test_cmp file-2-expect file-2 &&