зеркало из https://github.com/microsoft/git.git
i18n: ref-filter: factorize "%(foo) atom used without %(bar) atom"
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:
Родитель
59bb00090e
Коммит
d7d30badbf
|
@ -841,7 +841,7 @@ static void if_then_else_handler(struct ref_formatting_stack **stack)
|
|||
struct if_then_else *if_then_else = (struct if_then_else *)cur->at_end_data;
|
||||
|
||||
if (!if_then_else->then_atom_seen)
|
||||
die(_("format: %%(if) atom used without a %%(then) atom"));
|
||||
die(_("format: %%(%s) atom used without a %%(%s) atom"), "if", "then");
|
||||
|
||||
if (if_then_else->else_atom_seen) {
|
||||
/*
|
||||
|
@ -907,7 +907,7 @@ static int then_atom_handler(struct atom_value *atomv, struct ref_formatting_sta
|
|||
if (cur->at_end == if_then_else_handler)
|
||||
if_then_else = (struct if_then_else *)cur->at_end_data;
|
||||
if (!if_then_else)
|
||||
return strbuf_addf_ret(err, -1, _("format: %%(then) atom used without an %%(if) atom"));
|
||||
return strbuf_addf_ret(err, -1, _("format: %%(%s) atom used without a %%(%s) atom"), "then", "if");
|
||||
if (if_then_else->then_atom_seen)
|
||||
return strbuf_addf_ret(err, -1, _("format: %%(then) atom used more than once"));
|
||||
if (if_then_else->else_atom_seen)
|
||||
|
@ -943,9 +943,9 @@ static int else_atom_handler(struct atom_value *atomv, struct ref_formatting_sta
|
|||
if (prev->at_end == if_then_else_handler)
|
||||
if_then_else = (struct if_then_else *)prev->at_end_data;
|
||||
if (!if_then_else)
|
||||
return strbuf_addf_ret(err, -1, _("format: %%(else) atom used without an %%(if) atom"));
|
||||
return strbuf_addf_ret(err, -1, _("format: %%(%s) atom used without a %%(%s) atom"), "else", "if");
|
||||
if (!if_then_else->then_atom_seen)
|
||||
return strbuf_addf_ret(err, -1, _("format: %%(else) atom used without a %%(then) atom"));
|
||||
return strbuf_addf_ret(err, -1, _("format: %%(%s) atom used without a %%(%s) atom"), "else", "then");
|
||||
if (if_then_else->else_atom_seen)
|
||||
return strbuf_addf_ret(err, -1, _("format: %%(else) atom used more than once"));
|
||||
if_then_else->else_atom_seen = 1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче