Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: ls-tree: mark parseopt strings for translation
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Mon, 20 Aug 2012 12:32:21 +0000
(19:32 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 20 Aug 2012 19:23:18 +0000
(12:23 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-tree.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
377adc3
)
diff --git
a/builtin/ls-tree.c
b/builtin/ls-tree.c
index 6b666e1e87017f41d2f53c50b157f280b3a5f282..235c17cc015acfb73358bc5ee5bde712fa2b0fa9 100644
(file)
--- a/
builtin/ls-tree.c
+++ b/
builtin/ls-tree.c
@@
-24,7
+24,7
@@
static int chomp_prefix;
static const char *ls_tree_prefix;
static const char * const ls_tree_usage[] = {
static const char *ls_tree_prefix;
static const char * const ls_tree_usage[] = {
-
"git ls-tree [<options>] <tree-ish> [<path>...]"
,
+
N_("git ls-tree [<options>] <tree-ish> [<path>...]")
,
NULL
};
NULL
};
@@
-122,25
+122,25
@@
int cmd_ls_tree(int argc, const char **argv, const char *prefix)
struct tree *tree;
int i, full_tree = 0;
const struct option ls_tree_options[] = {
struct tree *tree;
int i, full_tree = 0;
const struct option ls_tree_options[] = {
- OPT_BIT('d', NULL, &ls_options,
"only show trees"
,
+ OPT_BIT('d', NULL, &ls_options,
N_("only show trees")
,
LS_TREE_ONLY),
LS_TREE_ONLY),
- OPT_BIT('r', NULL, &ls_options,
"recurse into subtrees"
,
+ OPT_BIT('r', NULL, &ls_options,
N_("recurse into subtrees")
,
LS_RECURSIVE),
LS_RECURSIVE),
- OPT_BIT('t', NULL, &ls_options,
"show trees when recursing"
,
+ OPT_BIT('t', NULL, &ls_options,
N_("show trees when recursing")
,
LS_SHOW_TREES),
OPT_SET_INT('z', NULL, &line_termination,
LS_SHOW_TREES),
OPT_SET_INT('z', NULL, &line_termination,
-
"terminate entries with NUL byte"
, 0),
- OPT_BIT('l', "long", &ls_options,
"include object size"
,
+
N_("terminate entries with NUL byte")
, 0),
+ OPT_BIT('l', "long", &ls_options,
N_("include object size")
,
LS_SHOW_SIZE),
LS_SHOW_SIZE),
- OPT_BIT(0, "name-only", &ls_options,
"list only filenames"
,
+ OPT_BIT(0, "name-only", &ls_options,
N_("list only filenames")
,
LS_NAME_ONLY),
LS_NAME_ONLY),
- OPT_BIT(0, "name-status", &ls_options,
"list only filenames"
,
+ OPT_BIT(0, "name-status", &ls_options,
N_("list only filenames")
,
LS_NAME_ONLY),
OPT_SET_INT(0, "full-name", &chomp_prefix,
LS_NAME_ONLY),
OPT_SET_INT(0, "full-name", &chomp_prefix,
-
"use full path names"
, 0),
+
N_("use full path names")
, 0),
OPT_BOOLEAN(0, "full-tree", &full_tree,
OPT_BOOLEAN(0, "full-tree", &full_tree,
- "list entire tree; not just current directory "
-
"(implies --full-name)"
),
+
N_(
"list entire tree; not just current directory "
+
"(implies --full-name)")
),
OPT__ABBREV(&abbrev),
OPT_END()
};
OPT__ABBREV(&abbrev),
OPT_END()
};