Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: init-db: mark parseopt strings for translation
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Mon, 20 Aug 2012 12:32:18 +0000
(19:32 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 20 Aug 2012 19:23:17 +0000
(12:23 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/init-db.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
6891869
)
diff --git
a/builtin/init-db.c
b/builtin/init-db.c
index 244fb7fc32e8263c9ab92ca10a440625f4c2944c..78aa3872dddbba8988b61c49996f9e63719bac75 100644
(file)
--- a/
builtin/init-db.c
+++ b/
builtin/init-db.c
@@
-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;
unsigned int flags = 0;
const struct option init_db_options[] = {
const char *template_dir = NULL;
unsigned int flags = 0;
const struct option init_db_options[] = {
- OPT_STRING(0, "template", &template_dir,
"template-directory"
,
-
"directory from which templates will be used"
),
+ OPT_STRING(0, "template", &template_dir,
N_("template-directory")
,
+
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"
,
-
"specify that the git repository is to be shared amongst several users"
,
+
N_("permissions")
,
+
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_STRING(0, "separate-git-dir", &real_git_dir,
"gitdir"
,
-
"separate git dir from working tree"
),
+ OPT_BIT('q', "quiet", &flags,
N_("be quiet")
, INIT_DB_QUIET),
+ OPT_STRING(0, "separate-git-dir", &real_git_dir,
N_("gitdir")
,
+
N_("separate git dir from working tree")
),
OPT_END()
};
OPT_END()
};