Skip to content

Commit 02f3fe5

Browse files
pcloudsgitster
authored andcommitted
archive-zip.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 d0482e6 commit 02f3fe5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

archive-zip.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ static int write_zip_entry(struct archiver_args *args,
309309
if (is_utf8(path))
310310
flags |= ZIP_UTF8;
311311
else
312-
warning("path is not valid UTF-8: %s", path);
312+
warning(_("path is not valid UTF-8: %s"), path);
313313
}
314314

315315
if (pathlen > 0xffff) {
316-
return error("path too long (%d chars, SHA1: %s): %s",
316+
return error(_("path too long (%d chars, SHA1: %s): %s"),
317317
(int)pathlen, oid_to_hex(oid), path);
318318
}
319319

@@ -340,15 +340,15 @@ static int write_zip_entry(struct archiver_args *args,
340340
size > big_file_threshold) {
341341
stream = open_istream(oid, &type, &size, NULL);
342342
if (!stream)
343-
return error("cannot stream blob %s",
343+
return error(_("cannot stream blob %s"),
344344
oid_to_hex(oid));
345345
flags |= ZIP_STREAM;
346346
out = buffer = NULL;
347347
} else {
348348
buffer = object_file_to_archive(args, path, oid, mode,
349349
&type, &size);
350350
if (!buffer)
351-
return error("cannot read %s",
351+
return error(_("cannot read %s"),
352352
oid_to_hex(oid));
353353
crc = crc32(crc, buffer, size);
354354
is_binary = entry_is_binary(path_without_prefix,
@@ -357,7 +357,7 @@ static int write_zip_entry(struct archiver_args *args,
357357
}
358358
compressed_size = (method == 0) ? size : 0;
359359
} else {
360-
return error("unsupported file mode: 0%o (SHA1: %s)", mode,
360+
return error(_("unsupported file mode: 0%o (SHA1: %s)"), mode,
361361
oid_to_hex(oid));
362362
}
363363

@@ -466,7 +466,7 @@ static int write_zip_entry(struct archiver_args *args,
466466
zstream.avail_in = readlen;
467467
result = git_deflate(&zstream, 0);
468468
if (result != Z_OK)
469-
die("deflate error (%d)", result);
469+
die(_("deflate error (%d)"), result);
470470
out_len = zstream.next_out - compressed;
471471

472472
if (out_len > 0) {
@@ -601,7 +601,7 @@ static void dos_time(timestamp_t *timestamp, int *dos_date, int *dos_time)
601601
struct tm *t;
602602

603603
if (date_overflows(*timestamp))
604-
die("timestamp too large for this system: %"PRItime,
604+
die(_("timestamp too large for this system: %"PRItime),
605605
*timestamp);
606606
time = (time_t)*timestamp;
607607
t = localtime(&time);

0 commit comments

Comments
 (0)