From 9e6c45f9243e8a9726b8f184b0474f5c11c5906e Mon Sep 17 00:00:00 2001 From: Andy Binder Date: Wed, 14 Jun 2023 22:34:16 +0200 Subject: [PATCH] German email templates (#6753) --- app/email_templates/app_defaults.php | 36 +++++++++++- app/fax/app_defaults.php | 82 ++++++++++++++++++++++++++++ core/authentication/app_defaults.php | 19 +++++++ 3 files changed, 135 insertions(+), 2 deletions(-) diff --git a/app/email_templates/app_defaults.php b/app/email_templates/app_defaults.php index 0a7a07e909..93682c51c5 100644 --- a/app/email_templates/app_defaults.php +++ b/app/email_templates/app_defaults.php @@ -48,6 +48,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '861e6e04-92fe-4bfb-a983-f29b3a5c07cf'; $array['email_templates'][$x]['template_language'] = 'de-at'; $array['email_templates'][$x]['template_category'] = 'voicemail'; @@ -83,6 +84,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'f45935f0-7dc1-4b92-9bd7-7b35121a3ca7'; $array['email_templates'][$x]['template_language'] = 'de-de'; $array['email_templates'][$x]['template_category'] = 'voicemail'; @@ -99,6 +101,21 @@ $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '74fc9686-55fd-44a3-8a0a-283d786dab6f'; + $array['email_templates'][$x]['template_language'] = 'de-de'; + $array['email_templates'][$x]['template_category'] = 'missed'; + $array['email_templates'][$x]['template_subcategory'] = 'default'; + $array['email_templates'][$x]['template_subject'] = 'Verpasster Anruf von ${caller_id_name} <${caller_id_number}>'; + $array['email_templates'][$x]['template_body'] = "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "Verpasster Anruf von \${caller_id_name} <\${caller_id_number}> an \${sip_to_user} Nebenstelle \${dialed_user}\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + $array['email_templates'][$x]['email_template_uuid'] = '62d1e7ef-c423-4ac6-be9e-c0e2adbbb60d'; $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'voicemail'; @@ -118,6 +135,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'defb880a-e368-4862-b946-a5244871af55'; $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'voicemail'; @@ -156,6 +174,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'c5f3ae42-a5af-4bb7-80a3-480cfe90fb49'; $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'voicemail'; @@ -194,6 +213,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '56bb3416-53fc-4a3d-936d-9e3ba869081d'; $array['email_templates'][$x]['template_language'] = 'en-us'; $array['email_templates'][$x]['template_category'] = 'voicemail'; @@ -232,6 +252,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'c8f14f37-4998-41a2-9c7b-7e810c77c570'; $array['email_templates'][$x]['template_language'] = 'en-us'; $array['email_templates'][$x]['template_category'] = 'voicemail'; @@ -265,6 +286,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '890626c4-907b-44ad-9cf6-02d0b0a2379d'; $array['email_templates'][$x]['template_language'] = 'en-us'; $array['email_templates'][$x]['template_category'] = 'missed'; @@ -290,6 +312,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'a1b11ded-831f-4b81-8a23-fce866196508'; $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'missed'; @@ -320,6 +343,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'd3971eb3-757e-4501-8469-9d59738db821'; $array['email_templates'][$x]['template_language'] = 'fr-ca'; $array['email_templates'][$x]['template_category'] = 'voicemail'; @@ -335,6 +359,7 @@ $array['email_templates'][$x]['template_enabled'] = 'false'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'ca96d814-cf5e-4dca-91ab-0150c2c6c36a'; $array['email_templates'][$x]['template_language'] = 'fr-ca'; $array['email_templates'][$x]['template_category'] = 'missed'; @@ -349,6 +374,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '5c57bd40-0479-49ba-945a-c675cd96dc8c'; $array['email_templates'][$x]['template_language'] = 'fr-ca'; $array['email_templates'][$x]['template_category'] = 'missed'; @@ -358,8 +384,8 @@ $array['email_templates'][$x]['template_type'] = 'text'; $array['email_templates'][$x]['template_enabled'] = 'false'; $array['email_templates'][$x]['template_description'] = ''; - $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'b1eefbfc-c008-4c82-b93f-6a6df237aeaa'; $array['email_templates'][$x]['template_language'] = 'en-us'; $array['email_templates'][$x]['template_category'] = 'fax'; @@ -374,6 +400,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '48ce4fef-e6bd-4be6-9c76-1590e8498408'; $array['email_templates'][$x]['template_language'] = 'en-us'; $array['email_templates'][$x]['template_category'] = 'fax'; @@ -388,6 +415,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'd64d9a03-affd-4dbf-ba04-5ad5accae4d9'; $array['email_templates'][$x]['template_language'] = 'en-us'; $array['email_templates'][$x]['template_category'] = 'fax'; @@ -402,6 +430,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '29729743-28bc-4f7b-88e1-0bdf6ff33cce'; $array['email_templates'][$x]['template_language'] = 'en-us'; $array['email_templates'][$x]['template_category'] = 'fax'; @@ -415,8 +444,8 @@ $array['email_templates'][$x]['template_type'] = 'html'; $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; - $x++; + $array['email_templates'][$x]['email_template_uuid'] = '297a3e32-125d-4e21-a528-17edc0d50829'; $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'fax'; @@ -431,6 +460,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '420d56d8-6cc5-484a-961e-da02ae0646a5'; $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'fax'; @@ -445,6 +475,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '3899a9f2-96f2-4778-8f77-9962e4bc7ec8'; $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'fax'; @@ -459,6 +490,7 @@ $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '307499c6-f390-446e-884a-3b5d7554771b'; $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'fax'; diff --git a/app/fax/app_defaults.php b/app/fax/app_defaults.php index ba415caead..006faa24af 100644 --- a/app/fax/app_defaults.php +++ b/app/fax/app_defaults.php @@ -82,6 +82,88 @@ $array['email_templates'][$x]['template_body'] .= "\n"; $array['email_templates'][$x]['template_type'] = "html"; $array['email_templates'][$x]['template_enabled'] = "true"; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = '9c18d8ab-7b5d-4ccc-823a-ce42863b5170'; + $array['email_templates'][$x]['template_language'] = 'de-de'; + $array['email_templates'][$x]['template_category'] = 'fax'; + $array['email_templates'][$x]['template_subcategory'] = 'fail_busy'; + $array['email_templates'][$x]['template_subject'] = 'Fax an: ${number_dialed} war besetzt'; + $array['email_templates'][$x]['template_body'] = "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "Der Versand wurde versucht, aber der Anschluss war \${fax_busy_attempts} mal besetzt.\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = '2e14dd4e-3971-4d2d-9b59-07244d9c76b3'; + $array['email_templates'][$x]['template_language'] = 'de-de'; + $array['email_templates'][$x]['template_category'] = 'fax'; + $array['email_templates'][$x]['template_subcategory'] = 'fail_default'; + $array['email_templates'][$x]['template_subject'] = 'Fax an: ${number_dialed} ist fehlgeschlagen'; + $array['email_templates'][$x]['template_body'] = "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "Leider konnte das Fax nicht zugestellt werden. Es wurde angehangen. Bitte prüfen Sie die Empfängernummer \${number_dialed}. Sollte Diese korrekt sein, versuchen Sie es bitte erneut.\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = '2eda34ee-770b-415f-98be-7fca4e45b8b0'; + $array['email_templates'][$x]['template_language'] = 'de-de'; + $array['email_templates'][$x]['template_category'] = 'fax'; + $array['email_templates'][$x]['template_subcategory'] = 'fail_invalid'; + $array['email_templates'][$x]['template_subject'] = 'Fax an: ${number_dialed} war fehlerhaft'; + $array['email_templates'][$x]['template_body'] = "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "Es wurde versucht zu senden, aber die eingegebene Nummer war keine funktionierende Telefonnummer.\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = 'e9dbac32-ebb7-4416-ac8f-ae4448172ac7'; + $array['email_templates'][$x]['template_language'] = 'de-de'; + $array['email_templates'][$x]['template_category'] = 'fax'; + $array['email_templates'][$x]['template_subcategory'] = 'inbound'; + $array['email_templates'][$x]['template_subject'] = 'FAX empfangen: ${fax_subject_tag} ${fax_file_name}'; + $array['email_templates'][$x]['template_body'] = "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "
Fax empfangen

"; + $array['email_templates'][$x]['template_body'] .= "Name: \${fax_file_name}
"; + $array['email_templates'][$x]['template_body'] .= "Nebenstelle: \${fax_extension}
"; + $array['email_templates'][$x]['template_body'] .= "Nachrichten: \${fax_messages}
"; + $array['email_templates'][$x]['template_body'] .= "\${fax_file_warning}
"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = "html"; + $array['email_templates'][$x]['template_enabled'] = "true"; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = 'aaba9e71-79cd-4ced-8eb1-0e885ffa98ca'; + $array['email_templates'][$x]['template_language'] = 'de-de'; + $array['email_templates'][$x]['template_category'] = 'fax'; + $array['email_templates'][$x]['template_subcategory'] = 'relay'; + $array['email_templates'][$x]['template_subject'] = 'FAX empfangen: ${fax_subject_tag} ${fax_file_name}'; + $array['email_templates'][$x]['template_body'] = "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "
Fax empfangen

"; + $array['email_templates'][$x]['template_body'] .= "Name: \${fax_file_name}
"; + $array['email_templates'][$x]['template_body'] .= "Nebenstelle: \${fax_extension}
"; + $array['email_templates'][$x]['template_body'] .= "Nachrichten: \${fax_messages}
"; + $array['email_templates'][$x]['template_body'] .= "\${fax_file_warning}
"; + $array['email_templates'][$x]['template_body'] .= "
Diese Nachricht erreichte den Faxserver und befindet sich in der Zustellung. Sie werden später über die Zustellung informiert.
"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = "html"; + $array['email_templates'][$x]['template_enabled'] = "true"; + $x++; //build array of email template uuids foreach ($array['email_templates'] as $row) { diff --git a/core/authentication/app_defaults.php b/core/authentication/app_defaults.php index 8ec8732555..f3a1bd9471 100644 --- a/core/authentication/app_defaults.php +++ b/core/authentication/app_defaults.php @@ -23,6 +23,7 @@ $array['email_templates'][$x]['template_type'] = "html"; $array['email_templates'][$x]['template_enabled'] = "true"; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '9a9e3b5f-c439-47da-a901-90dcd340d101'; $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'authentication'; @@ -41,6 +42,24 @@ $array['email_templates'][$x]['template_enabled'] = "true"; $x++; + $array['email_templates'][$x]['email_template_uuid'] = '3595f4b9-8593-41ae-b463-a57b0c23d1af'; + $array['email_templates'][$x]['template_language'] = 'de-de'; + $array['email_templates'][$x]['template_category'] = 'authentication'; + $array['email_templates'][$x]['template_subcategory'] = 'email'; + $array['email_templates'][$x]['template_subject'] = 'Authentifizierungscode'; + $array['email_templates'][$x]['template_body'] = "\n"; + $array['email_templates'][$x]['template_body'] .= " \n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "
Sicherheitscode

\n"; + $array['email_templates'][$x]['template_body'] .= " Benutzen Sie den folgenden Sicherheitscode um Ihre Identität zu bestätigen.
\n"; + $array['email_templates'][$x]['template_body'] .= " Sicherheitscode: \${auth_code}
\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= " \n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = "html"; + $array['email_templates'][$x]['template_enabled'] = "true"; + $x++; + //build array of email template uuids foreach ($array['email_templates'] as $row) { if (is_uuid($row['email_template_uuid'])) {