@matheusbsbs / matheus-bagliano / commits / ab8b53bbf1
Fork 0

i18n: git-shortlog basic messages

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Feb 22, 2011 at 23:42 UTC ab8b53bbf1bd0cc078fe1f9772f9328fad59a203
1 file changed +4 -4
builtin/shortlog.c
+4 -4
@@ -158,7 +158,7 @@ void shortlog_add_commit(struct shortlog *log, struct commit *commit)
158 buffer = eol;
159 }
160 if (!author)
161 - die("Missing author: %s",
161 + die(_("Missing author: %s"),
162 sha1_to_hex(commit->object.sha1));
163 if (log->user_format) {
164 struct pretty_print_context ctx = {0};
@@ -181,7 +181,7 @@ static void get_from_rev(struct rev_info *rev, struct shortlog *log)
181 struct commit *commit;
182
183 if (prepare_revision_walk(rev))
184 - die("revision walk setup failed");
184 + die(_("revision walk setup failed"));
185 while ((commit = get_revision(rev)) != NULL)
186 shortlog_add_commit(log, commit);
187 }
@@ -284,7 +284,7 @@ parse_done:
284 argc = parse_options_end(&ctx);
285
286 if (setup_revisions(argc, argv, &rev, NULL) != 1) {
287 - error("unrecognized argument: %s", argv[1]);
287 + error(_("unrecognized argument: %s"), argv[1]);
288 usage_with_options(shortlog_usage, options);
289 }
290
@@ -296,7 +296,7 @@ parse_done:
296 add_head_to_pending(&rev);
297 if (rev.pending.nr == 0) {
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 read_from_stdin(&log);
301 }
302 else