mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-02-19 19:51:06 +01:00
fixed email locale detection
This commit is contained in:
parent
c8be4b03e2
commit
652f847c3b
@ -54,9 +54,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
context = Context(email_context)
|
context = Context(email_context)
|
||||||
locale = getattr(context['queue'], 'locale', '')
|
locale = context['queue'].get('locale', 'en')
|
||||||
if not locale:
|
|
||||||
locale = 'en'
|
|
||||||
|
|
||||||
t = None
|
t = None
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user