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>

Nguyễn Thái Ngọc Duy committed Aug 20, 2012 at 19:32 UTC 32b77add95ae8df149abd4a2f9524946d6807ca6
1 file changed +28 -28
builtin/clone.c
+28 -28
@@ -33,7 +33,7 @@
33 *
34 */
35 static const char * const builtin_clone_usage[] = {
36 - "git clone [options] [--] <repo> [<dir>]",
36 + N_("git clone [options] [--] <repo> [<dir>]"),
37 NULL
38 };
39
@@ -61,43 +61,43 @@ static int opt_parse_reference(const struct option *opt, const char *arg, int un
61 static struct option builtin_clone_options[] = {
62 OPT__VERBOSITY(&option_verbosity),
63 OPT_BOOL(0, "progress", &option_progress,
64 - "force progress reporting"),
64 + N_("force progress reporting")),
65 OPT_BOOLEAN('n', "no-checkout", &option_no_checkout,
66 - "don't create a checkout"),
67 - OPT_BOOLEAN(0, "bare", &option_bare, "create a bare repository"),
66 + N_("don't create a checkout")),
67 + OPT_BOOLEAN(0, "bare", &option_bare, N_("create a bare repository")),
68 { OPTION_BOOLEAN, 0, "naked", &option_bare, NULL,
69 - "create a bare repository",
69 + N_("create a bare repository"),
70 PARSE_OPT_NOARG | PARSE_OPT_HIDDEN },
71 OPT_BOOLEAN(0, "mirror", &option_mirror,
72 - "create a mirror repository (implies bare)"),
72 + N_("create a mirror repository (implies bare)")),
73 OPT_BOOL('l', "local", &option_local,
74 - "to clone from a local repository"),
74 + N_("to clone from a local repository")),
75 OPT_BOOLEAN(0, "no-hardlinks", &option_no_hardlinks,
76 - "don't use local hardlinks, always copy"),
76 + N_("don't use local hardlinks, always copy")),
77 OPT_BOOLEAN('s', "shared", &option_shared,
78 - "setup as shared repository"),
78 + N_("setup as shared repository")),
79 OPT_BOOLEAN(0, "recursive", &option_recursive,
80 - "initialize submodules in the clone"),
80 + N_("initialize submodules in the clone")),
81 OPT_BOOLEAN(0, "recurse-submodules", &option_recursive,
82 - "initialize submodules in the clone"),
83 - OPT_STRING(0, "template", &option_template, "template-directory",
84 - "directory from which templates will be used"),
85 - OPT_CALLBACK(0 , "reference", &option_reference, "repo",
86 - "reference repository", &opt_parse_reference),
87 - OPT_STRING('o', "origin", &option_origin, "name",
88 - "use <name> instead of 'origin' to track upstream"),
89 - OPT_STRING('b', "branch", &option_branch, "branch",
90 - "checkout <branch> instead of the remote's HEAD"),
91 - OPT_STRING('u', "upload-pack", &option_upload_pack, "path",
92 - "path to git-upload-pack on the remote"),
93 - OPT_STRING(0, "depth", &option_depth, "depth",
94 - "create a shallow clone of that depth"),
82 + N_("initialize submodules in the clone")),
83 + OPT_STRING(0, "template", &option_template, N_("template-directory"),
84 + N_("directory from which templates will be used")),
85 + OPT_CALLBACK(0 , "reference", &option_reference, N_("repo"),
86 + N_("reference repository"), &opt_parse_reference),
87 + OPT_STRING('o', "origin", &option_origin, N_("name"),
88 + N_("use <name> instead of 'origin' to track upstream")),
89 + OPT_STRING('b', "branch", &option_branch, N_("branch"),
90 + N_("checkout <branch> instead of the remote's HEAD")),
91 + OPT_STRING('u', "upload-pack", &option_upload_pack, N_("path"),
92 + N_("path to git-upload-pack on the remote")),
93 + OPT_STRING(0, "depth", &option_depth, N_("depth"),
94 + N_("create a shallow clone of that depth")),
95 OPT_BOOL(0, "single-branch", &option_single_branch,
96 - "clone only one branch, HEAD or --branch"),
97 - OPT_STRING(0, "separate-git-dir", &real_git_dir, "gitdir",
98 - "separate git dir from working tree"),
99 - OPT_STRING_LIST('c', "config", &option_config, "key=value",
100 - "set config inside the new repository"),
96 + N_("clone only one branch, HEAD or --branch")),
97 + OPT_STRING(0, "separate-git-dir", &real_git_dir, N_("gitdir"),
98 + N_("separate git dir from working tree")),
99 + OPT_STRING_LIST('c', "config", &option_config, N_("key=value"),
100 + N_("set config inside the new repository")),
101 OPT_END()
102 };
103