From 80e60d68233c02bc5618379b10352f0a6a8fcc8c Mon Sep 17 00:00:00 2001 From: Paul Spenke Date: Tue, 24 Nov 2026 10:56:44 +0100 Subject: [PATCH] translate form extension UI to English Replace German labels, prompts, validation messages, and submission text across the form admin and block views with English. Remove redundant LICENSE files from the form and sitemap extensions. --- extensions/plugi-ext-form/LICENSE | 21 ----- .../Classes/Finishers/SendEmailToAdmin.php | 2 +- .../admin/Classes/Finishers/config.php | 4 +- .../plugi-ext-form/admin/Views/EditForm.php | 90 +++++++++---------- .../admin/Views/ExtSettings.php | 4 +- .../admin/Views/ListEntries.php | 8 +- .../plugi-ext-form/admin/Views/ListForms.php | 14 +-- extensions/plugi-ext-form/admin/form.php | 4 +- .../blocks/form-wrapper/config.php | 2 +- .../blocks/form-wrapper/view.php | 12 +-- extensions/plugi-ext-sitemap/LICENSE | 21 ----- 11 files changed, 70 insertions(+), 112 deletions(-) delete mode 100644 extensions/plugi-ext-form/LICENSE delete mode 100644 extensions/plugi-ext-sitemap/LICENSE 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;
-

-

+

+

@@ -36,14 +36,14 @@ $isEditing = isset($form['id']) && $form['id'] > 0;
-

Grundlegendes

+

Basics

- - Ein eindeutiger Name für dein Formular. + + A unique name for your form.
@@ -100,16 +100,16 @@ $isEditing = isset($form['id']) && $form['id'] > 0;
-

Formularfelder

+

Form fields

-

Definiere die Felder, die Nutzer ausfüllen können.

+

Define the fields users can fill out.

-

Noch keine Felder hinzugefügt

- Erstes Feld hinzufügen +

No fields added yet

+ Add your first field
@@ -129,7 +129,7 @@ $isEditing = isset($form['id']) && $form['id'] > 0; >
- #[] @@ -137,18 +137,18 @@ $isEditing = isset($form['id']) && $form['id'] > 0;
@@ -165,16 +165,16 @@ $isEditing = isset($form['id']) && $form['id'] > 0; -
@@ -183,16 +183,16 @@ $isEditing = isset($form['id']) && $form['id'] > 0; - Neu + Add