Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: write-tree: mark parseopt strings for translation
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Mon, 20 Aug 2012 12:32:53 +0000
(19:32 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 22 Aug 2012 17:58:29 +0000
(10:58 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/write-tree.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
f6008eb
)
diff --git
a/builtin/write-tree.c
b/builtin/write-tree.c
index b223af416fee5fc219fbcca7afa2b9e03feaa7d0..084c0df7833f29c7554a4ffe95dac4bda1c6ce66 100644
(file)
--- a/
builtin/write-tree.c
+++ b/
builtin/write-tree.c
@@
-10,7
+10,7
@@
#include "parse-options.h"
static const char * const write_tree_usage[] = {
#include "parse-options.h"
static const char * const write_tree_usage[] = {
-
"git write-tree [--missing-ok] [--prefix=<prefix>/]"
,
+
N_("git write-tree [--missing-ok] [--prefix=<prefix>/]")
,
NULL
};
NULL
};
@@
-21,13
+21,13
@@
int cmd_write_tree(int argc, const char **argv, const char *unused_prefix)
unsigned char sha1[20];
const char *me = "git-write-tree";
struct option write_tree_options[] = {
unsigned char sha1[20];
const char *me = "git-write-tree";
struct option write_tree_options[] = {
- OPT_BIT(0, "missing-ok", &flags,
"allow missing objects"
,
+ OPT_BIT(0, "missing-ok", &flags,
N_("allow missing objects")
,
WRITE_TREE_MISSING_OK),
WRITE_TREE_MISSING_OK),
- { OPTION_STRING, 0, "prefix", &prefix,
"<prefix>/"
,
-
"write tree object for a subdirectory <prefix>"
,
+ { OPTION_STRING, 0, "prefix", &prefix,
N_("<prefix>/")
,
+
N_("write tree object for a subdirectory <prefix>")
,
PARSE_OPT_LITERAL_ARGHELP },
{ OPTION_BIT, 0, "ignore-cache-tree", &flags, NULL,
PARSE_OPT_LITERAL_ARGHELP },
{ OPTION_BIT, 0, "ignore-cache-tree", &flags, NULL,
-
"only useful for debugging"
,
+
N_("only useful for debugging")
,
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, NULL,
WRITE_TREE_IGNORE_CACHE_TREE },
OPT_END()
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, NULL,
WRITE_TREE_IGNORE_CACHE_TREE },
OPT_END()