@@ -158,7 +158,7 @@ void shortlog_add_commit(struct shortlog *log, struct commit *commit)
158
158
buffer = eol ;
159
159
}
160
160
if (!author )
161
- die ("Missing author: %s" ,
161
+ die (_ ( "Missing author: %s" ) ,
162
162
sha1_to_hex (commit -> object .sha1 ));
163
163
if (log -> user_format ) {
164
164
struct pretty_print_context ctx = {0 };
@@ -181,7 +181,7 @@ static void get_from_rev(struct rev_info *rev, struct shortlog *log)
181
181
struct commit * commit ;
182
182
183
183
if (prepare_revision_walk (rev ))
184
- die ("revision walk setup failed" );
184
+ die (_ ( "revision walk setup failed" ) );
185
185
while ((commit = get_revision (rev )) != NULL )
186
186
shortlog_add_commit (log , commit );
187
187
}
@@ -284,7 +284,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
284
284
argc = parse_options_end (& ctx );
285
285
286
286
if (setup_revisions (argc , argv , & rev , NULL ) != 1 ) {
287
- error ("unrecognized argument: %s" , argv [1 ]);
287
+ error (_ ( "unrecognized argument: %s" ) , argv [1 ]);
288
288
usage_with_options (shortlog_usage , options );
289
289
}
290
290
@@ -296,7 +296,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
296
296
add_head_to_pending (& rev );
297
297
if (rev .pending .nr == 0 ) {
298
298
if (isatty (0 ))
299
- fprintf (stderr , "(reading log message from standard input)\n" );
299
+ fprintf (stderr , _ ( "(reading log message from standard input)\n" ) );
300
300
read_from_stdin (& log );
301
301
}
302
302
else
0 commit comments