From 8812c6ea2c13292e1e5c6c3362cc0f08090adec4 Mon Sep 17 00:00:00 2001 From: Jerry Asih Date: Sun, 25 Feb 2018 21:29:18 +0100 Subject: [PATCH 1/3] Update FormBlock.php Translated from German to English --- src/blocks/FormBlock.php | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/blocks/FormBlock.php b/src/blocks/FormBlock.php index b4fd2b7..4c0a022 100644 --- a/src/blocks/FormBlock.php +++ b/src/blocks/FormBlock.php @@ -19,27 +19,27 @@ final class FormBlock extends BaseBootstrap3Block { public $defaultNameLabel = 'Name'; - public $defaultNamePlaceholder = 'Vor- und Nachname'; + public $defaultNamePlaceholder = 'First and Last Name'; - public $defaultNameError = 'Bitte geben Sie einen Namen ein'; + public $defaultNameError = 'Please enter a name'; public $defaultEmailLabel = 'Email'; public $defaultEmailPlaceholder = 'beispiel@beispiel.ch'; - public $defaultEmailError = 'Bitte geben Sie eine Emailadresse ein'; + public $defaultEmailError = 'Please enter an email address'; - public $defaultMessageLabel = 'Nachricht'; + public $defaultMessageLabel = 'Message'; - public $defaultMessageError = 'Bitte geben Sie eine Nachricht ein'; + public $defaultMessageError = 'Please enter a message'; - public $defaultSendLabel = 'Absenden'; + public $defaultSendLabel = 'Send'; - public $defaultSendError = 'Leider ist ein Fehler beim Senden der Nachricht aufgetreten.'; + public $defaultSendError = 'Sorry, an error occurred while sending the message.'; - public $defaultSendSuccess = 'Vielen Dank! Wir werden uns mit Ihnen in Verbindung setzen.'; + public $defaultSendSuccess = 'Many thanks! We will get in touch with you.'; - public $defaultMailSubject = 'Kontaktanfrage'; + public $defaultMailSubject = 'Contact Inquiry'; public function blockGroup() { @@ -60,23 +60,23 @@ public function config() { return [ 'vars' => [ - ['var' => 'emailAddress', 'label' => 'Email wird an folgende Adresse gesendet', 'type' => 'zaa-text'], - ['var' => 'headline', 'label' => 'Überschrift', 'type' => 'zaa-text', 'placeholder' => 'Kontakt'], - ['var' => 'nameLabel', 'label' => 'Text für Feld "Name"', 'type' => 'zaa-text', 'placeholder' => $this->defaultNameLabel], - ['var' => 'emailLabel', 'label' => 'Text für Feld "Email"', 'type' => 'zaa-text', 'placeholder' => $this->defaultEmailLabel], - ['var' => 'messageLabel', 'label' => 'Text für Feld "Nachricht"', 'type' => 'zaa-text', 'placeholder' => $this->defaultMessageLabel], - ['var' => 'sendLabel', 'label' => 'Text auf dem Absendebutton', 'type' => 'zaa-text', 'placeholder' => $this->defaultSendLabel], + ['var' => 'emailAddress', 'label' => 'Email will be sent to the following address', 'type' => 'zaa-text'], + ['var' => 'headline', 'label' => 'Heading', 'type' => 'zaa-text', 'placeholder' => 'Kontakt'], + ['var' => 'nameLabel', 'label' => 'Text for field "Name"', 'type' => 'zaa-text', 'placeholder' => $this->defaultNameLabel], + ['var' => 'emailLabel', 'label' => 'Text for field "Email"', 'type' => 'zaa-text', 'placeholder' => $this->defaultEmailLabel], + ['var' => 'messageLabel', 'label' => 'Text for field "Nachricht"', 'type' => 'zaa-text', 'placeholder' => $this->defaultMessageLabel], + ['var' => 'sendLabel', 'label' => 'Text on the submit button', 'type' => 'zaa-text', 'placeholder' => $this->defaultSendLabel], ], 'cfgs' => [ - ['var' => 'subjectText', 'label' => 'Betreff in der Email', 'type' => 'zaa-text', 'placeholder' => $this->defaultMailSubject], - ['var' => 'namePlaceholder', 'label' => 'Platzhalter im Feld "Name"', 'type' => 'zaa-text', 'placeholder' => $this->defaultNamePlaceholder], - ['var' => 'emailPlaceholder', 'label' => 'Platzhalter im Feld "Email"', 'type' => 'zaa-text', 'placeholder' => $this->defaultEmailPlaceholder], - ['var' => 'nameError', 'label' => 'Fehlermeldung für Feld "Name"', 'type' => 'zaa-text', 'placeholder' => $this->defaultNameError], - ['var' => 'emailError', 'label' => 'Fehlermeldung für Feld "Email"', 'type' => 'zaa-text', 'placeholder' => $this->defaultEmailError], - ['var' => 'messageError', 'label' => 'Fehlermeldung für Feld "Nachricht"', 'type' => 'zaa-text', 'placeholder' => $this->defaultMessageError], - ['var' => 'sendSuccess', 'label' => 'Bestätigungstext nach Absenden des Formulars', 'type' => 'zaa-text', 'placeholder' => $this->defaultSendSuccess], - ['var' => 'sendError', 'label' => 'Fehlertext nach fehlgeschlagenem Sendeversuch des Formulars', 'type' => 'zaa-text', 'placeholder' => $this->defaultSendError], + ['var' => 'subjectText', 'label' => 'Subject in the email', 'type' => 'zaa-text', 'placeholder' => $this->defaultMailSubject], + ['var' => 'namePlaceholder', 'label' => 'Placeholder in the field "Name"', 'type' => 'zaa-text', 'placeholder' => $this->defaultNamePlaceholder], + ['var' => 'emailPlaceholder', 'label' => 'Placeholder in the field "Email"', 'type' => 'zaa-text', 'placeholder' => $this->defaultEmailPlaceholder], + ['var' => 'nameError', 'label' => 'Error message for field "Name"', 'type' => 'zaa-text', 'placeholder' => $this->defaultNameError], + ['var' => 'emailError', 'label' => 'Error message for field "Email"', 'type' => 'zaa-text', 'placeholder' => $this->defaultEmailError], + ['var' => 'messageError', 'label' => 'Error message for field "Nachricht"', 'type' => 'zaa-text', 'placeholder' => $this->defaultMessageError], + ['var' => 'sendSuccess', 'label' => 'Confirmation text after submitting the form', 'type' => 'zaa-text', 'placeholder' => $this->defaultSendSuccess], + ['var' => 'sendError', 'label' => 'Error text after failed attempt to send the form', 'type' => 'zaa-text', 'placeholder' => $this->defaultSendError], ], ]; } @@ -157,7 +157,7 @@ public function admin() '