From f992d4cc00274c8a69075b03a1de20a7d46c3266 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 7 Feb 2022 12:35:37 +0100 Subject: [PATCH] mail translation added. test for dataloop translation added (failing) --- TODO | 4 +--- evapp/templates/evapp/department_mail.txt | 17 +++++++++++++++++ evapp/tests.py | 1 + 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 4989229..7c3ee5b 100644 --- a/TODO +++ b/TODO @@ -11,6 +11,4 @@ minor stuff: translations: -- step /Schritt - -- Schließungen (vermutlich wegen ß problem) +- dataloop translation missing diff --git a/evapp/templates/evapp/department_mail.txt b/evapp/templates/evapp/department_mail.txt index c70ba07..e76497a 100644 --- a/evapp/templates/evapp/department_mail.txt +++ b/evapp/templates/evapp/department_mail.txt @@ -1,3 +1,5 @@ +(english below) + Hallo! Es gibt einen Neuzugang bei Wikimedia! Hier ( https://wiki.wikimedia.de/wiki/Onboarding ) kannst Du nachsehen, @@ -9,3 +11,18 @@ die Du dafür brauchst: Wenn Du Fragen hast, melde Dich bei {{contact}}. Grüße, Deine E.V.A. + +------------------------- + +Hi! + +There is a new employee at Wikimedia! Here ( https://wiki.wikimedia.de/wiki/Onboarding ) you can see, which +steps are now necessary for your department. + +All Data you need for this: + +{% include 'evapp/dataloop.txt' %} + +If you have any questions please write to {{contact}}. + +Regards, Your E.V.A. diff --git a/evapp/tests.py b/evapp/tests.py index e3ee0de..2da1a06 100644 --- a/evapp/tests.py +++ b/evapp/tests.py @@ -99,6 +99,7 @@ class LoginTestCase(TestCase): # print(mail.outbox[0].body) self.assertGreater(len(mail.outbox), 2) self.assertIn("Vorname", mail.outbox[0].body) + self.assertIn("Firstname", mail.outbox[0].body) for i in (0,1,3): self.assertIn("Handy", mail.outbox[i].body) self.assertIn("Ara Seva", mail.outbox[0].subject)