i18n: describe: mark parseopt strings for translation

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Aug 20, 2012 at 19:32 UTC bfb0737d9663f420e7788977c64f8dfede7824bf
1 file changed +14 -14
builtin/describe.c
+14 -14
@@ -12,8 +12,8 @@
12 #define MAX_TAGS (FLAG_BITS - 1)
13
14 static const char * const describe_usage[] = {
15 - "git describe [options] <committish>*",
16 - "git describe [options] --dirty",
15 + N_("git describe [options] <committish>*"),
16 + N_("git describe [options] --dirty"),
17 NULL
18 };
19
@@ -400,22 +400,22 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
400 {
401 int contains = 0;
402 struct option options[] = {
403 - OPT_BOOLEAN(0, "contains", &contains, "find the tag that comes after the commit"),
404 - OPT_BOOLEAN(0, "debug", &debug, "debug search strategy on stderr"),
405 - OPT_BOOLEAN(0, "all", &all, "use any ref in .git/refs"),
406 - OPT_BOOLEAN(0, "tags", &tags, "use any tag in .git/refs/tags"),
407 - OPT_BOOLEAN(0, "long", &longformat, "always use long format"),
403 + OPT_BOOLEAN(0, "contains", &contains, N_("find the tag that comes after the commit")),
404 + OPT_BOOLEAN(0, "debug", &debug, N_("debug search strategy on stderr")),
405 + OPT_BOOLEAN(0, "all", &all, N_("use any ref in .git/refs")),
406 + OPT_BOOLEAN(0, "tags", &tags, N_("use any tag in .git/refs/tags")),
407 + OPT_BOOLEAN(0, "long", &longformat, N_("always use long format")),
408 OPT__ABBREV(&abbrev),
409 OPT_SET_INT(0, "exact-match", &max_candidates,
410 - "only output exact matches", 0),
410 + N_("only output exact matches"), 0),
411 OPT_INTEGER(0, "candidates", &max_candidates,
412 - "consider <n> most recent tags (default: 10)"),
413 - OPT_STRING(0, "match", &pattern, "pattern",
414 - "only consider tags matching <pattern>"),
412 + N_("consider <n> most recent tags (default: 10)")),
413 + OPT_STRING(0, "match", &pattern, N_("pattern"),
414 + N_("only consider tags matching <pattern>")),
415 OPT_BOOLEAN(0, "always", &always,
416 - "show abbreviated commit object as fallback"),
417 - {OPTION_STRING, 0, "dirty", &dirty, "mark",
418 - "append <mark> on dirty working tree (default: \"-dirty\")",
416 + N_("show abbreviated commit object as fallback")),
417 + {OPTION_STRING, 0, "dirty", &dirty, N_("mark"),
418 + N_("append <mark> on dirty working tree (default: \"-dirty\")"),
419 PARSE_OPT_OPTARG, NULL, (intptr_t) "-dirty"},
420 OPT_END(),
421 };