i18n: refactor "foo and bar are mutually exclusive"
Use static strings for constant parts of the sentences. They are all turned into "cannot be used together". Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> Reviewed-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
2ae0a9cb82
commit
43ea635c35
@ -1313,7 +1313,7 @@ static int module_summary(int argc, const char **argv, const char *prefix)
|
||||
|
||||
if (files) {
|
||||
if (cached)
|
||||
die(_("--cached and --files are mutually exclusive"));
|
||||
die(_("options '%s' and '%s' cannot be used together"), "--cached", "--files");
|
||||
diff_cmd = DIFF_FILES;
|
||||
}
|
||||
|
||||
@ -2972,7 +2972,7 @@ static int module_set_branch(int argc, const char **argv, const char *prefix)
|
||||
die(_("--branch or --default required"));
|
||||
|
||||
if (opt_branch && opt_default)
|
||||
die(_("--branch and --default are mutually exclusive"));
|
||||
die(_("options '%s' and '%s' cannot be used together"), "--branch", "--default");
|
||||
|
||||
if (argc != 1 || !(path = argv[0]))
|
||||
usage_with_options(usage, options);
|
||||
|
||||
Reference in New Issue
Block a user