git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/4] i18n: apply: mark error message for translation

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
Oct 17, 2016, 13:15 UTC
Message-ID
<20161017131529.27856-1-vascomalmeida@sapo.pt>
Update test to reflect changes.
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 apply.c               | 4 ++--
 t/t4254-am-corrupt.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/apply.c b/apply.c
index 8215874..705cf56 100644
--- a/apply.c
+++ b/apply.c
@@ -1586,8 +1586,8 @@ static int find_header(struct apply_state *state,
 				patch->new_name = xstrdup(patch->def_name);
 			}
 			if (!patch->is_delete && !patch->new_name) {
-				error("git diff header lacks filename information "
-					     "(line %d)", state->linenr);
+				error(_("git diff header lacks filename information "
+					     "(line %d)"), state->linenr);
 				return -128;
 			}
 			patch->is_toplevel_relative = 1;
diff --git a/t/t4254-am-corrupt.sh b/t/t4254-am-corrupt.sh
index 9bd7dd2..168739c 100755
--- a/t/t4254-am-corrupt.sh
+++ b/t/t4254-am-corrupt.sh
@@ -31,7 +31,7 @@ test_expect_success 'try to apply corrupted patch' '
 test_expect_success 'compare diagnostic; ensure file is still here' '
 	echo "error: git diff header lacks filename information (line 4)" >expected &&
 	test_path_is_file f &&
-	test_cmp expected actual
+	test_i18ncmp expected actual
 '
 
 test_done
-- 
2.10.1.459.g5fd885d
Next: Vasco Almeida
Message 1 of 4 in “i18n: apply: mark error message for translation”
  1. 1/4 i18n: apply: mark error message for translationVasco Almeida, Oct 17, 2016
  2. 4/4 i18n: diff: mark warnings for translationVasco Almeida, Oct 17, 2016
  3. 2/4 i18n: convert mark error messages for translationVasco Almeida, Oct 17, 2016
  4. 3/4 i18n: credential-cache--daemon: mark advice for translationVasco Almeida, Oct 17, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.