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

[PATCH v2 2/3] i18n: archive: mark errors for translation

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
Aug 10, 2016, 10:50 UTC
Message-ID
<1470826230-4211-2-git-send-email-vascomalmeida@sapo.pt>
In-Reply-To
<1470826230-4211-1-git-send-email-vascomalmeida@sapo.pt>
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 archive.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/archive.c b/archive.c
index 42df974..dde1ab4 100644
--- a/archive.c
+++ b/archive.c
@@ -458,11 +458,11 @@ static int parse_archive_args(int argc, const char **argv,
 	argc = parse_options(argc, argv, NULL, opts, archive_usage, 0);
 
 	if (remote)
-		die("Unexpected option --remote");
+		die(_("Unexpected option --remote"));
 	if (exec)
-		die("Option --exec can only be used together with --remote");
+		die(_("Option --exec can only be used together with --remote"));
 	if (output)
-		die("Unexpected option --output");
+		die(_("Unexpected option --output"));
 
 	if (!base)
 		base = "";
@@ -484,14 +484,14 @@ static int parse_archive_args(int argc, const char **argv,
 		usage_with_options(archive_usage, opts);
 	*ar = lookup_archiver(format);
 	if (!*ar || (is_remote && !((*ar)->flags & ARCHIVER_REMOTE)))
-		die("Unknown archive format '%s'", format);
+		die(_("Unknown archive format '%s'"), format);
 
 	args->compression_level = Z_DEFAULT_COMPRESSION;
 	if (compression_level != -1) {
 		if ((*ar)->flags & ARCHIVER_WANT_COMPRESSION_LEVELS)
 			args->compression_level = compression_level;
 		else {
-			die("Argument not supported for format '%s': -%d",
+			die(_("Argument not supported for format '%s': -%d"),
 					format, compression_level);
 		}
 	}
-- 
2.7.4
Previous: Vasco AlmeidaNext: Vasco Almeida
Message 8 of 9 in “i18n: setup: mark error messages for translation”
  1. 1/3 i18n: setup: mark error messages for translationVasco Almeida, Aug 8, 2016
  2. 2/3 i18n: archive: mark errors for translationVasco Almeida, Aug 8, 2016
  3. Junio C HamanoAug 9, 2016
  4. Vasco AlmeidaAug 10, 2016
  5. 3/3 i18n: git-stash: mark message for translationVasco Almeida, Aug 8, 2016
  6. Junio C HamanoAug 9, 2016
  7. 1/3 i18n: setup: mark error messages for translationVasco Almeida, Aug 10, 2016
  8. 2/3 i18n: archive: mark errors for translationVasco Almeida, Aug 10, 2016
  9. 3/3 i18n: git-stash: mark messages for translationVasco Almeida, Aug 10, 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.