Skip to content

Commit f227631

Browse files
pcloudsgitster
authored andcommitted
i18n: status: 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>
1 parent 2477beb commit f227631

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

builtin/commit.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static const char * const builtin_commit_usage[] = {
3535
};
3636

3737
static const char * const builtin_status_usage[] = {
38-
"git status [options] [--] <filepattern>...",
38+
N_("git status [options] [--] <filepattern>..."),
3939
NULL
4040
};
4141

@@ -1169,24 +1169,24 @@ int cmd_status(int argc, const char **argv, const char *prefix)
11691169
int fd;
11701170
unsigned char sha1[20];
11711171
static struct option builtin_status_options[] = {
1172-
OPT__VERBOSE(&verbose, "be verbose"),
1172+
OPT__VERBOSE(&verbose, N_("be verbose")),
11731173
OPT_SET_INT('s', "short", &status_format,
1174-
"show status concisely", STATUS_FORMAT_SHORT),
1174+
N_("show status concisely"), STATUS_FORMAT_SHORT),
11751175
OPT_BOOLEAN('b', "branch", &s.show_branch,
1176-
"show branch information"),
1176+
N_("show branch information")),
11771177
OPT_SET_INT(0, "porcelain", &status_format,
1178-
"machine-readable output",
1178+
N_("machine-readable output"),
11791179
STATUS_FORMAT_PORCELAIN),
11801180
OPT_BOOLEAN('z', "null", &s.null_termination,
1181-
"terminate entries with NUL"),
1181+
N_("terminate entries with NUL")),
11821182
{ OPTION_STRING, 'u', "untracked-files", &untracked_files_arg,
1183-
"mode",
1184-
"show untracked files, optional modes: all, normal, no. (Default: all)",
1183+
N_("mode"),
1184+
N_("show untracked files, optional modes: all, normal, no. (Default: all)"),
11851185
PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
11861186
OPT_BOOLEAN(0, "ignored", &show_ignored_in_status,
1187-
"show ignored files"),
1188-
{ OPTION_STRING, 0, "ignore-submodules", &ignore_submodule_arg, "when",
1189-
"ignore changes to submodules, optional when: all, dirty, untracked. (Default: all)",
1187+
N_("show ignored files")),
1188+
{ OPTION_STRING, 0, "ignore-submodules", &ignore_submodule_arg, N_("when"),
1189+
N_("ignore changes to submodules, optional when: all, dirty, untracked. (Default: all)"),
11901190
PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
11911191
OPT_COLUMN(0, "column", &s.colopts, N_("list untracked files in columns")),
11921192
OPT_END(),

0 commit comments

Comments
 (0)