translated messages
This commit is contained in:
parent
3e181bae51
commit
af7401865f
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue