зеркало из https://github.com/microsoft/git.git
object.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:
Родитель
31a55e91bc
Коммит
42246589b8
10
object.c
10
object.c
|
@ -49,7 +49,7 @@ int type_from_string_gently(const char *str, ssize_t len, int gentle)
|
||||||
if (gentle)
|
if (gentle)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
die("invalid object type \"%s\"", str);
|
die(_("invalid object type \"%s\""), str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -169,7 +169,7 @@ void *object_as_type(struct object *obj, enum object_type type, int quiet)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!quiet)
|
if (!quiet)
|
||||||
error("object %s is a %s, not a %s",
|
error(_("object %s is a %s, not a %s"),
|
||||||
oid_to_hex(&obj->oid),
|
oid_to_hex(&obj->oid),
|
||||||
type_name(obj->type), type_name(type));
|
type_name(obj->type), type_name(type));
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -229,7 +229,7 @@ struct object *parse_object_buffer(const struct object_id *oid, enum object_type
|
||||||
obj = &tag->object;
|
obj = &tag->object;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
warning("object %s has unknown type id %d", oid_to_hex(oid), type);
|
warning(_("object %s has unknown type id %d"), oid_to_hex(oid), type);
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
|
@ -262,7 +262,7 @@ struct object *parse_object(const struct object_id *oid)
|
||||||
(!obj && has_object_file(oid) &&
|
(!obj && has_object_file(oid) &&
|
||||||
oid_object_info(the_repository, oid, NULL) == OBJ_BLOB)) {
|
oid_object_info(the_repository, oid, NULL) == OBJ_BLOB)) {
|
||||||
if (check_object_signature(repl, NULL, 0, NULL) < 0) {
|
if (check_object_signature(repl, NULL, 0, NULL) < 0) {
|
||||||
error("sha1 mismatch %s", oid_to_hex(oid));
|
error(_("sha1 mismatch %s"), oid_to_hex(oid));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
parse_blob_buffer(lookup_blob(oid), NULL, 0);
|
parse_blob_buffer(lookup_blob(oid), NULL, 0);
|
||||||
|
@ -273,7 +273,7 @@ struct object *parse_object(const struct object_id *oid)
|
||||||
if (buffer) {
|
if (buffer) {
|
||||||
if (check_object_signature(repl, buffer, size, type_name(type)) < 0) {
|
if (check_object_signature(repl, buffer, size, type_name(type)) < 0) {
|
||||||
free(buffer);
|
free(buffer);
|
||||||
error("sha1 mismatch %s", oid_to_hex(repl));
|
error(_("sha1 mismatch %s"), oid_to_hex(repl));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -372,7 +372,7 @@ test_expect_success 'rev-list --verify-objects with bad sha1' '
|
||||||
|
|
||||||
test_might_fail git rev-list --verify-objects refs/heads/bogus >/dev/null 2>out &&
|
test_might_fail git rev-list --verify-objects refs/heads/bogus >/dev/null 2>out &&
|
||||||
cat out &&
|
cat out &&
|
||||||
grep -q "error: sha1 mismatch 63ffffffffffffffffffffffffffffffffffffff" out
|
test_i18ngrep -q "error: sha1 mismatch 63ffffffffffffffffffffffffffffffffffffff" out
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'force fsck to ignore double author' '
|
test_expect_success 'force fsck to ignore double author' '
|
||||||
|
|
Загрузка…
Ссылка в новой задаче