i18n: tag: 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
c88bba18fbe6b93c4317a3997f1dd3b9442509c4
1 file changed
+28
-28
builtin/tag.c
+28
-28
@@ -19,11 +19,11 @@
19
#include "column.h"
20
21
static const char * const git_tag_usage[] = {
22
- "git tag [-a|-s|-u <key-id>] [-f] [-m <msg>|-F <file>] <tagname> [<head>]",
23
- "git tag -d <tagname>...",
24
- "git tag -l [-n[<num>]] [--contains <commit>] [--points-at <object>] "
25
- "\n\t\t[<pattern>...]",
26
- "git tag -v <tagname>...",
22
+ N_("git tag [-a|-s|-u <key-id>] [-f] [-m <msg>|-F <file>] <tagname> [<head>]"),
23
+ N_("git tag -d <tagname>..."),
24
+ N_("git tag -l [-n[<num>]] [--contains <commit>] [--points-at <object>] "
25
+ "\n\t\t[<pattern>...]"),
26
+ N_("git tag -v <tagname>..."),
27
NULL
28
};
29
@@ -444,37 +444,37 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
444
struct msg_arg msg = { 0, STRBUF_INIT };
445
struct commit_list *with_commit = NULL;
446
struct option options[] = {
447
- OPT_BOOLEAN('l', "list", &list, "list tag names"),
448
- { OPTION_INTEGER, 'n', NULL, &lines, "n",
449
- "print <n> lines of each tag message",
447
+ OPT_BOOLEAN('l', "list", &list, N_("list tag names")),
448
+ { OPTION_INTEGER, 'n', NULL, &lines, N_("n"),
449
+ N_("print <n> lines of each tag message"),
450
PARSE_OPT_OPTARG, NULL, 1 },
451
- OPT_BOOLEAN('d', "delete", &delete, "delete tags"),
452
- OPT_BOOLEAN('v', "verify", &verify, "verify tags"),
451
+ OPT_BOOLEAN('d', "delete", &delete, N_("delete tags")),
452
+ OPT_BOOLEAN('v', "verify", &verify, N_("verify tags")),
453
454
- OPT_GROUP("Tag creation options"),
454
+ OPT_GROUP(N_("Tag creation options")),
455
OPT_BOOLEAN('a', "annotate", &annotate,
456
- "annotated tag, needs a message"),
457
- OPT_CALLBACK('m', "message", &msg, "message",
458
- "tag message", parse_msg_arg),
459
- OPT_FILENAME('F', "file", &msgfile, "read message from file"),
460
- OPT_BOOLEAN('s', "sign", &opt.sign, "annotated and GPG-signed tag"),
461
- OPT_STRING(0, "cleanup", &cleanup_arg, "mode",
462
- "how to strip spaces and #comments from message"),
463
- OPT_STRING('u', "local-user", &keyid, "key-id",
464
- "use another key to sign the tag"),
465
- OPT__FORCE(&force, "replace the tag if exists"),
466
- OPT_COLUMN(0, "column", &colopts, "show tag list in columns"),
467
-
468
- OPT_GROUP("Tag listing options"),
456
+ N_("annotated tag, needs a message")),
457
+ OPT_CALLBACK('m', "message", &msg, N_("message"),
458
+ N_("tag message"), parse_msg_arg),
459
+ OPT_FILENAME('F', "file", &msgfile, N_("read message from file")),
460
+ OPT_BOOLEAN('s', "sign", &opt.sign, N_("annotated and GPG-signed tag")),
461
+ OPT_STRING(0, "cleanup", &cleanup_arg, N_("mode"),
462
+ N_("how to strip spaces and #comments from message")),
463
+ OPT_STRING('u', "local-user", &keyid, N_("key-id"),
464
+ N_("use another key to sign the tag")),
465
+ OPT__FORCE(&force, N_("replace the tag if exists")),
466
+ OPT_COLUMN(0, "column", &colopts, N_("show tag list in columns")),
467
+
468
+ OPT_GROUP(N_("Tag listing options")),
469
{
470
- OPTION_CALLBACK, 0, "contains", &with_commit, "commit",
471
- "print only tags that contain the commit",
470
+ OPTION_CALLBACK, 0, "contains", &with_commit, N_("commit"),
471
+ N_("print only tags that contain the commit"),
472
PARSE_OPT_LASTARG_DEFAULT,
473
parse_opt_with_commit, (intptr_t)"HEAD",
474
},
475
{
476
- OPTION_CALLBACK, 0, "points-at", NULL, "object",
477
- "print only tags of the object", 0, parse_opt_points_at
476
+ OPTION_CALLBACK, 0, "points-at", NULL, N_("object"),
477
+ N_("print only tags of the object"), 0, parse_opt_points_at
478
},
479
OPT_END()
480
};