From 7a4ee06acfd2c445af528c00951f737c50a5f9ce Mon Sep 17 00:00:00 2001
From: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Date: Mon, 3 Feb 2020 15:58:26 +0530
Subject: [PATCH] fix: Translatable string for error
---
frappe/automation/doctype/auto_repeat/auto_repeat.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/frappe/automation/doctype/auto_repeat/auto_repeat.py b/frappe/automation/doctype/auto_repeat/auto_repeat.py
index 0ab7773bf2..513c0ad2cc 100644
--- a/frappe/automation/doctype/auto_repeat/auto_repeat.py
+++ b/frappe/automation/doctype/auto_repeat/auto_repeat.py
@@ -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}.
Note: Failed to attach new recurring document. To enable attaching document in the auto repeat notification email, enable Allow Print for Draft 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 += "
"
+
+ 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: