fix(Contact form): translate internal notification to system language

This commit is contained in:
barredterra 2024-03-22 17:45:10 +01:00
parent b440eab24f
commit 457f5bf437

View file

@ -46,11 +46,12 @@ def send_message(sender, message, subject="Website Query"):
# for clearing outgoing email error message
frappe.clear_last_message()
system_language = frappe.db.get_single_value("System Settings", "language")
# add to to-do ?
frappe.get_doc(
doctype="Communication",
sender=sender,
subject=_("New Message from Website Contact Page"),
subject=_("New Message from Website Contact Page", system_language),
sent_or_received="Received",
content=message,
status="Open",