builtin/log.c: mark strings for translation

Signed-off-by: Matthias Ruester <matthias.ruester@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Matthias Ruester committed Sep 15, 2014 at 00:07 UTC e4a590efa2d49e6eb4dccfa41a477703493417f3
1 file changed +5 -5
builtin/log.c
+5 -5
@@ -78,7 +78,7 @@ static int decorate_callback(const struct option *opt, const char *arg, int unse
78 decoration_style = DECORATE_SHORT_REFS;
79
80 if (decoration_style < 0)
81 - die("invalid --decorate option: %s", arg);
81 + die(_("invalid --decorate option: %s"), arg);
82
83 decoration_given = 1;
84
@@ -130,7 +130,7 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
130 { OPTION_CALLBACK, 0, "decorate", NULL, NULL, N_("decorate options"),
131 PARSE_OPT_OPTARG, decorate_callback},
132 OPT_CALLBACK('L', NULL, &line_cb, "n,m:file",
133 - "Process line range n,m in file, counting from 1",
133 + N_("Process line range n,m in file, counting from 1"),
134 log_line_range_callback),
135 OPT_END()
136 };
@@ -150,7 +150,7 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
150
151 /* Any arguments at this point are not recognized */
152 if (argc > 1)
153 - die("unrecognized argument: %s", argv[1]);
153 + die(_("unrecognized argument: %s"), argv[1]);
154
155 memset(&w, 0, sizeof(w));
156 userformat_find_requirements(NULL, &w);
@@ -447,13 +447,13 @@ static int show_blob_object(const unsigned char *sha1, struct rev_info *rev, con
447 return stream_blob_to_fd(1, sha1, NULL, 0);
448
449 if (get_sha1_with_context(obj_name, 0, sha1c, &obj_context))
450 - die("Not a valid object name %s", obj_name);
450 + die(_("Not a valid object name %s"), obj_name);
451 if (!obj_context.path[0] ||
452 !textconv_object(obj_context.path, obj_context.mode, sha1c, 1, &buf, &size))
453 return stream_blob_to_fd(1, sha1, NULL, 0);
454
455 if (!buf)
456 - die("git show %s: bad file", obj_name);
456 + die(_("git show %s: bad file"), obj_name);
457
458 write_or_die(1, buf, size);
459 return 0;