Skip to content

Commit

Permalink
fix(Contact form): translate internal notification to system language
Browse files Browse the repository at this point in the history
(cherry picked from commit 457f5bf)

# Conflicts:
#	frappe/www/contact.py
  • Loading branch information
barredterra authored and mergify[bot] committed Mar 22, 2024
1 parent 6d731fa commit 2b2cf83
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frappe/www/contact.py
Expand Up @@ -46,8 +46,10 @@ 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(
<<<<<<< HEAD
dict(
doctype="Communication",
sender=sender,
Expand All @@ -56,4 +58,12 @@ def send_message(sender, message, subject="Website Query"):
content=message,
status="Open",
)
=======
doctype="Communication",
sender=sender,
subject=_("New Message from Website Contact Page", system_language),
sent_or_received="Received",
content=message,
status="Open",
>>>>>>> 457f5bf437 (fix(Contact form): translate internal notification to system language)
).insert(ignore_permissions=True)

0 comments on commit 2b2cf83

Please sign in to comment.