From 5ce15eac4b4152f1e705380b1ef34622a10f3caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Fri, 12 Oct 2018 10:57:47 +0200 Subject: [PATCH] [Web] Some language updates for sys mails --- data/web/admin.php | 4 ++-- data/web/inc/functions.inc.php | 6 +++--- data/web/lang/lang.de.php | 20 ++++++++++++-------- data/web/lang/lang.en.php | 4 ++++ 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/data/web/admin.php b/data/web/admin.php index 20dc6faa..a4d7b697 100644 --- a/data/web/admin.php +++ b/data/web/admin.php @@ -10,7 +10,7 @@ $tfa_data = get_tfa();
@@ -849,7 +849,7 @@ $tfa_data = get_tfa();
- +
diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index bf265062..4cc43ee3 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -47,7 +47,7 @@ function sys_mail($_data) { $_SESSION['return'][] = array( 'type' => 'danger', 'log' => array(__FUNCTION__), - 'msg' => 'From address must be a valid email address' + 'msg' => 'from_invalid' ); return false; } @@ -55,7 +55,7 @@ function sys_mail($_data) { $_SESSION['return'][] = array( 'type' => 'danger', 'log' => array(__FUNCTION__), - 'msg' => 'Subject must not be empty' + 'msg' => 'subject_empty' ); return false; } @@ -63,7 +63,7 @@ function sys_mail($_data) { $_SESSION['return'][] = array( 'type' => 'danger', 'log' => array(__FUNCTION__), - 'msg' => 'Text must not be empty' + 'msg' => 'text_empty' ); return false; } diff --git a/data/web/lang/lang.de.php b/data/web/lang/lang.de.php index a59ad75c..a4a57c14 100644 --- a/data/web/lang/lang.de.php +++ b/data/web/lang/lang.de.php @@ -690,14 +690,18 @@ $lang['success']['tls_policy_map_entry_deleted'] = 'TLS-Richtlinie mit der ID %s $lang['mailbox']['add_tls_policy_map'] = "TLS-Richtlinieneintrag hinzufügen"; $lang['danger']['tls_policy_map_parameter_invalid'] = "Parameter ist ungültig"; -$lang['admin']['sys_mails'] = 'System mails'; -$lang['admin']['subject'] = 'Subject'; -$lang['admin']['from'] = 'From'; -$lang['admin']['include_exclude'] = 'Include/Exclude'; -$lang['admin']['include_exclude_info'] = 'By default - with no selection - all mailboxes are addressed'; -$lang['admin']['excludes'] = 'Excludes these recipients'; -$lang['admin']['includes'] = 'Include these recipients'; +$lang['admin']['sys_mails'] = 'System E-Mails'; +$lang['admin']['subject'] = 'Betreff'; +$lang['admin']['from'] = 'Absender'; +$lang['admin']['include_exclude'] = 'Ein- und Ausschlüsse'; +$lang['admin']['include_exclude_info'] = 'Ohne Auswahl werden alle Mailboxen adressiert.'; +$lang['admin']['excludes'] = 'Diese Empfänger ausschließen'; +$lang['admin']['includes'] = 'Diese Empfänger einschließen'; $lang['admin']['text'] = 'Text'; -$lang['admin']['activate_send'] = 'Activate send button'; +$lang['admin']['activate_send'] = 'Senden-Button freischalten'; +$lang['admin']['send'] = 'Senden'; $lang['warning']['ip_invalid'] = 'Ungültige IP übersprungen: %s'; +$lang['danger']['text_empty'] = 'Text darf nicht leer sein'; +$lang['danger']['subject_empty'] = 'Betreff darf nicht leer sein'; +$lang['danger']['from_invalid'] = 'From address must be a valid email address'; diff --git a/data/web/lang/lang.en.php b/data/web/lang/lang.en.php index f3e7cba0..90d588ac 100644 --- a/data/web/lang/lang.en.php +++ b/data/web/lang/lang.en.php @@ -723,5 +723,9 @@ $lang['admin']['excludes'] = 'Excludes these recipients'; $lang['admin']['includes'] = 'Include these recipients'; $lang['admin']['text'] = 'Text'; $lang['admin']['activate_send'] = 'Activate send button'; +$lang['admin']['send'] = 'Send'; $lang['warning']['ip_invalid'] = 'Skipped invalid IP: %s'; +$lang['danger']['text_empty'] = 'Text must not be empty'; +$lang['danger']['subject_empty'] = 'Subject must not be empty'; +$lang['danger']['from_invalid'] = 'Absender darf nicht leer sein';