From 714fef73f940eb9e06910d3d6e2a6e42f64c73fc Mon Sep 17 00:00:00 2001
From: Judit Foglszinger <urbec@debian.org>
Date: Tue, 15 Dec 2020 07:57:09 +0700
Subject: [PATCH] not translating string used in email for decl. of intent

---
 process/email.py | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/process/email.py b/process/email.py
index cb1442d8..01061cbb 100644
--- a/process/email.py
+++ b/process/email.py
@@ -100,18 +100,20 @@ For details and to comment, visit {url}
     else:
         extra_info = ""
 
-    msg = build_django_message(
-        from_email=(f"{statement.uploaded_by.fullname} (via nm.debian.org)", "nm@debian.org"),
-        to="debian-{}@lists.debian.org".format(notify_ml),
-        cc=cc,
-        subject="{}: {}{}".format(
-            process.person.fullname,
-            statement.requirement.type_desc,
-            extra_info),
-        date=date,
-        headers=headers,
-        reply_to=[(f"{statement.uploaded_by.fullname}", statement.uploaded_by.email),],
-        body=body)
+    import django.utils.translation as translation
+    with translation.override('en'):
+        msg = build_django_message(
+            from_email=(f"{statement.uploaded_by.fullname} (via nm.debian.org)", "nm@debian.org"),
+            to="debian-{}@lists.debian.org".format(notify_ml),
+            cc=cc,
+            subject="{}: {}{}".format(
+                process.person.fullname,
+                statement.requirement.type_desc,
+                extra_info),
+            date=date,
+            headers=headers,
+            reply_to=[(f"{statement.uploaded_by.fullname}", statement.uploaded_by.email),],
+            body=body)
     msg.send()
     log.debug("sent mail from %s to %s cc %s bcc %s subject %s",
               msg.from_email,
-- 
2.29.2

