i18n: init-db: 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 ce4a5e53d5a937106e9c65f7e968021154b0cf59
1 file changed +9 -9
builtin/init-db.c
+9 -9
@@ -464,7 +464,7 @@ static int shared_callback(const struct option *opt, const char *arg, int unset)
464 }
465
466 static const char *const init_db_usage[] = {
467 - "git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [directory]",
467 + N_("git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [directory]"),
468 NULL
469 };
470
@@ -482,17 +482,17 @@ int cmd_init_db(int argc, const char **argv, const char *prefix)
482 const char *template_dir = NULL;
483 unsigned int flags = 0;
484 const struct option init_db_options[] = {
485 - OPT_STRING(0, "template", &template_dir, "template-directory",
486 - "directory from which templates will be used"),
485 + OPT_STRING(0, "template", &template_dir, N_("template-directory"),
486 + N_("directory from which templates will be used")),
487 OPT_SET_INT(0, "bare", &is_bare_repository_cfg,
488 - "create a bare repository", 1),
488 + N_("create a bare repository"), 1),
489 { OPTION_CALLBACK, 0, "shared", &init_shared_repository,
490 - "permissions",
491 - "specify that the git repository is to be shared amongst several users",
490 + N_("permissions"),
491 + N_("specify that the git repository is to be shared amongst several users"),
492 PARSE_OPT_OPTARG | PARSE_OPT_NONEG, shared_callback, 0},
493 - OPT_BIT('q', "quiet", &flags, "be quiet", INIT_DB_QUIET),
494 - OPT_STRING(0, "separate-git-dir", &real_git_dir, "gitdir",
495 - "separate git dir from working tree"),
493 + OPT_BIT('q', "quiet", &flags, N_("be quiet"), INIT_DB_QUIET),
494 + OPT_STRING(0, "separate-git-dir", &real_git_dir, N_("gitdir"),
495 + N_("separate git dir from working tree")),
496 OPT_END()
497 };
498