i18n: clone: 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>
maint
Nguyễn Thái Ngọc Duy 2012-08-20 19:32:02 +07:00 committed by Junio C Hamano
parent 145f9c81aa
commit 32b77add95
1 changed files with 28 additions and 28 deletions

View File

@ -33,7 +33,7 @@
* *
*/ */
static const char * const builtin_clone_usage[] = { static const char * const builtin_clone_usage[] = {
"git clone [options] [--] <repo> [<dir>]", N_("git clone [options] [--] <repo> [<dir>]"),
NULL NULL
}; };


@ -61,43 +61,43 @@ static int opt_parse_reference(const struct option *opt, const char *arg, int un
static struct option builtin_clone_options[] = { static struct option builtin_clone_options[] = {
OPT__VERBOSITY(&option_verbosity), OPT__VERBOSITY(&option_verbosity),
OPT_BOOL(0, "progress", &option_progress, OPT_BOOL(0, "progress", &option_progress,
"force progress reporting"), N_("force progress reporting")),
OPT_BOOLEAN('n', "no-checkout", &option_no_checkout, OPT_BOOLEAN('n', "no-checkout", &option_no_checkout,
"don't create a checkout"), N_("don't create a checkout")),
OPT_BOOLEAN(0, "bare", &option_bare, "create a bare repository"), OPT_BOOLEAN(0, "bare", &option_bare, N_("create a bare repository")),
{ OPTION_BOOLEAN, 0, "naked", &option_bare, NULL, { OPTION_BOOLEAN, 0, "naked", &option_bare, NULL,
"create a bare repository", N_("create a bare repository"),
PARSE_OPT_NOARG | PARSE_OPT_HIDDEN }, PARSE_OPT_NOARG | PARSE_OPT_HIDDEN },
OPT_BOOLEAN(0, "mirror", &option_mirror, OPT_BOOLEAN(0, "mirror", &option_mirror,
"create a mirror repository (implies bare)"), N_("create a mirror repository (implies bare)")),
OPT_BOOL('l', "local", &option_local, OPT_BOOL('l', "local", &option_local,
"to clone from a local repository"), N_("to clone from a local repository")),
OPT_BOOLEAN(0, "no-hardlinks", &option_no_hardlinks, OPT_BOOLEAN(0, "no-hardlinks", &option_no_hardlinks,
"don't use local hardlinks, always copy"), N_("don't use local hardlinks, always copy")),
OPT_BOOLEAN('s', "shared", &option_shared, OPT_BOOLEAN('s', "shared", &option_shared,
"setup as shared repository"), N_("setup as shared repository")),
OPT_BOOLEAN(0, "recursive", &option_recursive, OPT_BOOLEAN(0, "recursive", &option_recursive,
"initialize submodules in the clone"), N_("initialize submodules in the clone")),
OPT_BOOLEAN(0, "recurse-submodules", &option_recursive, OPT_BOOLEAN(0, "recurse-submodules", &option_recursive,
"initialize submodules in the clone"), N_("initialize submodules in the clone")),
OPT_STRING(0, "template", &option_template, "template-directory", OPT_STRING(0, "template", &option_template, N_("template-directory"),
"directory from which templates will be used"), N_("directory from which templates will be used")),
OPT_CALLBACK(0 , "reference", &option_reference, "repo", OPT_CALLBACK(0 , "reference", &option_reference, N_("repo"),
"reference repository", &opt_parse_reference), N_("reference repository"), &opt_parse_reference),
OPT_STRING('o', "origin", &option_origin, "name", OPT_STRING('o', "origin", &option_origin, N_("name"),
"use <name> instead of 'origin' to track upstream"), N_("use <name> instead of 'origin' to track upstream")),
OPT_STRING('b', "branch", &option_branch, "branch", OPT_STRING('b', "branch", &option_branch, N_("branch"),
"checkout <branch> instead of the remote's HEAD"), N_("checkout <branch> instead of the remote's HEAD")),
OPT_STRING('u', "upload-pack", &option_upload_pack, "path", OPT_STRING('u', "upload-pack", &option_upload_pack, N_("path"),
"path to git-upload-pack on the remote"), N_("path to git-upload-pack on the remote")),
OPT_STRING(0, "depth", &option_depth, "depth", OPT_STRING(0, "depth", &option_depth, N_("depth"),
"create a shallow clone of that depth"), N_("create a shallow clone of that depth")),
OPT_BOOL(0, "single-branch", &option_single_branch, OPT_BOOL(0, "single-branch", &option_single_branch,
"clone only one branch, HEAD or --branch"), N_("clone only one branch, HEAD or --branch")),
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_STRING_LIST('c', "config", &option_config, "key=value", OPT_STRING_LIST('c', "config", &option_config, N_("key=value"),
"set config inside the new repository"), N_("set config inside the new repository")),
OPT_END() OPT_END()
}; };