Skip to content

Commit ab8b53b

Browse files
avargitster
authored andcommitted
i18n: git-shortlog basic messages
Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cb6aeb2 commit ab8b53b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builtin/shortlog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void shortlog_add_commit(struct shortlog *log, struct commit *commit)
158158
buffer = eol;
159159
}
160160
if (!author)
161-
die("Missing author: %s",
161+
die(_("Missing author: %s"),
162162
sha1_to_hex(commit->object.sha1));
163163
if (log->user_format) {
164164
struct pretty_print_context ctx = {0};
@@ -181,7 +181,7 @@ static void get_from_rev(struct rev_info *rev, struct shortlog *log)
181181
struct commit *commit;
182182

183183
if (prepare_revision_walk(rev))
184-
die("revision walk setup failed");
184+
die(_("revision walk setup failed"));
185185
while ((commit = get_revision(rev)) != NULL)
186186
shortlog_add_commit(log, commit);
187187
}
@@ -284,7 +284,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
284284
argc = parse_options_end(&ctx);
285285

286286
if (setup_revisions(argc, argv, &rev, NULL) != 1) {
287-
error("unrecognized argument: %s", argv[1]);
287+
error(_("unrecognized argument: %s"), argv[1]);
288288
usage_with_options(shortlog_usage, options);
289289
}
290290

@@ -296,7 +296,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
296296
add_head_to_pending(&rev);
297297
if (rev.pending.nr == 0) {
298298
if (isatty(0))
299-
fprintf(stderr, "(reading log message from standard input)\n");
299+
fprintf(stderr, _("(reading log message from standard input)\n"));
300300
read_from_stdin(&log);
301301
}
302302
else

0 commit comments

Comments
 (0)