i18n: rev-parse: 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
2c7c184c3b1e1287df6ba5b39f671c6fbd4c8518
1 file changed
+9
-9
builtin/rev-parse.c
+9
-9
@@ -324,15 +324,15 @@ static int cmd_parseopt(int argc, const char **argv, const char *prefix)
324
{
325
static int keep_dashdash = 0, stop_at_non_option = 0;
326
static char const * const parseopt_usage[] = {
327
- "git rev-parse --parseopt [options] -- [<args>...]",
327
+ N_("git rev-parse --parseopt [options] -- [<args>...]"),
328
NULL
329
};
330
static struct option parseopt_opts[] = {
331
OPT_BOOLEAN(0, "keep-dashdash", &keep_dashdash,
332
- "keep the `--` passed as an arg"),
332
+ N_("keep the `--` passed as an arg")),
333
OPT_BOOLEAN(0, "stop-at-non-option", &stop_at_non_option,
334
- "stop parsing after the "
335
- "first non-option argument"),
334
+ N_("stop parsing after the "
335
+ "first non-option argument")),
336
OPT_END(),
337
};
338
@@ -449,11 +449,11 @@ static void die_no_single_rev(int quiet)
449
}
450
451
static const char builtin_rev_parse_usage[] =
452
-"git rev-parse --parseopt [options] -- [<args>...]\n"
453
-" or: git rev-parse --sq-quote [<arg>...]\n"
454
-" or: git rev-parse [options] [<arg>...]\n"
455
-"\n"
456
-"Run \"git rev-parse --parseopt -h\" for more information on the first usage.";
452
+N_("git rev-parse --parseopt [options] -- [<args>...]\n"
453
+ " or: git rev-parse --sq-quote [<arg>...]\n"
454
+ " or: git rev-parse [options] [<arg>...]\n"
455
+ "\n"
456
+ "Run \"git rev-parse --parseopt -h\" for more information on the first usage.");
457
458
int cmd_rev_parse(int argc, const char **argv, const char *prefix)
459
{