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>
Nguyễn Thái Ngọc Duy committed
Aug 20, 2012 at 19:32 UTC
719acedba43ac36af5b7321b39f4778affcc511c
1 file changed
+24
-24
builtin/fetch.c
+24
-24
@@ -16,10 +16,10 @@
16
#include "connected.h"
17
18
static const char * const builtin_fetch_usage[] = {
19
- "git fetch [<options>] [<repository> [<refspec>...]]",
20
- "git fetch [<options>] <group>",
21
- "git fetch --multiple [<options>] [(<repository> | <group>)...]",
22
- "git fetch --all [<options>]",
19
+ N_("git fetch [<options>] [<repository> [<refspec>...]]"),
20
+ N_("git fetch [<options>] <group>"),
21
+ N_("git fetch --multiple [<options>] [(<repository> | <group>)...]"),
22
+ N_("git fetch --all [<options>]"),
23
NULL
24
};
25
@@ -56,36 +56,36 @@ static int option_parse_recurse_submodules(const struct option *opt,
56
static struct option builtin_fetch_options[] = {
57
OPT__VERBOSITY(&verbosity),
58
OPT_BOOLEAN(0, "all", &all,
59
- "fetch from all remotes"),
59
+ N_("fetch from all remotes")),
60
OPT_BOOLEAN('a', "append", &append,
61
- "append to .git/FETCH_HEAD instead of overwriting"),
62
- OPT_STRING(0, "upload-pack", &upload_pack, "path",
63
- "path to upload pack on remote end"),
64
- OPT__FORCE(&force, "force overwrite of local branch"),
61
+ N_("append to .git/FETCH_HEAD instead of overwriting")),
62
+ OPT_STRING(0, "upload-pack", &upload_pack, N_("path"),
63
+ N_("path to upload pack on remote end")),
64
+ OPT__FORCE(&force, N_("force overwrite of local branch")),
65
OPT_BOOLEAN('m', "multiple", &multiple,
66
- "fetch from multiple remotes"),
66
+ N_("fetch from multiple remotes")),
67
OPT_SET_INT('t', "tags", &tags,
68
- "fetch all tags and associated objects", TAGS_SET),
68
+ N_("fetch all tags and associated objects"), TAGS_SET),
69
OPT_SET_INT('n', NULL, &tags,
70
- "do not fetch all tags (--no-tags)", TAGS_UNSET),
70
+ N_("do not fetch all tags (--no-tags)"), TAGS_UNSET),
71
OPT_BOOLEAN('p', "prune", &prune,
72
- "prune remote-tracking branches no longer on remote"),
73
- { OPTION_CALLBACK, 0, "recurse-submodules", NULL, "on-demand",
74
- "control recursive fetching of submodules",
72
+ N_("prune remote-tracking branches no longer on remote")),
73
+ { OPTION_CALLBACK, 0, "recurse-submodules", NULL, N_("on-demand"),
74
+ N_("control recursive fetching of submodules"),
75
PARSE_OPT_OPTARG, option_parse_recurse_submodules },
76
OPT_BOOLEAN(0, "dry-run", &dry_run,
77
- "dry run"),
78
- OPT_BOOLEAN('k', "keep", &keep, "keep downloaded pack"),
77
+ N_("dry run")),
78
+ OPT_BOOLEAN('k', "keep", &keep, N_("keep downloaded pack")),
79
OPT_BOOLEAN('u', "update-head-ok", &update_head_ok,
80
- "allow updating of HEAD ref"),
81
- OPT_BOOL(0, "progress", &progress, "force progress reporting"),
82
- OPT_STRING(0, "depth", &depth, "depth",
83
- "deepen history of shallow clone"),
84
- { OPTION_STRING, 0, "submodule-prefix", &submodule_prefix, "dir",
85
- "prepend this to submodule path output", PARSE_OPT_HIDDEN },
80
+ N_("allow updating of HEAD ref")),
81
+ OPT_BOOL(0, "progress", &progress, N_("force progress reporting")),
82
+ OPT_STRING(0, "depth", &depth, N_("depth"),
83
+ N_("deepen history of shallow clone")),
84
+ { OPTION_STRING, 0, "submodule-prefix", &submodule_prefix, N_("dir"),
85
+ N_("prepend this to submodule path output"), PARSE_OPT_HIDDEN },
86
{ OPTION_STRING, 0, "recurse-submodules-default",
87
&recurse_submodules_default, NULL,
88
- "default mode for recursion", PARSE_OPT_HIDDEN },
88
+ N_("default mode for recursion"), PARSE_OPT_HIDDEN },
89
OPT_END()
90
};
91