mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
archive-zip.c: mark more strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
d0482e697c
commit
02f3fe5a9a
@@ -309,11 +309,11 @@ static int write_zip_entry(struct archiver_args *args,
|
|||||||
if (is_utf8(path))
|
if (is_utf8(path))
|
||||||
flags |= ZIP_UTF8;
|
flags |= ZIP_UTF8;
|
||||||
else
|
else
|
||||||
warning("path is not valid UTF-8: %s", path);
|
warning(_("path is not valid UTF-8: %s"), path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pathlen > 0xffff) {
|
if (pathlen > 0xffff) {
|
||||||
return error("path too long (%d chars, SHA1: %s): %s",
|
return error(_("path too long (%d chars, SHA1: %s): %s"),
|
||||||
(int)pathlen, oid_to_hex(oid), path);
|
(int)pathlen, oid_to_hex(oid), path);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -340,7 +340,7 @@ static int write_zip_entry(struct archiver_args *args,
|
|||||||
size > big_file_threshold) {
|
size > big_file_threshold) {
|
||||||
stream = open_istream(oid, &type, &size, NULL);
|
stream = open_istream(oid, &type, &size, NULL);
|
||||||
if (!stream)
|
if (!stream)
|
||||||
return error("cannot stream blob %s",
|
return error(_("cannot stream blob %s"),
|
||||||
oid_to_hex(oid));
|
oid_to_hex(oid));
|
||||||
flags |= ZIP_STREAM;
|
flags |= ZIP_STREAM;
|
||||||
out = buffer = NULL;
|
out = buffer = NULL;
|
||||||
@@ -348,7 +348,7 @@ static int write_zip_entry(struct archiver_args *args,
|
|||||||
buffer = object_file_to_archive(args, path, oid, mode,
|
buffer = object_file_to_archive(args, path, oid, mode,
|
||||||
&type, &size);
|
&type, &size);
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
return error("cannot read %s",
|
return error(_("cannot read %s"),
|
||||||
oid_to_hex(oid));
|
oid_to_hex(oid));
|
||||||
crc = crc32(crc, buffer, size);
|
crc = crc32(crc, buffer, size);
|
||||||
is_binary = entry_is_binary(path_without_prefix,
|
is_binary = entry_is_binary(path_without_prefix,
|
||||||
@@ -357,7 +357,7 @@ static int write_zip_entry(struct archiver_args *args,
|
|||||||
}
|
}
|
||||||
compressed_size = (method == 0) ? size : 0;
|
compressed_size = (method == 0) ? size : 0;
|
||||||
} else {
|
} else {
|
||||||
return error("unsupported file mode: 0%o (SHA1: %s)", mode,
|
return error(_("unsupported file mode: 0%o (SHA1: %s)"), mode,
|
||||||
oid_to_hex(oid));
|
oid_to_hex(oid));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -466,7 +466,7 @@ static int write_zip_entry(struct archiver_args *args,
|
|||||||
zstream.avail_in = readlen;
|
zstream.avail_in = readlen;
|
||||||
result = git_deflate(&zstream, 0);
|
result = git_deflate(&zstream, 0);
|
||||||
if (result != Z_OK)
|
if (result != Z_OK)
|
||||||
die("deflate error (%d)", result);
|
die(_("deflate error (%d)"), result);
|
||||||
out_len = zstream.next_out - compressed;
|
out_len = zstream.next_out - compressed;
|
||||||
|
|
||||||
if (out_len > 0) {
|
if (out_len > 0) {
|
||||||
@@ -601,7 +601,7 @@ static void dos_time(timestamp_t *timestamp, int *dos_date, int *dos_time)
|
|||||||
struct tm *t;
|
struct tm *t;
|
||||||
|
|
||||||
if (date_overflows(*timestamp))
|
if (date_overflows(*timestamp))
|
||||||
die("timestamp too large for this system: %"PRItime,
|
die(_("timestamp too large for this system: %"PRItime),
|
||||||
*timestamp);
|
*timestamp);
|
||||||
time = (time_t)*timestamp;
|
time = (time_t)*timestamp;
|
||||||
t = localtime(&time);
|
t = localtime(&time);
|
||||||
|
|||||||
Reference in New Issue
Block a user