i18n: show-branch: 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
d780bef42a1ed0f366a3f4db661c9f806b0ea4f8
1 file changed
+21
-21
builtin/show-branch.c
+21
-21
@@ -6,8 +6,8 @@
6
#include "parse-options.h"
7
8
static const char* show_branch_usage[] = {
9
- "git show-branch [-a|--all] [-r|--remotes] [--topo-order | --date-order] [--current] [--color[=<when>] | --no-color] [--sparse] [--more=<n> | --list | --independent | --merge-base] [--no-name | --sha1-name] [--topics] [(<rev> | <glob>)...]",
10
- "git show-branch (-g|--reflog)[=<n>[,<base>]] [--list] [<ref>]",
9
+ N_("git show-branch [-a|--all] [-r|--remotes] [--topo-order | --date-order] [--current] [--color[=<when>] | --no-color] [--sparse] [--more=<n> | --list | --independent | --merge-base] [--no-name | --sha1-name] [--topics] [(<rev> | <glob>)...]"),
10
+ N_("git show-branch (-g|--reflog)[=<n>[,<base>]] [--list] [<ref>]"),
11
NULL
12
};
13
@@ -648,36 +648,36 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
648
const char *reflog_base = NULL;
649
struct option builtin_show_branch_options[] = {
650
OPT_BOOLEAN('a', "all", &all_heads,
651
- "show remote-tracking and local branches"),
651
+ N_("show remote-tracking and local branches")),
652
OPT_BOOLEAN('r', "remotes", &all_remotes,
653
- "show remote-tracking branches"),
653
+ N_("show remote-tracking branches")),
654
OPT__COLOR(&showbranch_use_color,
655
- "color '*!+-' corresponding to the branch"),
656
- { OPTION_INTEGER, 0, "more", &extra, "n",
657
- "show <n> more commits after the common ancestor",
655
+ N_("color '*!+-' corresponding to the branch")),
656
+ { OPTION_INTEGER, 0, "more", &extra, N_("n"),
657
+ N_("show <n> more commits after the common ancestor"),
658
PARSE_OPT_OPTARG, NULL, (intptr_t)1 },
659
- OPT_SET_INT(0, "list", &extra, "synonym to more=-1", -1),
660
- OPT_BOOLEAN(0, "no-name", &no_name, "suppress naming strings"),
659
+ OPT_SET_INT(0, "list", &extra, N_("synonym to more=-1"), -1),
660
+ OPT_BOOLEAN(0, "no-name", &no_name, N_("suppress naming strings")),
661
OPT_BOOLEAN(0, "current", &with_current_branch,
662
- "include the current branch"),
662
+ N_("include the current branch")),
663
OPT_BOOLEAN(0, "sha1-name", &sha1_name,
664
- "name commits with their object names"),
664
+ N_("name commits with their object names")),
665
OPT_BOOLEAN(0, "merge-base", &merge_base,
666
- "show possible merge bases"),
666
+ N_("show possible merge bases")),
667
OPT_BOOLEAN(0, "independent", &independent,
668
- "show refs unreachable from any other ref"),
668
+ N_("show refs unreachable from any other ref")),
669
OPT_BOOLEAN(0, "topo-order", &lifo,
670
- "show commits in topological order"),
670
+ N_("show commits in topological order")),
671
OPT_BOOLEAN(0, "topics", &topics,
672
- "show only commits not on the first branch"),
672
+ N_("show only commits not on the first branch")),
673
OPT_SET_INT(0, "sparse", &dense,
674
- "show merges reachable from only one tip", 0),
674
+ N_("show merges reachable from only one tip"), 0),
675
OPT_SET_INT(0, "date-order", &lifo,
676
- "show commits where no parent comes before its "
677
- "children", 0),
678
- { OPTION_CALLBACK, 'g', "reflog", &reflog_base, "<n>[,<base>]",
679
- "show <n> most recent ref-log entries starting at "
680
- "base",
676
+ N_("show commits where no parent comes before its "
677
+ "children"), 0),
678
+ { OPTION_CALLBACK, 'g', "reflog", &reflog_base, N_("<n>[,<base>]"),
679
+ N_("show <n> most recent ref-log entries starting at "
680
+ "base"),
681
PARSE_OPT_OPTARG | PARSE_OPT_LITERAL_ARGHELP,
682
parse_reflog_param },
683
OPT_END()