fix(Contact form): translate internal notification to system language
This commit is contained in:
parent
b440eab24f
commit
457f5bf437
1 changed files with 2 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue