@@ -197,7 +197,7 @@ static int write_oid(const struct object_id *oid, struct packed_git *pack,
197197
198198 if (cmd -> in == -1 ) {
199199 if (start_command (cmd ))
200- die ("Could not start pack-objects to repack promisor objects" );
200+ die (_ ( "could not start pack-objects to repack promisor objects") );
201201 }
202202
203203 xwrite (cmd -> in , oid_to_hex (oid ), GIT_SHA1_HEXSZ );
@@ -236,7 +236,7 @@ static void repack_promisor_objects(const struct pack_objects_args *args,
236236 char * promisor_name ;
237237 int fd ;
238238 if (line .len != 40 )
239- die ("repack: Expecting 40 character sha1 lines only from pack-objects." );
239+ die (_ ( "repack: Expecting 40 character sha1 lines only from pack-objects." ) );
240240 string_list_append (names , line .buf );
241241
242242 /*
@@ -247,13 +247,13 @@ static void repack_promisor_objects(const struct pack_objects_args *args,
247247 line .buf );
248248 fd = open (promisor_name , O_CREAT |O_EXCL |O_WRONLY , 0600 );
249249 if (fd < 0 )
250- die_errno ("unable to create '%s'" , promisor_name );
250+ die_errno (_ ( "unable to create '%s'" ) , promisor_name );
251251 close (fd );
252252 free (promisor_name );
253253 }
254254 fclose (out );
255255 if (finish_command (& cmd ))
256- die ("Could not finish pack-objects to repack promisor objects" );
256+ die (_ ( "could not finish pack-objects to repack promisor objects") );
257257}
258258
259259#define ALL_INTO_ONE 1
@@ -408,7 +408,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix)
408408 out = xfdopen (cmd .out , "r" );
409409 while (strbuf_getline_lf (& line , out ) != EOF ) {
410410 if (line .len != 40 )
411- die ("repack: Expecting 40 character sha1 lines only from pack-objects." );
411+ die (_ ( "repack: Expecting 40 character sha1 lines only from pack-objects" ) );
412412 string_list_append (& names , line .buf );
413413 }
414414 fclose (out );
@@ -417,7 +417,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix)
417417 return ret ;
418418
419419 if (!names .nr && !po_args .quiet )
420- printf ( "Nothing new to pack.\n" );
420+ printf_ln ( _ ( "Nothing new to pack." ) );
421421
422422 /*
423423 * Ok we have prepared all new packfiles.
@@ -477,13 +477,13 @@ int cmd_repack(int argc, const char **argv, const char *prefix)
477477 if (rollback_failure .nr ) {
478478 int i ;
479479 fprintf (stderr ,
480- "WARNING: Some packs in use have been renamed by\n"
481- "WARNING: prefixing old- to their name, in order to\n"
482- "WARNING: replace them with the new version of the\n"
483- "WARNING: file. But the operation failed, and the\n"
484- "WARNING: attempt to rename them back to their\n"
485- "WARNING: original names also failed.\n"
486- "WARNING: Please rename them in %s manually:\n" , packdir );
480+ _ ( "WARNING: Some packs in use have been renamed by\n"
481+ "WARNING: prefixing old- to their name, in order to\n"
482+ "WARNING: replace them with the new version of the\n"
483+ "WARNING: file. But the operation failed, and the\n"
484+ "WARNING: attempt to rename them back to their\n"
485+ "WARNING: original names also failed.\n"
486+ "WARNING: Please rename them in %s manually:\n" ) , packdir );
487487 for (i = 0 ; i < rollback_failure .nr ; i ++ )
488488 fprintf (stderr , "WARNING: old-%s -> %s\n" ,
489489 rollback_failure .items [i ].string ,
0 commit comments