Merge branch 'nd/i18n'
Many more strings are prepared for l10n. * nd/i18n: (23 commits) transport-helper.c: mark more strings for translation transport.c: mark more strings for translation sha1-file.c: mark more strings for translation sequencer.c: mark more strings for translation replace-object.c: mark more strings for translation refspec.c: mark more strings for translation refs.c: mark more strings for translation pkt-line.c: mark more strings for translation object.c: mark more strings for translation exec-cmd.c: mark more strings for translation environment.c: mark more strings for translation dir.c: mark more strings for translation convert.c: mark more strings for translation connect.c: mark more strings for translation config.c: mark more strings for translation commit-graph.c: mark more strings for translation builtin/replace.c: mark more strings for translation builtin/pack-objects.c: mark more strings for translation builtin/grep.c: mark strings for translation builtin/config.c: mark more strings for translation ...
This commit is contained in:
10
object.c
10
object.c
@ -51,7 +51,7 @@ int type_from_string_gently(const char *str, ssize_t len, int gentle)
|
||||
if (gentle)
|
||||
return -1;
|
||||
|
||||
die("invalid object type \"%s\"", str);
|
||||
die(_("invalid object type \"%s\""), str);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -170,7 +170,7 @@ void *object_as_type(struct repository *r, struct object *obj, enum object_type
|
||||
}
|
||||
else {
|
||||
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),
|
||||
type_name(obj->type), type_name(type));
|
||||
return NULL;
|
||||
@ -230,7 +230,7 @@ struct object *parse_object_buffer(struct repository *r, const struct object_id
|
||||
obj = &tag->object;
|
||||
}
|
||||
} 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;
|
||||
}
|
||||
return obj;
|
||||
@ -263,7 +263,7 @@ struct object *parse_object(struct repository *r, const struct object_id *oid)
|
||||
(!obj && has_object_file(oid) &&
|
||||
oid_object_info(r, oid, NULL) == OBJ_BLOB)) {
|
||||
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;
|
||||
}
|
||||
parse_blob_buffer(lookup_blob(r, oid), NULL, 0);
|
||||
@ -274,7 +274,7 @@ struct object *parse_object(struct repository *r, const struct object_id *oid)
|
||||
if (buffer) {
|
||||
if (check_object_signature(repl, buffer, size, type_name(type)) < 0) {
|
||||
free(buffer);
|
||||
error("sha1 mismatch %s", oid_to_hex(repl));
|
||||
error(_("sha1 mismatch %s"), oid_to_hex(repl));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user