From e4032c45e6f5a1d379ce7a86d985a783e64f29e0 Mon Sep 17 00:00:00 2001
From: Sophia Leierseder <s.leierseder@adito.de>
Date: Tue, 16 Jul 2019 16:58:33 +0200
Subject: [PATCH] translations DSGVO

---
 language/_____LANGUAGE_de/_____LANGUAGE_de.aod | 3 ++-
 process/DataPrivacy_lib/process.js             | 7 +++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/language/_____LANGUAGE_de/_____LANGUAGE_de.aod b/language/_____LANGUAGE_de/_____LANGUAGE_de.aod
index 8e4cb1c480..a4ef21da2a 100644
--- a/language/_____LANGUAGE_de/_____LANGUAGE_de.aod
+++ b/language/_____LANGUAGE_de/_____LANGUAGE_de.aod
@@ -247,7 +247,7 @@
       <value>Newsletterversand</value>
     </entry>
     <entry>
-      <key>We received data from </key>
+      <key>We received data from</key>
       <value>Wir haben Daten erhalten von</value>
     </entry>
     <entry>
@@ -6018,6 +6018,7 @@
     </entry>
     <entry>
       <key>Extension letter date</key>
+      <value>Beantragung Fristverlängerung</value>
     </entry>
     <entry>
       <key>Namen</key>
diff --git a/process/DataPrivacy_lib/process.js b/process/DataPrivacy_lib/process.js
index 315b7f9df0..bc35005d93 100644
--- a/process/DataPrivacy_lib/process.js
+++ b/process/DataPrivacy_lib/process.js
@@ -415,6 +415,9 @@ DataPrivacyUtils.checkAllFilled = function(pContactId)
 
 DataPrivacyUtils.openReport = function(pContactId, pReportName, pDSGVOInfo, pLocale)
 {
+    if (pLocale == undefined)
+        pLocale = vars.get("$sys.clientlocale");
+    
     var DSGVOReport = new Report(pReportName);
     
     // TODO: get Images implementieren ( address am besten eine andere Lösung!)
@@ -440,7 +443,7 @@ DataPrivacyUtils.openReport = function(pContactId, pReportName, pDSGVOInfo, pLoc
     var datasource = "";
     if (pDSGVOInfo.datasource)
     {
-        datasource = translate.text("We received data from " + pDSGVOInfo.datasource + ".", pLocale);
+        datasource = translate.text("We received data from", pLocale) + " " + pDSGVOInfo.datasource + ".";
     }
     
     // text for deadline
@@ -463,7 +466,7 @@ DataPrivacyUtils.openReport = function(pContactId, pReportName, pDSGVOInfo, pLoc
                                         .buildSql("select max(VALID_TO) from DSGVO", "1=2")),
                         translate.text("dd.MM.yyyy", pLocale), "UTC");
     
-    saveTill = translate.text("We save your data until " + saveTill + ".");
+    saveTill = translate.text("We save your data until ", pLocale) + saveTill + ".";
     var addrObject = new AddrObject(pContactId);
    
     var fakeDataProtectionOfficerId = "57d524f6-ad66-4550-be83-fee6e31b7a52"
-- 
GitLab