Skip to content

Commit c041c6d

Browse files
vascoolgitster
authored andcommitted
i18n: notes-merge: mark die messages for translation
Update test to reflect changes. Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 166e55e commit c041c6d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

notes-merge.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,15 @@ static void check_notes_merge_worktree(struct notes_merge_options *o)
269269
if (file_exists(git_path(NOTES_MERGE_WORKTREE)) &&
270270
!is_empty_dir(git_path(NOTES_MERGE_WORKTREE))) {
271271
if (advice_resolve_conflict)
272-
die("You have not concluded your previous "
272+
die(_("You have not concluded your previous "
273273
"notes merge (%s exists).\nPlease, use "
274274
"'git notes merge --commit' or 'git notes "
275275
"merge --abort' to commit/abort the "
276276
"previous merge before you start a new "
277-
"notes merge.", git_path("NOTES_MERGE_*"));
277+
"notes merge."), git_path("NOTES_MERGE_*"));
278278
else
279-
die("You have not concluded your notes merge "
280-
"(%s exists).", git_path("NOTES_MERGE_*"));
279+
die(_("You have not concluded your notes merge "
280+
"(%s exists)."), git_path("NOTES_MERGE_*"));
281281
}
282282

283283
if (safe_create_leading_directories_const(git_path(

t/t3310-notes-merge-manual-resolve.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ test_expect_success 'cannot do merge w/conflicts when previous merge is unfinish
225225
test -d .git/NOTES_MERGE_WORKTREE &&
226226
test_must_fail git notes merge z >output 2>&1 &&
227227
# Output should indicate what is wrong
228-
grep -q "\\.git/NOTES_MERGE_\\* exists" output
228+
test_i18ngrep -q "\\.git/NOTES_MERGE_\\* exists" output
229229
'
230230

231231
# Setup non-conflicting merge between x and new notes ref w

0 commit comments

Comments
 (0)