fix(09): wrap wp_die error strings in gettext and update translations
Verifier caught 5 hardcoded German strings in the email failure wp_die block. Wrapped in esc_html__(), added German translations, regenerated POT/PO/MO files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -117,13 +117,13 @@ class Umzugsliste_Form_Handler {
|
||||
|
||||
// Show error message
|
||||
wp_die(
|
||||
'<h1>E-Mail konnte nicht versendet werden</h1>
|
||||
<p>Ihre Anfrage wurde gespeichert, aber die E-Mail konnte nicht versendet werden.</p>
|
||||
<p><strong>Bitte kontaktieren Sie uns telefonisch:</strong></p>
|
||||
'<h1>' . esc_html__( 'Email could not be sent', 'siegel-umzugsliste' ) . '</h1>
|
||||
<p>' . esc_html__( 'Your request has been saved, but the email could not be sent.', 'siegel-umzugsliste' ) . '</p>
|
||||
<p><strong>' . esc_html__( 'Please contact us by phone:', 'siegel-umzugsliste' ) . '</strong></p>
|
||||
<p>Wiesbaden: <a href="tel:+4961122020">(06 11) 2 20 20</a><br>
|
||||
Mainz: <a href="tel:+49613122141">(0 61 31) 22 21 41</a></p>
|
||||
<p><a href="' . home_url() . '">Zurück zur Startseite</a></p>',
|
||||
'E-Mail-Fehler'
|
||||
<p><a href="' . esc_url( home_url() ) . '">' . esc_html__( 'Back to homepage', 'siegel-umzugsliste' ) . '</a></p>',
|
||||
esc_html__( 'Email Error', 'siegel-umzugsliste' )
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@@ -5,16 +5,16 @@ msgstr ""
|
||||
"Project-Id-Version: Umzugsliste 1.0.0\n"
|
||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/Siegel-"
|
||||
"Umzugsliste\n"
|
||||
"POT-Creation-Date: 2026-02-06T15:05:40+00:00\n"
|
||||
"PO-Revision-Date: 2026-02-06T14:52:05+00:00\n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"POT-Creation-Date: 2026-02-06T14:52:05+00:00\n"
|
||||
"PO-Revision-Date: 2026-02-06T14:52:05+00:00\n"
|
||||
"X-Generator: WP-CLI 2.12.0\n"
|
||||
"X-Domain: siegel-umzugsliste\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. Plugin Name of the plugin
|
||||
@@ -106,6 +106,26 @@ msgstr "Sicherheitsüberprüfung fehlgeschlagen. Bitte versuchen Sie es erneut."
|
||||
msgid "Captcha verification failed. Please try again."
|
||||
msgstr "Captcha-Verifizierung fehlgeschlagen. Bitte versuchen Sie es erneut."
|
||||
|
||||
#: includes/class-form-handler.php:120
|
||||
msgid "Email could not be sent"
|
||||
msgstr "E-Mail konnte nicht versendet werden"
|
||||
|
||||
#: includes/class-form-handler.php:121
|
||||
msgid "Your request has been saved, but the email could not be sent."
|
||||
msgstr "Ihre Anfrage wurde gespeichert, aber die E-Mail konnte nicht versendet werden."
|
||||
|
||||
#: includes/class-form-handler.php:122
|
||||
msgid "Please contact us by phone:"
|
||||
msgstr "Bitte kontaktieren Sie uns telefonisch:"
|
||||
|
||||
#: includes/class-form-handler.php:125
|
||||
msgid "Back to homepage"
|
||||
msgstr "Zurück zur Startseite"
|
||||
|
||||
#: includes/class-form-handler.php:126
|
||||
msgid "Email Error"
|
||||
msgstr "E-Mail-Fehler"
|
||||
|
||||
#: includes/class-form-handler.php:145
|
||||
msgid "Name (Loading Address)"
|
||||
msgstr "Name (Beladeadresse)"
|
||||
|
||||
@@ -9,7 +9,7 @@ msgstr ""
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"POT-Creation-Date: 2026-02-06T14:52:05+00:00\n"
|
||||
"POT-Creation-Date: 2026-02-06T15:05:40+00:00\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"X-Generator: WP-CLI 2.12.0\n"
|
||||
"X-Domain: siegel-umzugsliste\n"
|
||||
@@ -108,6 +108,26 @@ msgstr ""
|
||||
msgid "Captcha verification failed. Please try again."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-form-handler.php:120
|
||||
msgid "Email could not be sent"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-form-handler.php:121
|
||||
msgid "Your request has been saved, but the email could not be sent."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-form-handler.php:122
|
||||
msgid "Please contact us by phone:"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-form-handler.php:125
|
||||
msgid "Back to homepage"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-form-handler.php:126
|
||||
msgid "Email Error"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-form-handler.php:145
|
||||
msgid "Name (Loading Address)"
|
||||
msgstr ""
|
||||
|
||||
Reference in New Issue
Block a user