i18n: apply: mark error message for translation

Update test to reflect changes. Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Vasco Almeida committed Oct 17, 2016 at 13:15 UTC f25dfb5e8d26204e58d60a6fc209e4ae65827d83
2 files changed +3 -3
apply.c
+2 -2
@@ -1586,8 +1586,8 @@ static int find_header(struct apply_state *state,
1586 patch->new_name = xstrdup(patch->def_name);
1587 }
1588 if (!patch->is_delete && !patch->new_name) {
1589 - error("git diff header lacks filename information "
1590 - "(line %d)", state->linenr);
1589 + error(_("git diff header lacks filename information "
1590 + "(line %d)"), state->linenr);
1591 return -128;
1592 }
1593 patch->is_toplevel_relative = 1;
t/t4254-am-corrupt.sh
+1 -1
@@ -31,7 +31,7 @@ test_expect_success 'try to apply corrupted patch' '
31 test_expect_success 'compare diagnostic; ensure file is still here' '
32 echo "error: git diff header lacks filename information (line 4)" >expected &&
33 test_path_is_file f &&
34 - test_cmp expected actual
34 + test_i18ncmp expected actual
35 '
36
37 test_done