Skip to content

Commit ce4a5e5

Browse files
pcloudsgitster
authored andcommitted
i18n: init-db: mark parseopt strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6891869 commit ce4a5e5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

builtin/init-db.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ static int shared_callback(const struct option *opt, const char *arg, int unset)
464464
}
465465

466466
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]"),
468468
NULL
469469
};
470470

@@ -482,17 +482,17 @@ int cmd_init_db(int argc, const char **argv, const char *prefix)
482482
const char *template_dir = NULL;
483483
unsigned int flags = 0;
484484
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")),
487487
OPT_SET_INT(0, "bare", &is_bare_repository_cfg,
488-
"create a bare repository", 1),
488+
N_("create a bare repository"), 1),
489489
{ 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"),
492492
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")),
496496
OPT_END()
497497
};
498498

0 commit comments

Comments
 (0)