Skip to content

Commit 5e7013a

Browse files
jiangxingitster
authored andcommitted
diff: mark param1 and param2 as placeholders
Some l10n translators translated the parameters "files", "param1" and "param2" in the following message: "synonym for --dirstat=files,param1,param2..." Translating "param1" and "param2" is OK, but changing the parameter "files" is wrong. The parameters that are not meant to be used verbatim should be marked as placeholders, but the verbatim parameter not marked as a placeholder should be left as is. This change is a complement for commit 51e846e (doc: enforce placeholders in documentation, 2023-12-25). With the help of Jean-Noël,some parameter combinations in one placeholder (e.g. "<param1,param2>...") are splited into seperate placeholders. Helped-by: Jean-Noël Avila <[email protected]> Signed-off-by: Jiang Xin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 61a22dd commit 5e7013a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

diff.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5567,16 +5567,16 @@ struct option *add_diff_options(const struct option *opts,
55675567
OPT_BITOP(0, "shortstat", &options->output_format,
55685568
N_("output only the last line of --stat"),
55695569
DIFF_FORMAT_SHORTSTAT, DIFF_FORMAT_NO_OUTPUT),
5570-
OPT_CALLBACK_F('X', "dirstat", options, N_("<param1,param2>..."),
5570+
OPT_CALLBACK_F('X', "dirstat", options, N_("<param1>,<param2>..."),
55715571
N_("output the distribution of relative amount of changes for each sub-directory"),
55725572
PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
55735573
diff_opt_dirstat),
55745574
OPT_CALLBACK_F(0, "cumulative", options, NULL,
55755575
N_("synonym for --dirstat=cumulative"),
55765576
PARSE_OPT_NONEG | PARSE_OPT_NOARG,
55775577
diff_opt_dirstat),
5578-
OPT_CALLBACK_F(0, "dirstat-by-file", options, N_("<param1,param2>..."),
5579-
N_("synonym for --dirstat=files,param1,param2..."),
5578+
OPT_CALLBACK_F(0, "dirstat-by-file", options, N_("<param1>,<param2>..."),
5579+
N_("synonym for --dirstat=files,<param1>,<param2>..."),
55805580
PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
55815581
diff_opt_dirstat),
55825582
OPT_BIT_F(0, "check", &options->output_format,

0 commit comments

Comments
 (0)