Skip to content

Commit b5625d0

Browse files
pcloudsgitster
authored andcommitted
i18n: write-tree: mark parseopt strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f6008eb commit b5625d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

builtin/write-tree.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "parse-options.h"
1111

1212
static const char * const write_tree_usage[] = {
13-
"git write-tree [--missing-ok] [--prefix=<prefix>/]",
13+
N_("git write-tree [--missing-ok] [--prefix=<prefix>/]"),
1414
NULL
1515
};
1616

@@ -21,13 +21,13 @@ int cmd_write_tree(int argc, const char **argv, const char *unused_prefix)
2121
unsigned char sha1[20];
2222
const char *me = "git-write-tree";
2323
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"),
2525
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>") ,
2828
PARSE_OPT_LITERAL_ARGHELP },
2929
{ OPTION_BIT, 0, "ignore-cache-tree", &flags, NULL,
30-
"only useful for debugging",
30+
N_("only useful for debugging"),
3131
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, NULL,
3232
WRITE_TREE_IGNORE_CACHE_TREE },
3333
OPT_END()

0 commit comments

Comments
 (0)