i18n: ls-tree: 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
373f9221749d71f44214c940ebecda6bb83bc6a0
1 file changed
+11
-11
builtin/ls-tree.c
+11
-11
@@ -24,7 +24,7 @@ static int chomp_prefix;
24
static const char *ls_tree_prefix;
25
26
static const char * const ls_tree_usage[] = {
27
- "git ls-tree [<options>] <tree-ish> [<path>...]",
27
+ N_("git ls-tree [<options>] <tree-ish> [<path>...]"),
28
NULL
29
};
30
@@ -122,25 +122,25 @@ int cmd_ls_tree(int argc, const char **argv, const char *prefix)
122
struct tree *tree;
123
int i, full_tree = 0;
124
const struct option ls_tree_options[] = {
125
- OPT_BIT('d', NULL, &ls_options, "only show trees",
125
+ OPT_BIT('d', NULL, &ls_options, N_("only show trees"),
126
LS_TREE_ONLY),
127
- OPT_BIT('r', NULL, &ls_options, "recurse into subtrees",
127
+ OPT_BIT('r', NULL, &ls_options, N_("recurse into subtrees"),
128
LS_RECURSIVE),
129
- OPT_BIT('t', NULL, &ls_options, "show trees when recursing",
129
+ OPT_BIT('t', NULL, &ls_options, N_("show trees when recursing"),
130
LS_SHOW_TREES),
131
OPT_SET_INT('z', NULL, &line_termination,
132
- "terminate entries with NUL byte", 0),
133
- OPT_BIT('l', "long", &ls_options, "include object size",
132
+ N_("terminate entries with NUL byte"), 0),
133
+ OPT_BIT('l', "long", &ls_options, N_("include object size"),
134
LS_SHOW_SIZE),
135
- OPT_BIT(0, "name-only", &ls_options, "list only filenames",
135
+ OPT_BIT(0, "name-only", &ls_options, N_("list only filenames"),
136
LS_NAME_ONLY),
137
- OPT_BIT(0, "name-status", &ls_options, "list only filenames",
137
+ OPT_BIT(0, "name-status", &ls_options, N_("list only filenames"),
138
LS_NAME_ONLY),
139
OPT_SET_INT(0, "full-name", &chomp_prefix,
140
- "use full path names", 0),
140
+ N_("use full path names"), 0),
141
OPT_BOOLEAN(0, "full-tree", &full_tree,
142
- "list entire tree; not just current directory "
143
- "(implies --full-name)"),
142
+ N_("list entire tree; not just current directory "
143
+ "(implies --full-name)")),
144
OPT__ABBREV(&abbrev),
145
OPT_END()
146
};