Skip to content

Commit cb6aeb2

Browse files
avargitster
authored andcommitted
i18n: git-revert split up "could not revert/apply" message
Split up the "could not %s %s... %s" message into "could not revert %s... %s" and "could not apply %s... %s". This makes it easier for translators to understand the message. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b9c993e commit cb6aeb2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

builtin/revert.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,9 @@ static int do_pick_commit(void)
536536
}
537537

538538
if (res) {
539-
error("could not %s %s... %s",
540-
action == REVERT ? "revert" : "apply",
539+
error(action == REVERT
540+
? _("could not revert %s... %s")
541+
: _("could not apply %s... %s"),
541542
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV),
542543
msg.subject);
543544
print_advice();

t/t3507-cherry-pick-conflict.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ test_expect_success 'failed cherry-pick does not advance HEAD' '
3838
test "$head" = "$newhead"
3939
'
4040

41-
test_expect_success 'advice from failed cherry-pick' "
41+
test_expect_success C_LOCALE_OUTPUT 'advice from failed cherry-pick' "
4242
git checkout -f initial^0 &&
4343
git read-tree -u --reset HEAD &&
4444
git clean -d -f -f -q -x &&

0 commit comments

Comments
 (0)