From 6d97ab6f7891b47b35360875bfe36b3ecc318f1b Mon Sep 17 00:00:00 2001 From: Charles-Henri Decultot Date: Tue, 3 Jul 2018 07:02:53 +0200 Subject: [PATCH] Make fields translatable (#14786) --- erpnext/controllers/buying_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index f74c3a588d..a22a9ec960 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -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)))