i18n: show-ref: 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 c9120b1c9b916047e048aa85987f358626265f0c
1 file changed +14 -14
builtin/show-ref.c
+14 -14
@@ -7,8 +7,8 @@
7 #include "parse-options.h"
8
9 static const char * const show_ref_usage[] = {
10 - "git show-ref [-q|--quiet] [--verify] [--head] [-d|--dereference] [-s|--hash[=<n>]] [--abbrev[=<n>]] [--tags] [--heads] [--] [pattern*] ",
11 - "git show-ref --exclude-existing[=pattern] < ref-list",
10 + N_("git show-ref [-q|--quiet] [--verify] [--head] [-d|--dereference] [-s|--hash[=<n>]] [--abbrev[=<n>]] [--tags] [--heads] [--] [pattern*] "),
11 + N_("git show-ref --exclude-existing[=pattern] < ref-list"),
12 NULL
13 };
14
@@ -179,26 +179,26 @@ static int help_callback(const struct option *opt, const char *arg, int unset)
179 }
180
181 static const struct option show_ref_options[] = {
182 - OPT_BOOLEAN(0, "tags", &tags_only, "only show tags (can be combined with heads)"),
183 - OPT_BOOLEAN(0, "heads", &heads_only, "only show heads (can be combined with tags)"),
184 - OPT_BOOLEAN(0, "verify", &verify, "stricter reference checking, "
185 - "requires exact ref path"),
182 + OPT_BOOLEAN(0, "tags", &tags_only, N_("only show tags (can be combined with heads)")),
183 + OPT_BOOLEAN(0, "heads", &heads_only, N_("only show heads (can be combined with tags)")),
184 + OPT_BOOLEAN(0, "verify", &verify, N_("stricter reference checking, "
185 + "requires exact ref path")),
186 { OPTION_BOOLEAN, 'h', NULL, &show_head, NULL,
187 - "show the HEAD reference",
187 + N_("show the HEAD reference"),
188 PARSE_OPT_NOARG | PARSE_OPT_HIDDEN },
189 - OPT_BOOLEAN(0, "head", &show_head, "show the HEAD reference"),
189 + OPT_BOOLEAN(0, "head", &show_head, N_("show the HEAD reference")),
190 OPT_BOOLEAN('d', "dereference", &deref_tags,
191 - "dereference tags into object IDs"),
192 - { OPTION_CALLBACK, 's', "hash", &abbrev, "n",
193 - "only show SHA1 hash using <n> digits",
191 + N_("dereference tags into object IDs")),
192 + { OPTION_CALLBACK, 's', "hash", &abbrev, N_("n"),
193 + N_("only show SHA1 hash using <n> digits"),
194 PARSE_OPT_OPTARG, &hash_callback },
195 OPT__ABBREV(&abbrev),
196 OPT__QUIET(&quiet,
197 - "do not print results to stdout (useful with --verify)"),
197 + N_("do not print results to stdout (useful with --verify)")),
198 { OPTION_CALLBACK, 0, "exclude-existing", &exclude_existing_arg,
199 - "pattern", "show refs from stdin that aren't in local repository",
199 + N_("pattern"), N_("show refs from stdin that aren't in local repository"),
200 PARSE_OPT_OPTARG | PARSE_OPT_NONEG, exclude_existing_callback },
201 - { OPTION_CALLBACK, 0, "help-all", NULL, NULL, "show usage",
201 + { OPTION_CALLBACK, 0, "help-all", NULL, NULL, N_("show usage"),
202 PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, help_callback },
203 OPT_END()
204 };