i18n: format-patch: 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
61007a5868b2fc7d10c5ee3ed2552b796fb8dce2
1 file changed
+33
-33
builtin/log.c
+33
-33
@@ -890,7 +890,7 @@ static const char *set_outdir(const char *prefix, const char *output_directory)
890
}
891
892
static const char * const builtin_format_patch_usage[] = {
893
- "git format-patch [options] [<since> | <revision range>]",
893
+ N_("git format-patch [options] [<since> | <revision range>]"),
894
NULL
895
};
896
@@ -1063,61 +1063,61 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
1063
char *branch_name = NULL;
1064
const struct option builtin_format_patch_options[] = {
1065
{ OPTION_CALLBACK, 'n', "numbered", &numbered, NULL,
1066
- "use [PATCH n/m] even with a single patch",
1066
+ N_("use [PATCH n/m] even with a single patch"),
1067
PARSE_OPT_NOARG, numbered_callback },
1068
{ OPTION_CALLBACK, 'N', "no-numbered", &numbered, NULL,
1069
- "use [PATCH] even with multiple patches",
1069
+ N_("use [PATCH] even with multiple patches"),
1070
PARSE_OPT_NOARG, no_numbered_callback },
1071
- OPT_BOOLEAN('s', "signoff", &do_signoff, "add Signed-off-by:"),
1071
+ OPT_BOOLEAN('s', "signoff", &do_signoff, N_("add Signed-off-by:")),
1072
OPT_BOOLEAN(0, "stdout", &use_stdout,
1073
- "print patches to standard out"),
1073
+ N_("print patches to standard out")),
1074
OPT_BOOLEAN(0, "cover-letter", &cover_letter,
1075
- "generate a cover letter"),
1075
+ N_("generate a cover letter")),
1076
OPT_BOOLEAN(0, "numbered-files", &numbered_files,
1077
- "use simple number sequence for output file names"),
1078
- OPT_STRING(0, "suffix", &fmt_patch_suffix, "sfx",
1079
- "use <sfx> instead of '.patch'"),
1077
+ N_("use simple number sequence for output file names")),
1078
+ OPT_STRING(0, "suffix", &fmt_patch_suffix, N_("sfx"),
1079
+ N_("use <sfx> instead of '.patch'")),
1080
OPT_INTEGER(0, "start-number", &start_number,
1081
- "start numbering patches at <n> instead of 1"),
1082
- { OPTION_CALLBACK, 0, "subject-prefix", &rev, "prefix",
1083
- "Use [<prefix>] instead of [PATCH]",
1081
+ N_("start numbering patches at <n> instead of 1")),
1082
+ { OPTION_CALLBACK, 0, "subject-prefix", &rev, N_("prefix"),
1083
+ N_("Use [<prefix>] instead of [PATCH]"),
1084
PARSE_OPT_NONEG, subject_prefix_callback },
1085
{ OPTION_CALLBACK, 'o', "output-directory", &output_directory,
1086
- "dir", "store resulting files in <dir>",
1086
+ N_("dir"), N_("store resulting files in <dir>"),
1087
PARSE_OPT_NONEG, output_directory_callback },
1088
{ OPTION_CALLBACK, 'k', "keep-subject", &rev, NULL,
1089
- "don't strip/add [PATCH]",
1089
+ N_("don't strip/add [PATCH]"),
1090
PARSE_OPT_NOARG | PARSE_OPT_NONEG, keep_callback },
1091
OPT_BOOLEAN(0, "no-binary", &no_binary_diff,
1092
- "don't output binary diffs"),
1092
+ N_("don't output binary diffs")),
1093
OPT_BOOLEAN(0, "ignore-if-in-upstream", &ignore_if_in_upstream,
1094
- "don't include a patch matching a commit upstream"),
1094
+ N_("don't include a patch matching a commit upstream")),
1095
{ OPTION_BOOLEAN, 'p', "no-stat", &use_patch_format, NULL,
1096
- "show patch format instead of default (patch + stat)",
1096
+ N_("show patch format instead of default (patch + stat)"),
1097
PARSE_OPT_NONEG | PARSE_OPT_NOARG },
1098
- OPT_GROUP("Messaging"),
1099
- { OPTION_CALLBACK, 0, "add-header", NULL, "header",
1100
- "add email header", 0, header_callback },
1101
- { OPTION_CALLBACK, 0, "to", NULL, "email", "add To: header",
1098
+ OPT_GROUP(N_("Messaging")),
1099
+ { OPTION_CALLBACK, 0, "add-header", NULL, N_("header"),
1100
+ N_("add email header"), 0, header_callback },
1101
+ { OPTION_CALLBACK, 0, "to", NULL, N_("email"), N_("add To: header"),
1102
0, to_callback },
1103
- { OPTION_CALLBACK, 0, "cc", NULL, "email", "add Cc: header",
1103
+ { OPTION_CALLBACK, 0, "cc", NULL, N_("email"), N_("add Cc: header"),
1104
0, cc_callback },
1105
- OPT_STRING(0, "in-reply-to", &in_reply_to, "message-id",
1106
- "make first mail a reply to <message-id>"),
1107
- { OPTION_CALLBACK, 0, "attach", &rev, "boundary",
1108
- "attach the patch", PARSE_OPT_OPTARG,
1105
+ OPT_STRING(0, "in-reply-to", &in_reply_to, N_("message-id"),
1106
+ N_("make first mail a reply to <message-id>")),
1107
+ { OPTION_CALLBACK, 0, "attach", &rev, N_("boundary"),
1108
+ N_("attach the patch"), PARSE_OPT_OPTARG,
1109
attach_callback },
1110
- { OPTION_CALLBACK, 0, "inline", &rev, "boundary",
1111
- "inline the patch",
1110
+ { OPTION_CALLBACK, 0, "inline", &rev, N_("boundary"),
1111
+ N_("inline the patch"),
1112
PARSE_OPT_OPTARG | PARSE_OPT_NONEG,
1113
inline_callback },
1114
- { OPTION_CALLBACK, 0, "thread", &thread, "style",
1115
- "enable message threading, styles: shallow, deep",
1114
+ { OPTION_CALLBACK, 0, "thread", &thread, N_("style"),
1115
+ N_("enable message threading, styles: shallow, deep"),
1116
PARSE_OPT_OPTARG, thread_callback },
1117
- OPT_STRING(0, "signature", &signature, "signature",
1118
- "add a signature"),
1117
+ OPT_STRING(0, "signature", &signature, N_("signature"),
1118
+ N_("add a signature")),
1119
OPT_BOOLEAN(0, "quiet", &quiet,
1120
- "don't print the patch filenames"),
1120
+ N_("don't print the patch filenames")),
1121
OPT_END()
1122
};
1123