Skip to content

Commit

Permalink
German email templates (#6753)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyX90 committed Jun 14, 2023
1 parent 764dd16 commit 9e6c45f
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 2 deletions.
36 changes: 34 additions & 2 deletions app/email_templates/app_defaults.php
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand All @@ -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'] = "<html>\n";
$array['email_templates'][$x]['template_body'] .= "<body>\n";
$array['email_templates'][$x]['template_body'] .= "Verpasster Anruf von \${caller_id_name} <<a href=\"tel:\${caller_id_number}\">\${caller_id_number}</a>> an \${sip_to_user} Nebenstelle \${dialed_user}\n";
$array['email_templates'][$x]['template_body'] .= "</body>\n";
$array['email_templates'][$x]['template_body'] .= "</html>\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';
Expand All @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand Down
82 changes: 82 additions & 0 deletions app/fax/app_defaults.php
Expand Up @@ -82,6 +82,88 @@
$array['email_templates'][$x]['template_body'] .= "</html>\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'] = "<html>\n";
$array['email_templates'][$x]['template_body'] .= "<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'] .= "</body>\n";
$array['email_templates'][$x]['template_body'] .= "</html>\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'] = "<html>\n";
$array['email_templates'][$x]['template_body'] .= "<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'] .= "</body>\n";
$array['email_templates'][$x]['template_body'] .= "</html>\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'] = "<html>\n";
$array['email_templates'][$x]['template_body'] .= "<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'] .= "</body>\n";
$array['email_templates'][$x]['template_body'] .= "</html>\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'] = "<html>\n";
$array['email_templates'][$x]['template_body'] .= "<body>\n";
$array['email_templates'][$x]['template_body'] .= "<br />\n";
$array['email_templates'][$x]['template_body'] .= "<br><strong>Fax empfangen</strong><br><br>";
$array['email_templates'][$x]['template_body'] .= "Name: \${fax_file_name}<br>";
$array['email_templates'][$x]['template_body'] .= "Nebenstelle: \${fax_extension}<br>";
$array['email_templates'][$x]['template_body'] .= "Nachrichten: \${fax_messages} <br>";
$array['email_templates'][$x]['template_body'] .= "\${fax_file_warning}<br>";
$array['email_templates'][$x]['template_body'] .= "</body>\n";
$array['email_templates'][$x]['template_body'] .= "</html>\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'] = "<html>\n";
$array['email_templates'][$x]['template_body'] .= "<body>\n";
$array['email_templates'][$x]['template_body'] .= "<br />\n";
$array['email_templates'][$x]['template_body'] .= "<br><strong>Fax empfangen</strong><br><br>";
$array['email_templates'][$x]['template_body'] .= "Name: \${fax_file_name}<br>";
$array['email_templates'][$x]['template_body'] .= "Nebenstelle: \${fax_extension}<br>";
$array['email_templates'][$x]['template_body'] .= "Nachrichten: \${fax_messages} <br>";
$array['email_templates'][$x]['template_body'] .= "\${fax_file_warning}<br>";
$array['email_templates'][$x]['template_body'] .= "<br>Diese Nachricht erreichte den Faxserver und befindet sich in der Zustellung. Sie werden später über die Zustellung informiert.<br>";
$array['email_templates'][$x]['template_body'] .= "</body>\n";
$array['email_templates'][$x]['template_body'] .= "</html>\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) {
Expand Down
19 changes: 19 additions & 0 deletions core/authentication/app_defaults.php
Expand Up @@ -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';
Expand All @@ -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'] = "<html>\n";
$array['email_templates'][$x]['template_body'] .= " <body>\n";
$array['email_templates'][$x]['template_body'] .= " <br />\n";
$array['email_templates'][$x]['template_body'] .= " <br><strong>Sicherheitscode</strong><br><br>\n";
$array['email_templates'][$x]['template_body'] .= " Benutzen Sie den folgenden Sicherheitscode um Ihre Identität zu bestätigen.<br>\n";
$array['email_templates'][$x]['template_body'] .= " Sicherheitscode: \${auth_code}<br>\n";
$array['email_templates'][$x]['template_body'] .= " <br />\n";
$array['email_templates'][$x]['template_body'] .= " </body>\n";
$array['email_templates'][$x]['template_body'] .= "</html>\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'])) {
Expand Down

0 comments on commit 9e6c45f

Please sign in to comment.