mirror of
https://github.com/git/git
synced 2024-09-13 13:24:41 +00:00
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>
This commit is contained in:
parent
f6008eb24d
commit
b5625d0723
|
@ -10,7 +10,7 @@
|
||||||
#include "parse-options.h"
|
#include "parse-options.h"
|
||||||
|
|
||||||
static const char * const write_tree_usage[] = {
|
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];
|
unsigned char sha1[20];
|
||||||
const char *me = "git-write-tree";
|
const char *me = "git-write-tree";
|
||||||
struct option write_tree_options[] = {
|
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>/",
|
{ OPTION_STRING, 0, "prefix", &prefix, N_("<prefix>/"),
|
||||||
"write tree object for a subdirectory <prefix>" ,
|
N_("write tree object for a subdirectory <prefix>") ,
|
||||||
PARSE_OPT_LITERAL_ARGHELP },
|
PARSE_OPT_LITERAL_ARGHELP },
|
||||||
{ OPTION_BIT, 0, "ignore-cache-tree", &flags, NULL,
|
{ OPTION_BIT, 0, "ignore-cache-tree", &flags, NULL,
|
||||||
"only useful for debugging",
|
N_("only useful for debugging"),
|
||||||
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, NULL,
|
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, NULL,
|
||||||
WRITE_TREE_IGNORE_CACHE_TREE },
|
WRITE_TREE_IGNORE_CACHE_TREE },
|
||||||
OPT_END()
|
OPT_END()
|
||||||
|
|
Loading…
Reference in a new issue