fix: Translatable string for error

This commit is contained in:
Suraj Shetty 2020-02-03 15:58:26 +05:30 committed by GitHub
parent 70bf6f3bc8
commit 7a4ee06acf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,7 +220,14 @@ class AutoRepeat(Document):
file_name=new_doc.name, print_format=print_format)]
except frappe.PermissionError:
error_string = _("A recurring {0} {1} has been created for you via Auto Repeat {2}. <br><br><b>Note</b>: Failed to attach new recurring document. To enable attaching document in the auto repeat notification email, enable <b>Allow Print for Draft</b> in Print Settings").format(new_doc.doctype, new_doc.name, self.name)
error_string = _("A recurring {0} {1} has been created for you via Auto Repeat {2}.").format(new_doc.doctype, new_doc.name, self.name)
error_string += "<br><br>"
error_string += _("{0}: Failed to attach new recurring document. To enable attaching document in the auto repeat notification email, enable {1} in Print Settings")
.format(
frappe.bold(_('Note')),
frappe.bold(_('Allow Print for Draft'))
)
attachments = '[]'
if error_string: