fix: web_form_context_title_translation (#33173)

This commit is contained in:
mahsem 2025-07-23 14:44:33 +02:00 committed by GitHub
parent 93b4700899
commit 3efc476da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -401,7 +401,7 @@ def get_context(context):
context.parents = frappe.safe_eval(self.breadcrumbs, {"_": _})
if self.show_list and frappe.form_dict.is_new:
context.title = _("New {0}").format(context.title)
context.title = _("New {0}").format(_(context.title))
context.has_header = (frappe.form_dict.name or frappe.form_dict.is_new) and (
frappe.session.user != "Guest" or not self.login_required