{"thread":{"id":"37567","subject":"[PATCH] builtin/log.c: mark strings for translation","startedAt":"2014-09-14T22:07:10Z","lastAt":"2014-09-14T22:07:10Z","messageCount":1,"participants":["Matthias Ruester"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"249411","messageId":"1410732430-26730-1-git-send-email-matthias.ruester@gmail.com","threadId":"37567","inReplyTo":null,"subject":"[PATCH] builtin/log.c: mark strings for translation","fromName":"Matthias Ruester","fromEmail":"matthias.ruester@gmail.com","sentAt":"2014-09-14T22:07:10Z","receivedAt":"2014-09-14T22:07:10Z","isPatch":true,"sender":{"key":"matthias.ruester@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1287885?v=4"},"body":"Signed-off-by: Matthias Ruester <matthias.ruester@gmail.com>\n---\n builtin/log.c | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)\n\ndiff --git a/builtin/log.c b/builtin/log.c\nindex e713618..5621475 100644\n--- a/builtin/log.c\n+++ b/builtin/log.c\n@@ -78,7 +78,7 @@ static int decorate_callback(const struct option *opt, const char *arg, int unse\n \t\tdecoration_style = DECORATE_SHORT_REFS;\n \n \tif (decoration_style < 0)\n-\t\tdie(\"invalid --decorate option: %s\", arg);\n+\t\tdie(_(\"invalid --decorate option: %s\"), arg);\n \n \tdecoration_given = 1;\n \n@@ -130,7 +130,7 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,\n \t\t{ OPTION_CALLBACK, 0, \"decorate\", NULL, NULL, N_(\"decorate options\"),\n \t\t  PARSE_OPT_OPTARG, decorate_callback},\n \t\tOPT_CALLBACK('L', NULL, &line_cb, \"n,m:file\",\n-\t\t\t     \"Process line range n,m in file, counting from 1\",\n+\t\t\t     N_(\"Process line range n,m in file, counting from 1\"),\n \t\t\t     log_line_range_callback),\n \t\tOPT_END()\n \t};\n@@ -150,7 +150,7 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,\n \n \t/* Any arguments at this point are not recognized */\n \tif (argc > 1)\n-\t\tdie(\"unrecognized argument: %s\", argv[1]);\n+\t\tdie(_(\"unrecognized argument: %s\"), argv[1]);\n \n \tmemset(&w, 0, sizeof(w));\n \tuserformat_find_requirements(NULL, &w);\n@@ -447,13 +447,13 @@ static int show_blob_object(const unsigned char *sha1, struct rev_info *rev, con\n \t\treturn stream_blob_to_fd(1, sha1, NULL, 0);\n \n \tif (get_sha1_with_context(obj_name, 0, sha1c, &obj_context))\n-\t\tdie(\"Not a valid object name %s\", obj_name);\n+\t\tdie(_(\"Not a valid object name %s\"), obj_name);\n \tif (!obj_context.path[0] ||\n \t    !textconv_object(obj_context.path, obj_context.mode, sha1c, 1, &buf, &size))\n \t\treturn stream_blob_to_fd(1, sha1, NULL, 0);\n \n \tif (!buf)\n-\t\tdie(\"git show %s: bad file\", obj_name);\n+\t\tdie(_(\"git show %s: bad file\"), obj_name);\n \n \twrite_or_die(1, buf, size);\n \treturn 0;\n-- \n2.1.0.240.gee0024b\n"}]}