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>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2012-08-20 19:32:18 +07:00 committed by Junio C Hamano
parent 68918696cc
commit ce4a5e53d5

View File

@ -464,7 +464,7 @@ static int shared_callback(const struct option *opt, const char *arg, int unset)
} }
static const char *const init_db_usage[] = { static const char *const init_db_usage[] = {
"git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [directory]", N_("git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [directory]"),
NULL NULL
}; };
@ -482,17 +482,17 @@ int cmd_init_db(int argc, const char **argv, const char *prefix)
const char *template_dir = NULL; const char *template_dir = NULL;
unsigned int flags = 0; unsigned int flags = 0;
const struct option init_db_options[] = { const struct option init_db_options[] = {
OPT_STRING(0, "template", &template_dir, "template-directory", OPT_STRING(0, "template", &template_dir, N_("template-directory"),
"directory from which templates will be used"), N_("directory from which templates will be used")),
OPT_SET_INT(0, "bare", &is_bare_repository_cfg, OPT_SET_INT(0, "bare", &is_bare_repository_cfg,
"create a bare repository", 1), N_("create a bare repository"), 1),
{ OPTION_CALLBACK, 0, "shared", &init_shared_repository, { OPTION_CALLBACK, 0, "shared", &init_shared_repository,
"permissions", N_("permissions"),
"specify that the git repository is to be shared amongst several users", N_("specify that the git repository is to be shared amongst several users"),
PARSE_OPT_OPTARG | PARSE_OPT_NONEG, shared_callback, 0}, PARSE_OPT_OPTARG | PARSE_OPT_NONEG, shared_callback, 0},
OPT_BIT('q', "quiet", &flags, "be quiet", INIT_DB_QUIET), OPT_BIT('q', "quiet", &flags, N_("be quiet"), INIT_DB_QUIET),
OPT_STRING(0, "separate-git-dir", &real_git_dir, "gitdir", OPT_STRING(0, "separate-git-dir", &real_git_dir, N_("gitdir"),
"separate git dir from working tree"), N_("separate git dir from working tree")),
OPT_END() OPT_END()
}; };