translated messages

This commit is contained in:
Nabin Hait 2018-02-15 11:33:19 +05:30
parent 3e181bae51
commit af7401865f
2 changed files with 2 additions and 2 deletions

View file

@ -146,7 +146,7 @@ class DocType(Document):
if self.has_web_view:
# route field must be present
if not 'route' in [d.fieldname for d in self.fields]:
frappe.throw('Field "route" is mandatory for Web Views', title='Missing Field')
frappe.throw(_('Field "route" is mandatory for Web Views'), title='Missing Field')
# clear website cache
frappe.website.render.clear_cache()

View file

@ -46,7 +46,7 @@ def validate_link():
except Exception as e:
error_message = str(e).split("Unknown column '")
fieldname = None if len(error_message)<=1 else error_message[1].split("'")[0]
frappe.msgprint("Wrong fieldname <b>{0}</b> in add_fetch configuration of custom script".format(fieldname))
frappe.msgprint(_("Wrong fieldname <b>{0}</b> in add_fetch configuration of custom script").format(fieldname))
frappe.errprint(frappe.get_traceback())
if fetch_value: