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

[PATCH 02/23] archive-tar.c: mark more strings for translation

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Jun 30, 2018, 09:07 UTC
Message-ID
<20180630090818.28937-3-pclouds@gmail.com>
In-Reply-To
<20180630090818.28937-1-pclouds@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 archive-tar.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/archive-tar.c b/archive-tar.c
index b6f58ddf38..68e72d9176 100644
--- a/archive-tar.c
+++ b/archive-tar.c
@@ -121,7 +121,7 @@ static int stream_blocked(const struct object_id *oid)
 
 	st = open_istream(oid, &type, &sz, NULL);
 	if (!st)
-		return error("cannot stream blob %s", oid_to_hex(oid));
+		return error(_("cannot stream blob %s"), oid_to_hex(oid));
 	for (;;) {
 		readlen = read_istream(st, buf, sizeof(buf));
 		if (readlen <= 0)
@@ -256,7 +256,7 @@ static int write_tar_entry(struct archiver_args *args,
 		*header.typeflag = TYPEFLAG_REG;
 		mode = (mode | ((mode & 0100) ? 0777 : 0666)) & ~tar_umask;
 	} else {
-		return error("unsupported file mode: 0%o (SHA1: %s)",
+		return error(_("unsupported file mode: 0%o (SHA1: %s)"),
 			     mode, oid_to_hex(oid));
 	}
 	if (pathlen > sizeof(header.name)) {
@@ -283,7 +283,7 @@ static int write_tar_entry(struct archiver_args *args,
 		enum object_type type;
 		buffer = object_file_to_archive(args, path, oid, old_mode, &type, &size);
 		if (!buffer)
-			return error("cannot read %s", oid_to_hex(oid));
+			return error(_("cannot read %s"), oid_to_hex(oid));
 	} else {
 		buffer = NULL;
 		size = 0;
@@ -454,17 +454,17 @@ static int write_tar_filter_archive(const struct archiver *ar,
 	filter.in = -1;
 
 	if (start_command(&filter) < 0)
-		die_errno("unable to start '%s' filter", argv[0]);
+		die_errno(_("unable to start '%s' filter"), argv[0]);
 	close(1);
 	if (dup2(filter.in, 1) < 0)
-		die_errno("unable to redirect descriptor");
+		die_errno(_("unable to redirect descriptor"));
 	close(filter.in);
 
 	r = write_tar_archive(ar, args);
 
 	close(1);
 	if (finish_command(&filter) != 0)
-		die("'%s' filter reported error", argv[0]);
+		die(_("'%s' filter reported error"), argv[0]);
 
 	strbuf_release(&cmd);
 	return r;
-- 
2.18.0.rc2.476.g39500d3211
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 4 of 29 in “Mark strings for translation”
  1. 00/23 Mark strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  2. 01/23 Update messages in preparation for i18nNguyễn Thái Ngọc Duy, Jun 30, 2018
  3. 03/23 archive-zip.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  4. 02/23 archive-tar.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  5. 04/23 builtin/config.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  6. Elijah NewrenJul 1, 2018
  7. 05/23 builtin/grep.c: mark strings for translation and no full stopsNguyễn Thái Ngọc Duy, Jun 30, 2018
  8. 06/23 builtin/pack-objects.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  9. Elijah NewrenJul 1, 2018
  10. 07/23 builtin/replace.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  11. Elijah NewrenJul 1, 2018
  12. 08/23 commit-graph.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  13. Derrick StoleeJul 2, 2018
  14. 15/23 object.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  15. 17/23 refs.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  16. 16/23 pkt-line.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  17. 19/23 replace-object.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  18. 18/23 refspec.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  19. 14/23 exec-cmd.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  20. 13/23 environment.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  21. 12/23 dir.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  22. 11/23 convert.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  23. 10/23 connect.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  24. 09/23 config.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  25. Elijah NewrenJul 1, 2018
  26. 20/23 sequencer.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  27. 21/23 sha1-file.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  28. 22/23 transport.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018
  29. 23/23 transport-helper.c: mark more strings for translationNguyễn Thái Ngọc Duy, Jun 30, 2018

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.