i18n: write-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
b5625d072308d5f9f1bd9ea0d7124eaa172736f3
1 file changed
+5
-5
builtin/write-tree.c
+5
-5
@@ -10,7 +10,7 @@
10
#include "parse-options.h"
11
12
static const char * const write_tree_usage[] = {
13
- "git write-tree [--missing-ok] [--prefix=<prefix>/]",
13
+ N_("git write-tree [--missing-ok] [--prefix=<prefix>/]"),
14
NULL
15
};
16
@@ -21,13 +21,13 @@ int cmd_write_tree(int argc, const char **argv, const char *unused_prefix)
21
unsigned char sha1[20];
22
const char *me = "git-write-tree";
23
struct option write_tree_options[] = {
24
- OPT_BIT(0, "missing-ok", &flags, "allow missing objects",
24
+ OPT_BIT(0, "missing-ok", &flags, N_("allow missing objects"),
25
WRITE_TREE_MISSING_OK),
26
- { OPTION_STRING, 0, "prefix", &prefix, "<prefix>/",
27
- "write tree object for a subdirectory <prefix>" ,
26
+ { OPTION_STRING, 0, "prefix", &prefix, N_("<prefix>/"),
27
+ N_("write tree object for a subdirectory <prefix>") ,
28
PARSE_OPT_LITERAL_ARGHELP },
29
{ OPTION_BIT, 0, "ignore-cache-tree", &flags, NULL,
30
- "only useful for debugging",
30
+ N_("only useful for debugging"),
31
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, NULL,
32
WRITE_TREE_IGNORE_CACHE_TREE },
33
OPT_END()