Skip to content

Commit d0482e6

Browse files
pcloudsgitster
authored andcommitted
archive-tar.c: mark more strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1a07e59 commit d0482e6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

archive-tar.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int stream_blocked(const struct object_id *oid)
121121

122122
st = open_istream(oid, &type, &sz, NULL);
123123
if (!st)
124-
return error("cannot stream blob %s", oid_to_hex(oid));
124+
return error(_("cannot stream blob %s"), oid_to_hex(oid));
125125
for (;;) {
126126
readlen = read_istream(st, buf, sizeof(buf));
127127
if (readlen <= 0)
@@ -256,7 +256,7 @@ static int write_tar_entry(struct archiver_args *args,
256256
*header.typeflag = TYPEFLAG_REG;
257257
mode = (mode | ((mode & 0100) ? 0777 : 0666)) & ~tar_umask;
258258
} else {
259-
return error("unsupported file mode: 0%o (SHA1: %s)",
259+
return error(_("unsupported file mode: 0%o (SHA1: %s)"),
260260
mode, oid_to_hex(oid));
261261
}
262262
if (pathlen > sizeof(header.name)) {
@@ -283,7 +283,7 @@ static int write_tar_entry(struct archiver_args *args,
283283
enum object_type type;
284284
buffer = object_file_to_archive(args, path, oid, old_mode, &type, &size);
285285
if (!buffer)
286-
return error("cannot read %s", oid_to_hex(oid));
286+
return error(_("cannot read %s"), oid_to_hex(oid));
287287
} else {
288288
buffer = NULL;
289289
size = 0;
@@ -454,17 +454,17 @@ static int write_tar_filter_archive(const struct archiver *ar,
454454
filter.in = -1;
455455

456456
if (start_command(&filter) < 0)
457-
die_errno("unable to start '%s' filter", argv[0]);
457+
die_errno(_("unable to start '%s' filter"), argv[0]);
458458
close(1);
459459
if (dup2(filter.in, 1) < 0)
460-
die_errno("unable to redirect descriptor");
460+
die_errno(_("unable to redirect descriptor"));
461461
close(filter.in);
462462

463463
r = write_tar_archive(ar, args);
464464

465465
close(1);
466466
if (finish_command(&filter) != 0)
467-
die("'%s' filter reported error", argv[0]);
467+
die(_("'%s' filter reported error"), argv[0]);
468468

469469
strbuf_release(&cmd);
470470
return r;

0 commit comments

Comments
 (0)