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

[PATCH 4/4] i18n: diff: mark warnings for translation

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
Oct 17, 2016, 13:15 UTC
Message-ID
<20161017131529.27856-4-vascomalmeida@sapo.pt>
In-Reply-To
<20161017131529.27856-1-vascomalmeida@sapo.pt>

Mark rename_limit_warning and degrade_cc_to_c_warning and rename_limit_warning for translation.

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 diff.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/diff.c b/diff.c
index 1d304e0..1687317 100644
--- a/diff.c
+++ b/diff.c
@@ -4638,25 +4638,25 @@ static int is_summary_empty(const struct diff_queue_struct *q)
 }
 
 static const char rename_limit_warning[] =
-"inexact rename detection was skipped due to too many files.";
+N_("inexact rename detection was skipped due to too many files.");
 
 static const char degrade_cc_to_c_warning[] =
-"only found copies from modified paths due to too many files.";
+N_("only found copies from modified paths due to too many files.");
 
 static const char rename_limit_advice[] =
-"you may want to set your %s variable to at least "
-"%d and retry the command.";
+N_("you may want to set your %s variable to at least "
+   "%d and retry the command.");
 
 void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
 {
 	if (degraded_cc)
-		warning(degrade_cc_to_c_warning);
+		warning(_(degrade_cc_to_c_warning));
 	else if (needed)
-		warning(rename_limit_warning);
+		warning(_(rename_limit_warning));
 	else
 		return;
 	if (0 < needed && needed < 32767)
-		warning(rename_limit_advice, varname, needed);
+		warning(_(rename_limit_advice), varname, needed);
 }
 
 void diff_flush(struct diff_options *options)
-- 
2.10.1.459.g5fd885d
Previous: Vasco AlmeidaNext: Vasco Almeida
Message 2 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.