i18n: checkout-index: 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:31 UTC
0ed217188d1fa75c6c10715d45de20ba276ef96c
1 file changed
+12
-12
builtin/checkout-index.c
+12
-12
@@ -123,7 +123,7 @@ static void checkout_all(const char *prefix, int prefix_length)
123
}
124
125
static const char * const builtin_checkout_index_usage[] = {
126
- "git checkout-index [options] [--] [<file>...]",
126
+ N_("git checkout-index [options] [--] [<file>...]"),
127
NULL
128
};
129
@@ -184,27 +184,27 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
184
int force = 0, quiet = 0, not_new = 0;
185
struct option builtin_checkout_index_options[] = {
186
OPT_BOOLEAN('a', "all", &all,
187
- "checks out all files in the index"),
188
- OPT__FORCE(&force, "forces overwrite of existing files"),
187
+ N_("checks out all files in the index")),
188
+ OPT__FORCE(&force, N_("forces overwrite of existing files")),
189
OPT__QUIET(&quiet,
190
- "no warning for existing files and files not in index"),
190
+ N_("no warning for existing files and files not in index")),
191
OPT_BOOLEAN('n', "no-create", ¬_new,
192
- "don't checkout new files"),
192
+ N_("don't checkout new files")),
193
{ OPTION_CALLBACK, 'u', "index", &newfd, NULL,
194
- "update stat information in the index file",
194
+ N_("update stat information in the index file"),
195
PARSE_OPT_NOARG, option_parse_u },
196
{ OPTION_CALLBACK, 'z', NULL, NULL, NULL,
197
- "paths are separated with NUL character",
197
+ N_("paths are separated with NUL character"),
198
PARSE_OPT_NOARG, option_parse_z },
199
OPT_BOOLEAN(0, "stdin", &read_from_stdin,
200
- "read list of paths from the standard input"),
200
+ N_("read list of paths from the standard input")),
201
OPT_BOOLEAN(0, "temp", &to_tempfile,
202
- "write the content to temporary files"),
203
- OPT_CALLBACK(0, "prefix", NULL, "string",
204
- "when creating files, prepend <string>",
202
+ N_("write the content to temporary files")),
203
+ OPT_CALLBACK(0, "prefix", NULL, N_("string"),
204
+ N_("when creating files, prepend <string>"),
205
option_parse_prefix),
206
OPT_CALLBACK(0, "stage", NULL, NULL,
207
- "copy out the files from named stage",
207
+ N_("copy out the files from named stage"),
208
option_parse_stage),
209
OPT_END()
210
};