Make fields translatable (#14786)
This commit is contained in:
parent
0e027a14a7
commit
6d97ab6f78
@ -737,8 +737,8 @@ def validate_item_type(doc, fieldname, message):
|
|||||||
""".format(item_list, fieldname), as_list=True)]
|
""".format(item_list, fieldname), as_list=True)]
|
||||||
|
|
||||||
if invalid_items:
|
if invalid_items:
|
||||||
frappe.throw(_("Following item {items} {verb} not marked as {message} item.\
|
frappe.throw(_("Following item {items} {verb} marked as {message} item.\
|
||||||
You can enable them as {message} item from its Item master".format(
|
You can enable them as {message} item from its Item master".format(
|
||||||
items = ", ".join([d for d in invalid_items]),
|
items = ", ".join([d for d in invalid_items]),
|
||||||
verb = "are" if len(invalid_items) > 1 else "is",
|
verb = _("are not") if len(invalid_items) > 1 else _("is not"),
|
||||||
message = message)))
|
message = message)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user