From 900f829d83b90c507bf2d341a9e66fcbf2b3c4ac Mon Sep 17 00:00:00 2001 From: HarryPaulo Date: Wed, 1 Jun 2022 03:32:23 -0300 Subject: [PATCH] fix: translate email body for 2FA (#17045) --- frappe/twofactor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/twofactor.py b/frappe/twofactor.py index 5a2799bc54..9e9a2c5d76 100644 --- a/frappe/twofactor.py +++ b/frappe/twofactor.py @@ -277,7 +277,9 @@ def get_email_subject_for_qr_code(kwargs_dict): def get_email_body_for_qr_code(kwargs_dict): """Get QRCode email body.""" - body_template = "Please click on the following link and follow the instructions on the page.

{{qrcode_link}}" + body_template = _( + "Please click on the following link and follow the instructions on the page. {0}" + ).format("

{{qrcode_link}}") body = frappe.render_template(body_template, kwargs_dict) return body