Make fields translatable (#14786)

This commit is contained in:
Charles-Henri Decultot 2018-07-03 07:02:53 +02:00 committed by Nabin Hait
parent 0e027a14a7
commit 6d97ab6f78

View File

@ -737,8 +737,8 @@ def validate_item_type(doc, fieldname, message):
""".format(item_list, fieldname), as_list=True)]
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(
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)))