Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: checkout-index: mark parseopt strings for translation
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Mon, 20 Aug 2012 12:31:58 +0000
(19:31 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 20 Aug 2012 19:23:15 +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/checkout-index.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
5a72beb
)
diff --git
a/builtin/checkout-index.c
b/builtin/checkout-index.c
index c16d82b7de652026b70fc3d949ddc849f749eee8..86b7d36c2964cfefc35480841cea23296f0fe69a 100644
(file)
--- a/
builtin/checkout-index.c
+++ b/
builtin/checkout-index.c
@@
-123,7
+123,7
@@
static void checkout_all(const char *prefix, int prefix_length)
}
static const char * const builtin_checkout_index_usage[] = {
}
static const char * const builtin_checkout_index_usage[] = {
-
"git checkout-index [options] [--] [<file>...]"
,
+
N_("git checkout-index [options] [--] [<file>...]")
,
NULL
};
NULL
};
@@
-184,27
+184,27
@@
int cmd_checkout_index(int argc, const char **argv, const char *prefix)
int force = 0, quiet = 0, not_new = 0;
struct option builtin_checkout_index_options[] = {
OPT_BOOLEAN('a', "all", &all,
int force = 0, quiet = 0, not_new = 0;
struct option builtin_checkout_index_options[] = {
OPT_BOOLEAN('a', "all", &all,
-
"checks out all files in the index"
),
- OPT__FORCE(&force,
"forces overwrite of existing files"
),
+
N_("checks out all files in the index")
),
+ OPT__FORCE(&force,
N_("forces overwrite of existing files")
),
OPT__QUIET(&quiet,
OPT__QUIET(&quiet,
-
"no warning for existing files and files not in index"
),
+
N_("no warning for existing files and files not in index")
),
OPT_BOOLEAN('n', "no-create", ¬_new,
OPT_BOOLEAN('n', "no-create", ¬_new,
-
"don't checkout new files"
),
+
N_("don't checkout new files")
),
{ OPTION_CALLBACK, 'u', "index", &newfd, NULL,
{ OPTION_CALLBACK, 'u', "index", &newfd, NULL,
-
"update stat information in the index file"
,
+
N_("update stat information in the index file")
,
PARSE_OPT_NOARG, option_parse_u },
{ OPTION_CALLBACK, 'z', NULL, NULL, NULL,
PARSE_OPT_NOARG, option_parse_u },
{ OPTION_CALLBACK, 'z', NULL, NULL, NULL,
-
"paths are separated with NUL character"
,
+
N_("paths are separated with NUL character")
,
PARSE_OPT_NOARG, option_parse_z },
OPT_BOOLEAN(0, "stdin", &read_from_stdin,
PARSE_OPT_NOARG, option_parse_z },
OPT_BOOLEAN(0, "stdin", &read_from_stdin,
-
"read list of paths from the standard input"
),
+
N_("read list of paths from the standard input")
),
OPT_BOOLEAN(0, "temp", &to_tempfile,
OPT_BOOLEAN(0, "temp", &to_tempfile,
-
"write the content to temporary files"
),
- OPT_CALLBACK(0, "prefix", NULL,
"string"
,
-
"when creating files, prepend <string>"
,
+
N_("write the content to temporary files")
),
+ OPT_CALLBACK(0, "prefix", NULL,
N_("string")
,
+
N_("when creating files, prepend <string>")
,
option_parse_prefix),
OPT_CALLBACK(0, "stage", NULL, NULL,
option_parse_prefix),
OPT_CALLBACK(0, "stage", NULL, NULL,
-
"copy out the files from named stage"
,
+
N_("copy out the files from named stage")
,
option_parse_stage),
OPT_END()
};
option_parse_stage),
OPT_END()
};