@@ -49,7 +49,7 @@ int type_from_string_gently(const char *str, ssize_t len, int gentle)
49
49
if (gentle )
50
50
return -1 ;
51
51
52
- die ("invalid object type \"%s\"" , str );
52
+ die (_ ( "invalid object type \"%s\"" ) , str );
53
53
}
54
54
55
55
/*
@@ -169,7 +169,7 @@ void *object_as_type(struct object *obj, enum object_type type, int quiet)
169
169
}
170
170
else {
171
171
if (!quiet )
172
- error ("object %s is a %s, not a %s" ,
172
+ error (_ ( "object %s is a %s, not a %s" ) ,
173
173
oid_to_hex (& obj -> oid ),
174
174
type_name (obj -> type ), type_name (type ));
175
175
return NULL ;
@@ -229,7 +229,7 @@ struct object *parse_object_buffer(const struct object_id *oid, enum object_type
229
229
obj = & tag -> object ;
230
230
}
231
231
} else {
232
- warning ("object %s has unknown type id %d" , oid_to_hex (oid ), type );
232
+ warning (_ ( "object %s has unknown type id %d" ) , oid_to_hex (oid ), type );
233
233
obj = NULL ;
234
234
}
235
235
return obj ;
@@ -262,7 +262,7 @@ struct object *parse_object(const struct object_id *oid)
262
262
(!obj && has_object_file (oid ) &&
263
263
oid_object_info (the_repository , oid , NULL ) == OBJ_BLOB )) {
264
264
if (check_object_signature (repl , NULL , 0 , NULL ) < 0 ) {
265
- error ("sha1 mismatch %s" , oid_to_hex (oid ));
265
+ error (_ ( "sha1 mismatch %s" ) , oid_to_hex (oid ));
266
266
return NULL ;
267
267
}
268
268
parse_blob_buffer (lookup_blob (oid ), NULL , 0 );
@@ -273,7 +273,7 @@ struct object *parse_object(const struct object_id *oid)
273
273
if (buffer ) {
274
274
if (check_object_signature (repl , buffer , size , type_name (type )) < 0 ) {
275
275
free (buffer );
276
- error ("sha1 mismatch %s" , oid_to_hex (repl ));
276
+ error (_ ( "sha1 mismatch %s" ) , oid_to_hex (repl ));
277
277
return NULL ;
278
278
}
279
279
0 commit comments