From 78fbd39b2a269d7e2973bb1ae021cec3d514afbe Mon Sep 17 00:00:00 2001 From: Corentin Forler Date: Wed, 16 Oct 2024 12:30:59 +0200 Subject: [PATCH] fix: Translate OAuth confirmation details --- frappe/integrations/oauth2.py | 2 +- frappe/templates/includes/oauth_confirmation.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/integrations/oauth2.py b/frappe/integrations/oauth2.py index 41f2e67b04..e56a0fb93c 100644 --- a/frappe/integrations/oauth2.py +++ b/frappe/integrations/oauth2.py @@ -115,7 +115,7 @@ def authorize(**kwargs): resp_html = frappe.render_template( "templates/includes/oauth_confirmation.html", response_html_params ) - frappe.respond_as_web_page("Confirm Access", resp_html, primary_action=None) + frappe.respond_as_web_page(_("Confirm Access"), resp_html, primary_action=None) except (FatalClientError, OAuth2Error) as e: return generate_json_error_response(e) diff --git a/frappe/templates/includes/oauth_confirmation.html b/frappe/templates/includes/oauth_confirmation.html index b5b3947ceb..8e1df6c57c 100644 --- a/frappe/templates/includes/oauth_confirmation.html +++ b/frappe/templates/includes/oauth_confirmation.html @@ -7,7 +7,7 @@