mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
i18n: fetch: 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:
parent
3b787b9678
commit
719acedba4
1 changed files with 24 additions and 24 deletions
|
@ -16,10 +16,10 @@
|
||||||
#include "connected.h"
|
#include "connected.h"
|
||||||
|
|
||||||
static const char * const builtin_fetch_usage[] = {
|
static const char * const builtin_fetch_usage[] = {
|
||||||
"git fetch [<options>] [<repository> [<refspec>...]]",
|
N_("git fetch [<options>] [<repository> [<refspec>...]]"),
|
||||||
"git fetch [<options>] <group>",
|
N_("git fetch [<options>] <group>"),
|
||||||
"git fetch --multiple [<options>] [(<repository> | <group>)...]",
|
N_("git fetch --multiple [<options>] [(<repository> | <group>)...]"),
|
||||||
"git fetch --all [<options>]",
|
N_("git fetch --all [<options>]"),
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -56,36 +56,36 @@ static int option_parse_recurse_submodules(const struct option *opt,
|
||||||
static struct option builtin_fetch_options[] = {
|
static struct option builtin_fetch_options[] = {
|
||||||
OPT__VERBOSITY(&verbosity),
|
OPT__VERBOSITY(&verbosity),
|
||||||
OPT_BOOLEAN(0, "all", &all,
|
OPT_BOOLEAN(0, "all", &all,
|
||||||
"fetch from all remotes"),
|
N_("fetch from all remotes")),
|
||||||
OPT_BOOLEAN('a', "append", &append,
|
OPT_BOOLEAN('a', "append", &append,
|
||||||
"append to .git/FETCH_HEAD instead of overwriting"),
|
N_("append to .git/FETCH_HEAD instead of overwriting")),
|
||||||
OPT_STRING(0, "upload-pack", &upload_pack, "path",
|
OPT_STRING(0, "upload-pack", &upload_pack, N_("path"),
|
||||||
"path to upload pack on remote end"),
|
N_("path to upload pack on remote end")),
|
||||||
OPT__FORCE(&force, "force overwrite of local branch"),
|
OPT__FORCE(&force, N_("force overwrite of local branch")),
|
||||||
OPT_BOOLEAN('m', "multiple", &multiple,
|
OPT_BOOLEAN('m', "multiple", &multiple,
|
||||||
"fetch from multiple remotes"),
|
N_("fetch from multiple remotes")),
|
||||||
OPT_SET_INT('t', "tags", &tags,
|
OPT_SET_INT('t', "tags", &tags,
|
||||||
"fetch all tags and associated objects", TAGS_SET),
|
N_("fetch all tags and associated objects"), TAGS_SET),
|
||||||
OPT_SET_INT('n', NULL, &tags,
|
OPT_SET_INT('n', NULL, &tags,
|
||||||
"do not fetch all tags (--no-tags)", TAGS_UNSET),
|
N_("do not fetch all tags (--no-tags)"), TAGS_UNSET),
|
||||||
OPT_BOOLEAN('p', "prune", &prune,
|
OPT_BOOLEAN('p', "prune", &prune,
|
||||||
"prune remote-tracking branches no longer on remote"),
|
N_("prune remote-tracking branches no longer on remote")),
|
||||||
{ OPTION_CALLBACK, 0, "recurse-submodules", NULL, "on-demand",
|
{ OPTION_CALLBACK, 0, "recurse-submodules", NULL, N_("on-demand"),
|
||||||
"control recursive fetching of submodules",
|
N_("control recursive fetching of submodules"),
|
||||||
PARSE_OPT_OPTARG, option_parse_recurse_submodules },
|
PARSE_OPT_OPTARG, option_parse_recurse_submodules },
|
||||||
OPT_BOOLEAN(0, "dry-run", &dry_run,
|
OPT_BOOLEAN(0, "dry-run", &dry_run,
|
||||||
"dry run"),
|
N_("dry run")),
|
||||||
OPT_BOOLEAN('k', "keep", &keep, "keep downloaded pack"),
|
OPT_BOOLEAN('k', "keep", &keep, N_("keep downloaded pack")),
|
||||||
OPT_BOOLEAN('u', "update-head-ok", &update_head_ok,
|
OPT_BOOLEAN('u', "update-head-ok", &update_head_ok,
|
||||||
"allow updating of HEAD ref"),
|
N_("allow updating of HEAD ref")),
|
||||||
OPT_BOOL(0, "progress", &progress, "force progress reporting"),
|
OPT_BOOL(0, "progress", &progress, N_("force progress reporting")),
|
||||||
OPT_STRING(0, "depth", &depth, "depth",
|
OPT_STRING(0, "depth", &depth, N_("depth"),
|
||||||
"deepen history of shallow clone"),
|
N_("deepen history of shallow clone")),
|
||||||
{ OPTION_STRING, 0, "submodule-prefix", &submodule_prefix, "dir",
|
{ OPTION_STRING, 0, "submodule-prefix", &submodule_prefix, N_("dir"),
|
||||||
"prepend this to submodule path output", PARSE_OPT_HIDDEN },
|
N_("prepend this to submodule path output"), PARSE_OPT_HIDDEN },
|
||||||
{ OPTION_STRING, 0, "recurse-submodules-default",
|
{ OPTION_STRING, 0, "recurse-submodules-default",
|
||||||
&recurse_submodules_default, NULL,
|
&recurse_submodules_default, NULL,
|
||||||
"default mode for recursion", PARSE_OPT_HIDDEN },
|
N_("default mode for recursion"), PARSE_OPT_HIDDEN },
|
||||||
OPT_END()
|
OPT_END()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue