diff --git a/extensions/plugi-ext-form/LICENSE b/extensions/plugi-ext-form/LICENSE deleted file mode 100644 index b4ef163..0000000 --- a/extensions/plugi-ext-form/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Paul Spenke - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/extensions/plugi-ext-form/admin/Classes/Finishers/SendEmailToAdmin.php b/extensions/plugi-ext-form/admin/Classes/Finishers/SendEmailToAdmin.php index 0298683..4e5e3e1 100644 --- a/extensions/plugi-ext-form/admin/Classes/Finishers/SendEmailToAdmin.php +++ b/extensions/plugi-ext-form/admin/Classes/Finishers/SendEmailToAdmin.php @@ -8,7 +8,7 @@ class SendEmailToAdmin extends DefaultFinisher public function execute(): bool { $to = Extensions::getSettings('form')['email']['value']; - $subject = 'Formulareinsendung: '.$this->getFormName(); + $subject = 'Form submission: '.$this->getFormName(); $message = $this->getNiceFields(); return mail( $to, diff --git a/extensions/plugi-ext-form/admin/Classes/Finishers/config.php b/extensions/plugi-ext-form/admin/Classes/Finishers/config.php index 768941d..16fe158 100644 --- a/extensions/plugi-ext-form/admin/Classes/Finishers/config.php +++ b/extensions/plugi-ext-form/admin/Classes/Finishers/config.php @@ -4,11 +4,11 @@ return [ 'finishers' => [ 'saveToDatabase' => [ 'class' => \Plugi\Extensions\Form\Finishers\SaveEntryToDatabase::class, - 'label' => 'In Datenbank speichern' + 'label' => 'Save to database' ], 'sendMailToAdmin' => [ 'class' => \Plugi\Extensions\Form\Finishers\SendEmailToAdmin::class, - 'label' => 'Email an Admin senden' + 'label' => 'Send email to admin' ] ] ]; diff --git a/extensions/plugi-ext-form/admin/Views/EditForm.php b/extensions/plugi-ext-form/admin/Views/EditForm.php index f7c2333..a327d31 100644 --- a/extensions/plugi-ext-form/admin/Views/EditForm.php +++ b/extensions/plugi-ext-form/admin/Views/EditForm.php @@ -5,7 +5,7 @@ use Plugi\Extensions\Form\DefinitionsRepository; $formsRepository = new DefinitionsRepository(); $form = [ - 'name' => "Neues Formular", + 'name' => "New Form", 'fields' => "[]", 'finishers' => "[]", ]; @@ -22,8 +22,8 @@ $isEditing = isset($form['id']) && $form['id'] > 0;
= $isEditing ? 'Ändere die Einstellungen deines Formulars.' : 'Erstelle ein neues Formular mit Feldern und Aktionen.' ?>
+= $isEditing ? 'Change your form settings.' : 'Create a new form with fields and actions.' ?>