summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlbeer <noreply@maennchen1.de>2026-09-07 14:45:02 +0200
committerjlbeer <noreply@maennchen1.de>2026-09-07 14:45:02 +0200
commit99b01f24a799a2696c5acb5636334aa5ab384352 (patch)
tree54e41621d34147124f04973644a082115dc404b8
parentf69370577e8d61d2a4356acba41985fab71cff78 (diff)
- Übersetzungsfunktionen vereinheitlicht (manchmal nur _() )
- PHP 8.5 / WP 7.1 - Warnungen, die im Plugin "Plugin Check" erwähnt wurden behoben
-rw-r--r--views/admin/licence.phtml2
-rw-r--r--views/mailtemplates/html/customer.phtml2
-rw-r--r--views/mods/mod_abo/settings_edit.phtml2
-rw-r--r--views/mods/mod_rechnungen/accounting_pdf.phtml4
-rw-r--r--views/mods/mod_rechnungen/invoice_pdf.phtml4
-rw-r--r--views/mods/mod_rechnungen/multi_invoice_pdf.phtml12
-rw-r--r--views/mods/mod_revocation/ajaxDialogContent.phtml20
-rwxr-xr-xviews/mods/mod_revocation/mail_row.phtml2
-rwxr-xr-xviews/mods/mod_revocation/mail_row_html.phtml4
-rw-r--r--views/mods/mod_revocation/mails/mail_admin_html.phtml28
-rw-r--r--views/mods/mod_revocation/mails/mail_admin_text.phtml24
-rw-r--r--views/mods/mod_revocation/mails/mail_customer_html.phtml26
-rw-r--r--views/mods/mod_revocation/mails/mail_customer_text.phtml24
-rw-r--r--views/mods/mod_revocation/order_view_row.phtml4
-rw-r--r--views/mods/mod_revocation/page_form.phtml22
-rw-r--r--views/mods/mod_revocation/settings_edit.phtml28
-rw-r--r--views/mods/mod_revocation/wp_footer.phtml10
-rw-r--r--views/mods/mod_revocation/wpsg_mod_kundenverwaltung_order_after_products.phtml4
-rw-r--r--views/order/index.phtml4
19 files changed, 113 insertions, 113 deletions
diff --git a/views/admin/licence.phtml b/views/admin/licence.phtml
index fdd4e5d..30dfd87 100644
--- a/views/admin/licence.phtml
+++ b/views/admin/licence.phtml
@@ -80,7 +80,7 @@
<?php if ($wpsg_update_data['licence_model'] === 'enterprise') { $strLicenceLabel = __('Enterprise', 'wpsg'); ?>
<?php } else if ($wpsg_update_data['licence_model'] === 'pro') { $strLicenceLabel = __('Pro', 'wpsg'); } ?>
- <?php echo wpsg_drawForm_Text(_('Lizenzmodel'), $strLicenceLabel); ?>
+ <?php echo wpsg_drawForm_Text(__('Lizenzmodel', 'wpsg'), $strLicenceLabel); ?>
<br />
diff --git a/views/mailtemplates/html/customer.phtml b/views/mailtemplates/html/customer.phtml
index f352a62..b811ae4 100644
--- a/views/mailtemplates/html/customer.phtml
+++ b/views/mailtemplates/html/customer.phtml
@@ -18,7 +18,7 @@
</tr>
<tr>
<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col0"><?php echo __('Straße', 'wpsg'); ?>:</td>
- <td style="padding:2px; line-height:100%; vertical-align:middle;" class="col1"><?php echo wpsg_hspc($this->view['basket']['checkout']['strasse'].rtrim(' '._($this->view['basket']['checkout']['nr']??''))); ?></td>
+ <td style="padding:2px; line-height:100%; vertical-align:middle;" class="col1"><?php echo wpsg_hspc($this->view['basket']['checkout']['strasse'].rtrim(' '.($this->view['basket']['checkout']['nr']??''))); ?></td>
</tr>
<?php if (trim($this->view['basket']['checkout']['ustidnr']) != "") { ?>
<tr>
diff --git a/views/mods/mod_abo/settings_edit.phtml b/views/mods/mod_abo/settings_edit.phtml
index fc418d1..a9820fd 100644
--- a/views/mods/mod_abo/settings_edit.phtml
+++ b/views/mods/mod_abo/settings_edit.phtml
@@ -134,7 +134,7 @@
echo __('Status: ', 'wpsg');
- ?><?php echo (($this->get_option('wpsg_mod_abo_cron_run') === '1')?_('Läuft gerade'):_('Wartend')); ?>
+ ?><?php echo (($this->get_option('wpsg_mod_abo_cron_run') === '1')?__('Läuft gerade', 'wpsg'):__('Wartend', 'wpsg')); ?>
<?php if ($this->get_option('wpsg_mod_abo_cron_run') === '1' || file_exists($pid_file)) { ?>
(<?php echo __('Start: ', 'wpsg'); ?><?php echo wpsg_formatTimestamp($this->get_option('wpsg_mod_abo_cron_start'), false, true); ?>)
<a href="<?php echo WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_abo&subaction=resetCron&noheader=1'; ?>"><?php echo __('Zurücksetzen', 'wpsg'); ?></a>
diff --git a/views/mods/mod_rechnungen/accounting_pdf.phtml b/views/mods/mod_rechnungen/accounting_pdf.phtml
index 2f45f66..fd4c273 100644
--- a/views/mods/mod_rechnungen/accounting_pdf.phtml
+++ b/views/mods/mod_rechnungen/accounting_pdf.phtml
@@ -494,7 +494,7 @@
if ($this->view['basket']['arCalculation']['shipping'][0]['tax_key'] === '0') {
- $mwst = _('anteilig');
+ $mwst = __('anteilig', 'wpsg');
} else {
@@ -548,7 +548,7 @@
if ($this->view['basket']['arCalculation']['payment'][0]['tax_key'] === '0') {
- $mwst = _('anteilig');
+ $mwst = __('anteilig', 'wpsg');
} else {
diff --git a/views/mods/mod_rechnungen/invoice_pdf.phtml b/views/mods/mod_rechnungen/invoice_pdf.phtml
index e2fe307..c5d649c 100644
--- a/views/mods/mod_rechnungen/invoice_pdf.phtml
+++ b/views/mods/mod_rechnungen/invoice_pdf.phtml
@@ -521,7 +521,7 @@
if ($this->view['basket']['arCalculation']['shipping'][0]['tax_key'] === '0') {
- $mwst = _('anteilig');
+ $mwst = __('anteilig', 'wpsg');
} else {
@@ -575,7 +575,7 @@
if ($this->view['basket']['arCalculation']['payment'][0]['tax_key'] === '0') {
- $mwst = _('anteilig');
+ $mwst = __('anteilig', 'wpsg');
} else {
diff --git a/views/mods/mod_rechnungen/multi_invoice_pdf.phtml b/views/mods/mod_rechnungen/multi_invoice_pdf.phtml
index ca4cc50..b0c9344 100644
--- a/views/mods/mod_rechnungen/multi_invoice_pdf.phtml
+++ b/views/mods/mod_rechnungen/multi_invoice_pdf.phtml
@@ -690,7 +690,7 @@ $sum = $this->view['multi_data']['orders'][0]['sum'];
if ($arCalculation['shipping'][0]['tax_key'] === '0') {
- $mwst = _('anteilig');
+ $mwst = __('anteilig', 'wpsg');
} else {
@@ -741,7 +741,7 @@ $sum = $this->view['multi_data']['orders'][0]['sum'];
if ($arCalculation['payment'][0]['tax_key'] === '0') {
- $mwst = _('anteilig');
+ $mwst = __('anteilig', 'wpsg');
} else {
@@ -778,10 +778,10 @@ $sum = $this->view['multi_data']['orders'][0]['sum'];
$pdf->Cell(10, 8, $pnr.'.', 1, 0, 'C'); $pnr ++;
$pdf->setXY($prod_left + 10, $prod_top + $offset + $sum_multi_offset);
- $pdf->Cell( (($bTaxCol)?87:102), 8, _('Rabatt'), 1, 0, 'L');
+ $pdf->Cell( (($bTaxCol)?87:102), 8, __('Rabatt', 'wpsg'), 1, 0, 'L');
$pdf->setXY($prod_left + 97, $prod_top + $offset + $sum_multi_offset);
- $pdf->Cell(15, 8, _('anteilig'), 1, 0, 'C');
+ $pdf->Cell(15, 8, __('anteilig', 'wpsg'), 1, 0, 'C');
$pdf->setXY($prod_left + 112, $prod_top + $offset + $sum_multi_offset);
$pdf->Cell(15, 8, '1', 1, 0, 'C');
@@ -804,10 +804,10 @@ $sum = $this->view['multi_data']['orders'][0]['sum'];
$pdf->Cell(10, 8, $pnr.'.', 1, 0, 'C'); $pnr ++;
$pdf->setXY($prod_left + 10, $prod_top + $offset + $sum_multi_offset);
- $pdf->Cell( (($bTaxCol)?87:102), 8, _('Wertgutschein').' ('.$c['code'].')', 1, 0, 'L');
+ $pdf->Cell( (($bTaxCol)?87:102), 8, __('Wertgutschein', 'wpsg').' ('.$c['code'].')', 1, 0, 'L');
$pdf->setXY($prod_left + 97, $prod_top + $offset + $sum_multi_offset);
- $pdf->Cell(15, 8, _('anteilig'), 1, 0, 'C');
+ $pdf->Cell(15, 8, __('anteilig', 'wpsg'), 1, 0, 'C');
$pdf->setXY($prod_left + 112, $prod_top + $offset + $sum_multi_offset);
$pdf->Cell(15, 8, $c['amount'], 1, 0, 'C');
diff --git a/views/mods/mod_revocation/ajaxDialogContent.phtml b/views/mods/mod_revocation/ajaxDialogContent.phtml
index 633f643..89a32c3 100644
--- a/views/mods/mod_revocation/ajaxDialogContent.phtml
+++ b/views/mods/mod_revocation/ajaxDialogContent.phtml
@@ -61,7 +61,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
<input type="hidden" readonly name="wpsg_revocation_reason[row][<?php echo $key; ?>][order_product_id]" value="<?php echo $oOrderProduct->getId(); ?>" />
<div class="form_field">
- <div class="label"><?php echo __('Bestellnummer / Menge', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo __('Bestellnummer / Menge', 'wpsg'); ?></div>
<div class="value">
<input type="text" readonly name="wpsg_revocation_reason[row][<?php echo $key; ?>][order_nr]" value="<?php echo $oOrder->getNr(); ?>" />
<input type="number" min="1" max="<?php echo $amount; ?>" name="wpsg_revocation_reason[row][<?php echo $key; ?>][amount]" value="<?php echo $amount; ?>" />
@@ -69,10 +69,10 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
</div>
<div class="form_field">
- <div class="label"><?php echo __('Widerrufsgrund', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo __('Widerrufsgrund', 'wpsg'); ?></div>
<div class="value">
<select name="wpsg_revocation_reason[row][<?php echo $key; ?>][reason]" required>
- <option value=""><?php echo __("Keinen Grund angeben", 'wpsgRevocation') ?></option>
+ <option value=""><?php echo __("Keinen Grund angeben", 'wpsg') ?></option>
<?php foreach ($arReason as $reason) { ?>
<option value="<?php echo htmlspecialchars($reason['id']); ?>"><?php echo htmlspecialchars($reason['text']); ?></option>
<?php } ?>
@@ -81,7 +81,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
</div>
<div class="form_field">
- <div class="label"><?php echo __('Bemerkung', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo __('Bemerkung', 'wpsg'); ?></div>
<div class="value">
<textarea name="wpsg_revocation_reason[row][<?php echo $key; ?>][comment]"></textarea>
</div>
@@ -101,14 +101,14 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
<fieldset class="wpsg_revocation_order_product">
<div class="form_field">
- <div class="label"><?php echo __('Artikel - Nr.', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo __('Artikel - Nr.', 'wpsg'); ?></div>
<div class="value">
<input type="text" name="wpsg_revocation_reason[row][<?php echo $key; ?>][product_nr]" value="<?php echo ($dialog_config['set_product_anr']??''); ?>" />
</div>
</div>
<div class="form_field">
- <div class="label"><?php echo __('Bestellnummer / Menge', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo __('Bestellnummer / Menge', 'wpsg'); ?></div>
<div class="value">
<input type="text" name="wpsg_revocation_reason[row][<?php echo $key; ?>][order_nr]" value="" />
<input type="number" name="wpsg_revocation_reason[row][<?php echo $key; ?>][amount]" value="1" />
@@ -116,10 +116,10 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
</div>
<div class="form_field">
- <div class="label"><?php echo __('Widerrufsgrund', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo __('Widerrufsgrund', 'wpsg'); ?></div>
<div class="value">
<select name="wpsg_revocation_reason[row][<?php echo $key; ?>][reason]">
- <option value=""><?php echo __("Keinen Grund angeben", 'wpsgRevocation') ?></option>
+ <option value=""><?php echo __("Keinen Grund angeben", 'wpsg') ?></option>
<?php foreach ($arReason as $reason) { ?>
<option value="<?php echo htmlspecialchars($reason['id']); ?>"><?php echo htmlspecialchars($reason['text']); ?></option>
<?php } ?>
@@ -128,7 +128,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
</div>
<div class="form_field">
- <div class="label"><?php echo __('Bemerkung', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo __('Bemerkung', 'wpsg'); ?></div>
<div class="value">
<textarea name="wpsg_revocation_reason[row][<?php echo $key; ?>][comment]"></textarea>
</div>
@@ -139,7 +139,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
<?php } ?>
<div class="form_field">
- <div class="label"><?php echo __('Kontakt - E-Mail', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo __('Kontakt - E-Mail', 'wpsg'); ?></div>
<div class="value">
<input type="email" required name="wpsg_revocation_reason[contact]" value="<?php echo $contact_email; ?>"
<?php echo (($contact_email !== '')?'readonly':''); ?>
diff --git a/views/mods/mod_revocation/mail_row.phtml b/views/mods/mod_revocation/mail_row.phtml
index 399bef0..2815226 100755
--- a/views/mods/mod_revocation/mail_row.phtml
+++ b/views/mods/mod_revocation/mail_row.phtml
@@ -13,6 +13,6 @@
$revo_url = get_home_url('/', '', 'http').'?wpsg_revo_order='.urlencode($order_nr).'&wpsg_revo_product='.urlencode($product_nr).'&wpsg_revo_amount='.urlencode($amount);
?><?php echo "\n"; ?>
-<?php echo wpsg_pad_left(__('Vertrag widerrufen:', 'wpsgRevocation').' ', 15); ?> <?php echo $revo_url; ?>
+<?php echo wpsg_pad_left(__('Vertrag widerrufen:', 'wpsg').' ', 15); ?> <?php echo $revo_url; ?>
<?php echo "\n"; ?> <?php echo wpsg_pad_left(__("--------------------"), 15) ?>
<?php echo "\n"; ?> \ No newline at end of file
diff --git a/views/mods/mod_revocation/mail_row_html.phtml b/views/mods/mod_revocation/mail_row_html.phtml
index 47293f5..e58ae64 100755
--- a/views/mods/mod_revocation/mail_row_html.phtml
+++ b/views/mods/mod_revocation/mail_row_html.phtml
@@ -17,8 +17,8 @@
?>
<tr class="productrow productrow2 <?php echo ((($i % 2) == 0)?'productrow_odd':'productrow_even'); ?>">
<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos">&nbsp;</td>
- <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Widerruf', 'wpsgRevocation'); ?>:</td>
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Widerruf', 'wpsg'); ?>:</td>
<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="4">
- <a href="<?php echo $revo_url; ?>"><?php echo __('Vertrag widerrufen', 'wpsgRevocation'); ?></a>
+ <a href="<?php echo $revo_url; ?>"><?php echo __('Vertrag widerrufen', 'wpsg'); ?></a>
</td>
</tr>
diff --git a/views/mods/mod_revocation/mails/mail_admin_html.phtml b/views/mods/mod_revocation/mails/mail_admin_html.phtml
index 57920b5..f3c0a58 100644
--- a/views/mods/mod_revocation/mails/mail_admin_html.phtml
+++ b/views/mods/mod_revocation/mails/mail_admin_html.phtml
@@ -14,13 +14,13 @@
$arReason = Revocation::getReasons();
?>
-<p><?php echo __('Hallo,', 'wpsgRevocation'); ?></p>
+<p><?php echo __('Hallo,', 'wpsg'); ?></p>
-<p><?php echo __('ein Kunde hat einen Widerruf für ein Produkt durchgeführt.', 'wpsgRevocation'); ?></p>
+<p><?php echo __('ein Kunde hat einen Widerruf für ein Produkt durchgeführt.', 'wpsg'); ?></p>
<p>
- <strong><?php echo __('Name', 'wpsgRevocation'); ?>:</strong> %kunde_anrede% %kunde_vname% %kunde_name%<br>
- <strong><?php echo __('E-Mail', 'wpsgRevocation'); ?>:</strong> %kunde_email%
+ <strong><?php echo __('Name', 'wpsg'); ?>:</strong> %kunde_anrede% %kunde_vname% %kunde_name%<br>
+ <strong><?php echo __('E-Mail', 'wpsg'); ?>:</strong> %kunde_email%
</p>
<hr>
@@ -40,24 +40,24 @@
<div style="margin-bottom:15px; padding-bottom:10px; border-bottom:1px solid #ddd;">
<p>
- <strong><?php echo __('Bestellung', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Bestellung', 'wpsg'); ?>:</strong>
<?php echo $oOrder->getNr(); ?>
</p>
<p>
- <strong><?php echo __('Produkt', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Produkt', 'wpsg'); ?>:</strong>
<?php echo $d['amount']; ?> x <?php echo $oOrderProduct->getProduct()->getProductName(true); ?>
- / <?php echo __('Artikelnummer', 'wpsgRevocation'); ?>:
+ / <?php echo __('Artikelnummer', 'wpsg'); ?>:
<?php echo $oOrderProduct->getProduct()->getNr(); ?>
</p>
<p>
- <strong><?php echo __('Ausgewählter Grund', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Ausgewählter Grund', 'wpsg'); ?>:</strong>
<?php echo $reasonText; ?>
</p>
<p>
- <strong><?php echo __('Bemerkung', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Bemerkung', 'wpsg'); ?>:</strong>
<?php echo nl2br(htmlspecialchars($d['comment'] ?? '')); ?>
</p>
</div>
@@ -65,16 +65,16 @@
<?php endforeach; ?>
<p>
- <strong><?php echo __('Datum des Widerrufs', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Datum des Widerrufs', 'wpsg'); ?>:</strong>
<?php echo date('d.m.Y H:i:s'); ?>
</p>
<p>
- <?php echo __('Bitte prüft den Vorgang und führt die Rückabwicklung (Storno / Rückerstattung) durch.', 'wpsgRevocation'); ?>
+ <?php echo __('Bitte prüft den Vorgang und führt die Rückabwicklung (Storno / Rückerstattung) durch.', 'wpsg'); ?>
</p>
<p>
- <?php echo __('Viele Grüße', 'wpsgRevocation'); ?><br>
- <?php echo __(\wpsg_ShopController::getShop()->get_option('wpsg_shopdata_name'), 'wpsgRevocation'); ?>
- - <?php echo __('Team', 'wpsgRevocation'); ?>
+ <?php echo __('Viele Grüße', 'wpsg'); ?><br>
+ <?php echo \wpsg_ShopController::getShop()->get_option('wpsg_shopdata_name'); ?>
+ - <?php echo __('Team', 'wpsg'); ?>
</p> \ No newline at end of file
diff --git a/views/mods/mod_revocation/mails/mail_admin_text.phtml b/views/mods/mod_revocation/mails/mail_admin_text.phtml
index 8ce601a..6b00c4d 100644
--- a/views/mods/mod_revocation/mails/mail_admin_text.phtml
+++ b/views/mods/mod_revocation/mails/mail_admin_text.phtml
@@ -13,12 +13,12 @@
$arSubmitData = \wpsg_ShopController::getShop()->view['arSubmitData'] ?? [];
$arReason = Revocation::getReasons();
-?><?php echo __('Hallo,', 'wpsgRevocation'); ?>
+?><?php echo __('Hallo,', 'wpsg'); ?>
-<?php echo __('ein Kunde hat einen Widerruf für ein Produkt durchgeführt.', 'wpsgRevocation'); ?>
+<?php echo __('ein Kunde hat einen Widerruf für ein Produkt durchgeführt.', 'wpsg'); ?>
-<?php echo mb_str_pad(__('Name', 'wpsgRevocation').':', 25); ?> %kunde_anrede% %kunde_vname% %kunde_name%
-<?php echo mb_str_pad(__('E-Mail', 'wpsgRevocation').':', 25); ?> %kunde_email%
+<?php echo mb_str_pad(__('Name', 'wpsg').':', 25); ?> %kunde_anrede% %kunde_vname% %kunde_name%
+<?php echo mb_str_pad(__('E-Mail', 'wpsg').':', 25); ?> %kunde_email%
<?php foreach ($arSubmitData as $key => $d) {
@@ -29,16 +29,16 @@
$oOrderProduct = $d['oOrderProduct'];
?>
-<?php echo mb_str_pad(__('Bestellung', 'wpsgRevocation').':', 25); ?> <?php echo $oOrder->getNr(); ?>
-<?php echo mb_str_pad(__('Produkt', 'wpsgRevocation').':', 25); ?> <?php echo $d['amount']; ?> x <?php echo $oOrderProduct->getProduct()->getProductName(true); ?> / <?php echo __('Artikelnummer', 'wpsgRevocation'); ?>: <?php echo $oOrderProduct->getProduct()->getNr(); ?>
-<?php echo mb_str_pad(__('Ausgewählter Grund', 'wpsgRevocation').':', 25); ?> <?php echo array_values(array_filter($arReason, function($item) use ($d) { return $item['id'] === $d['reason']; }))[0]['text'] ?? ''; ?>
-<?php echo mb_str_pad(__('Bemerkung', 'wpsgRevocation').':', 25); ?> <?php echo $d['comment']; ?>
+<?php echo mb_str_pad(__('Bestellung', 'wpsg').':', 25); ?> <?php echo $oOrder->getNr(); ?>
+<?php echo mb_str_pad(__('Produkt', 'wpsg').':', 25); ?> <?php echo $d['amount']; ?> x <?php echo $oOrderProduct->getProduct()->getProductName(true); ?> / <?php echo __('Artikelnummer', 'wpsg'); ?>: <?php echo $oOrderProduct->getProduct()->getNr(); ?>
+<?php echo mb_str_pad(__('Ausgewählter Grund', 'wpsg').':', 25); ?> <?php echo array_values(array_filter($arReason, function($item) use ($d) { return $item['id'] === $d['reason']; }))[0]['text'] ?? ''; ?>
+<?php echo mb_str_pad(__('Bemerkung', 'wpsg').':', 25); ?> <?php echo $d['comment']; ?>
<?php } ?>
-<?php echo mb_str_pad(__('Datum des Widerrufs', 'wpsgRevocation').':', 25); ?> <?php echo date('d.m.Y H:i:s'); ?>
+<?php echo mb_str_pad(__('Datum des Widerrufs', 'wpsg').':', 25); ?> <?php echo date('d.m.Y H:i:s'); ?>
-<?php echo __('Bitte prüft den Vorgang und führt die Rückabwicklung (Storno / Rückerstattung) durch.', 'wpsgRevocation'); ?>
+<?php echo __('Bitte prüft den Vorgang und führt die Rückabwicklung (Storno / Rückerstattung) durch.', 'wpsg'); ?>
-<?php echo __('Viele Grüße', 'wpsgRevocation'); ?>
-<?php echo __(\wpsg_ShopController::getShop()->get_option('wpsg_shopdata_name'), 'wpsgRevocation'); ?> - <?php echo __('Team', 'wpsgRevocation'); ?> \ No newline at end of file
+<?php echo __('Viele Grüße', 'wpsg'); ?>
+<?php echo \wpsg_ShopController::getShop()->get_option('wpsg_shopdata_name'); ?> - <?php echo __('Team', 'wpsg'); ?> \ No newline at end of file
diff --git a/views/mods/mod_revocation/mails/mail_customer_html.phtml b/views/mods/mod_revocation/mails/mail_customer_html.phtml
index 9b84c5a..cc7fac6 100644
--- a/views/mods/mod_revocation/mails/mail_customer_html.phtml
+++ b/views/mods/mod_revocation/mails/mail_customer_html.phtml
@@ -14,11 +14,11 @@
$arReason = Revocation::getReasons();
?>
-<p><?php echo __('Hallo', 'wpsgRevocation'); ?> %kunde_anrede% %kunde_name%,</p>
+<p><?php echo __('Hallo', 'wpsg'); ?> %kunde_anrede% %kunde_name%,</p>
-<p><?php echo __('wir haben Ihren Widerruf erhalten und bedanken uns für Ihre Mitteilung.', 'wpsgRevocation'); ?></p>
+<p><?php echo __('wir haben Ihren Widerruf erhalten und bedanken uns für Ihre Mitteilung.', 'wpsg'); ?></p>
-<h3><?php echo __('Ihre Widerrufsanmeldung:', 'wpsgRevocation'); ?></h3>
+<h3><?php echo __('Ihre Widerrufsanmeldung:', 'wpsg'); ?></h3>
<?php foreach ($arSubmitData as $key => $d):
@@ -35,25 +35,25 @@
<div style="margin-bottom:20px; padding:15px; background-color:#f9f9f9; border-radius:5px;">
<p style="margin:0 0 10px 0;">
- <strong><?php echo __('Bestellnummer', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Bestellnummer', 'wpsg'); ?>:</strong>
<?php echo $oOrder->getNr(); ?>
</p>
<p style="margin:0 0 10px 0;">
- <strong><?php echo __('Produkt', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Produkt', 'wpsg'); ?>:</strong>
<?php echo $d['amount']; ?> x <?php echo $oOrderProduct->getProduct()->getProductName(true); ?>
- / <?php echo __('Artikelnr.', 'wpsgRevocation'); ?>:
+ / <?php echo __('Artikelnr.', 'wpsg'); ?>:
<?php echo $oOrderProduct->getProduct()->getNr(); ?>
</p>
<p style="margin:0 0 10px 0;">
- <strong><?php echo __('Grund', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Grund', 'wpsg'); ?>:</strong>
<?php echo $reasonText; ?>
</p>
<?php if (!empty($d['comment'])): ?>
<p style="margin:0 0 10px 0;">
- <strong><?php echo __('Bemerkung', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Bemerkung', 'wpsg'); ?>:</strong>
<?php echo nl2br(htmlspecialchars($d['comment'])); ?>
</p>
<?php endif; ?>
@@ -62,15 +62,15 @@
<?php endforeach; ?>
<p>
- <strong><?php echo __('Widerrufdatum', 'wpsgRevocation'); ?>:</strong>
+ <strong><?php echo __('Widerrufdatum', 'wpsg'); ?>:</strong>
<?php echo date('d.m.Y H:i:s'); ?>
</p>
-<!--<p>--><?php //echo __('Wir werden Ihren Widerruf nun schnellstmöglich bearbeiten und uns bei Fragen mit Ihnen in Verbindung setzen.', 'wpsgRevocation'); ?><!--</p>-->
-<p><?php echo __('Bitte beachten Sie, dass die Prüfung der Wirksamkeit und Reichweite Ihrer Widerrufserklärung noch aussteht. Wir werden Ihre Mitteilung nun bearbeiten und uns bei Rückfragen mit Ihnen in Verbindung setzen.', 'wpsgRevocation'); ?></p>
+<!--<p>--><?php //echo __('Wir werden Ihren Widerruf nun schnellstmöglich bearbeiten und uns bei Fragen mit Ihnen in Verbindung setzen.', 'wpsg'); ?><!--</p>-->
+<p><?php echo __('Bitte beachten Sie, dass die Prüfung der Wirksamkeit und Reichweite Ihrer Widerrufserklärung noch aussteht. Wir werden Ihre Mitteilung nun bearbeiten und uns bei Rückfragen mit Ihnen in Verbindung setzen.', 'wpsg'); ?></p>
<p>
- <?php echo __('Mit freundlichen Grüßen', 'wpsgRevocation'); ?><br>
+ <?php echo __('Mit freundlichen Grüßen', 'wpsg'); ?><br>
<?php echo \wpsg_ShopController::getShop()->get_option('wpsg_shopdata_name'); ?>
- - <?php echo __('Team', 'wpsgRevocation'); ?>
+ - <?php echo __('Team', 'wpsg'); ?>
</p> \ No newline at end of file
diff --git a/views/mods/mod_revocation/mails/mail_customer_text.phtml b/views/mods/mod_revocation/mails/mail_customer_text.phtml
index fb65b63..5636d6b 100644
--- a/views/mods/mod_revocation/mails/mail_customer_text.phtml
+++ b/views/mods/mod_revocation/mails/mail_customer_text.phtml
@@ -13,11 +13,11 @@
$arSubmitData = \wpsg_ShopController::getShop()->view['arSubmitData'] ?? [];
$arReason = Revocation::getReasons();
-?><?php echo __('Hallo', 'wpsgRevocation'); ?> %kunde_anrede% %kunde_name%,
+?><?php echo __('Hallo', 'wpsg'); ?> %kunde_anrede% %kunde_name%,
-<?php echo __('wir haben Ihren Widerruf erhalten und bedanken uns für Ihre Mitteilung.', 'wpsgRevocation'); ?>
+<?php echo __('wir haben Ihren Widerruf erhalten und bedanken uns für Ihre Mitteilung.', 'wpsg'); ?>
-<?php echo __('Ihre Widerrufsanmeldung:', 'wpsgRevocation'); ?>
+<?php echo __('Ihre Widerrufsanmeldung:', 'wpsg'); ?>
<?php foreach ($arSubmitData as $key => $d):
@@ -32,23 +32,23 @@
))[0]['text'] ?? '';
?>
-<?php echo mb_str_pad(__('Bestellnummer', 'wpsgRevocation').':', 20); ?> <?php echo $oOrder->getNr(); ?>
+<?php echo mb_str_pad(__('Bestellnummer', 'wpsg').':', 20); ?> <?php echo $oOrder->getNr(); ?>
-<?php echo mb_str_pad(__('Produkt', 'wpsgRevocation').':', 20); ?> <?php echo $d['amount']; ?> x <?php echo $oOrderProduct->getProduct()->getProductName(true); ?> / <?php echo __('Artikelnr.', 'wpsgRevocation'); ?>: <?php echo $oOrderProduct->getProduct()->getNr(); ?>
+<?php echo mb_str_pad(__('Produkt', 'wpsg').':', 20); ?> <?php echo $d['amount']; ?> x <?php echo $oOrderProduct->getProduct()->getProductName(true); ?> / <?php echo __('Artikelnr.', 'wpsg'); ?>: <?php echo $oOrderProduct->getProduct()->getNr(); ?>
-<?php echo mb_str_pad(__('Grund', 'wpsgRevocation').':', 20); ?> <?php echo $reasonText; ?>
+<?php echo mb_str_pad(__('Grund', 'wpsg').':', 20); ?> <?php echo $reasonText; ?>
<?php if (!empty($d['comment'])): ?>
-<?php echo mb_str_pad(__('Bemerkung', 'wpsgRevocation').':', 20); ?> <?php echo $d['comment']; ?>
+<?php echo mb_str_pad(__('Bemerkung', 'wpsg').':', 20); ?> <?php echo $d['comment']; ?>
<?php endif; ?>
<?php endforeach; ?>
-<?php echo mb_str_pad(__('Widerrufdatum', 'wpsgRevocation').':', 20); ?> <?php echo date('d.m.Y H:i:s'); ?>
+<?php echo mb_str_pad(__('Widerrufdatum', 'wpsg').':', 20); ?> <?php echo date('d.m.Y H:i:s'); ?>
-<?php echo __('Wir werden Ihren Widerruf nun schnellstmöglich bearbeiten und uns bei Fragen mit Ihnen in Verbindung setzen.', 'wpsgRevocation'); ?>
-<?php echo __('Bitte beachten Sie, dass die Prüfung der Wirksamkeit und Reichweite Ihrer Widerrufserklärung noch aussteht. Wir werden Ihre Mitteilung nun bearbeiten und uns bei Rückfragen mit Ihnen in Verbindung setzen.', 'wpsgRevocation'); ?>
+<?php echo __('Wir werden Ihren Widerruf nun schnellstmöglich bearbeiten und uns bei Fragen mit Ihnen in Verbindung setzen.', 'wpsg'); ?>
+<?php echo __('Bitte beachten Sie, dass die Prüfung der Wirksamkeit und Reichweite Ihrer Widerrufserklärung noch aussteht. Wir werden Ihre Mitteilung nun bearbeiten und uns bei Rückfragen mit Ihnen in Verbindung setzen.', 'wpsg'); ?>
-<?php echo __('Mit freundlichen Grüßen', 'wpsgRevocation'); ?>
+<?php echo __('Mit freundlichen Grüßen', 'wpsg'); ?>
-<?php echo \wpsg_ShopController::getShop()->get_option('wpsg_shopdata_name'); ?> - <?php echo __('Team', 'wpsgRevocation'); ?> \ No newline at end of file
+<?php echo \wpsg_ShopController::getShop()->get_option('wpsg_shopdata_name'); ?> - <?php echo __('Team', 'wpsg'); ?> \ No newline at end of file
diff --git a/views/mods/mod_revocation/order_view_row.phtml b/views/mods/mod_revocation/order_view_row.phtml
index 0d1cecc..9a58cc1 100644
--- a/views/mods/mod_revocation/order_view_row.phtml
+++ b/views/mods/mod_revocation/order_view_row.phtml
@@ -15,8 +15,8 @@
<tr class="wpsg_<?php echo (($this->view['i'] == 0)?'odd':'even'); ?>">
<td colspan="5">
- <?php echo __('Widerruf', 'wpsgRevocation'); ?>:
- <?php echo wpsg_translate(__('#1# Stück am #2# widerrufen', 'wpsgRevocation'), $row['amount'], \wp_date('d. F Y H:i:s', strtotime($row['time']))); ?>
+ <?php echo __('Widerruf', 'wpsg'); ?>:
+ <?php echo wpsg_translate(__('#1# Stück am #2# widerrufen', 'wpsg'), $row['amount'], \wp_date('d. F Y H:i:s', strtotime($row['time']))); ?>
</td>
</tr>
diff --git a/views/mods/mod_revocation/page_form.phtml b/views/mods/mod_revocation/page_form.phtml
index daa8eff..5640420 100644
--- a/views/mods/mod_revocation/page_form.phtml
+++ b/views/mods/mod_revocation/page_form.phtml
@@ -48,14 +48,14 @@
<fieldset class="wpsg_revocation_order_product">
<div class="form_field">
- <div class="label"><?php echo \__('Artikel - Nr.', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo \__('Artikel - Nr.', 'wpsg'); ?></div>
<div class="value">
<input type="text" name="wpsg_revocation_reason[row][<?php echo $key; ?>][product_nr]" value="<?php echo \esc_attr($get_product); ?>" />
</div>
</div>
<div class="form_field">
- <div class="label"><?php echo \__('Bestellnummer / Menge', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo \__('Bestellnummer / Menge', 'wpsg'); ?></div>
<div class="value">
<input type="text" name="wpsg_revocation_reason[row][<?php echo $key; ?>][order_nr]" value="<?php echo \esc_attr($get_order); ?>" />
<input type="number" min="1" name="wpsg_revocation_reason[row][<?php echo $key; ?>][amount]" value="<?php echo intval($get_amount); ?>" />
@@ -63,10 +63,10 @@
</div>
<div class="form_field">
- <div class="label"><?php echo \__('Widerrufsgrund', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo \__('Widerrufsgrund', 'wpsg'); ?></div>
<div class="value">
<select name="wpsg_revocation_reason[row][<?php echo $key; ?>][reason]" required>
- <option value=""><?php echo __("Keinen Grund angeben", 'wpsgRevocation') ?></option>
+ <option value=""><?php echo __("Keinen Grund angeben", 'wpsg') ?></option>
<?php foreach ($arReason as $reason) { ?>
<option value="<?php echo \htmlspecialchars($reason['id']); ?>"><?php echo \htmlspecialchars($reason['text']); ?></option>
<?php } ?>
@@ -75,7 +75,7 @@
</div>
<div class="form_field">
- <div class="label"><?php echo \__('Bemerkung', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo \__('Bemerkung', 'wpsg'); ?></div>
<div class="value">
<textarea name="wpsg_revocation_reason[row][<?php echo $key; ?>][comment]"></textarea>
</div>
@@ -84,7 +84,7 @@
</fieldset>
<div class="form_field">
- <div class="label"><?php echo \__('Kontakt - E-Mail', 'wpsgRevocation'); ?></div>
+ <div class="label"><?php echo \__('Kontakt - E-Mail', 'wpsg'); ?></div>
<div class="value">
<input type="email" required name="wpsg_revocation_reason[contact]" value="<?php echo \esc_attr($contact_email); ?>"
<?php echo (($customer_login_id > 0 && $contact_email !== '') ? 'readonly' : ''); ?>
@@ -93,12 +93,12 @@
</div>
<p class="wpsg_revocation_page_datenschutz">
- <?php echo \__('Es gelten unsere', 'wpsgRevocation'); ?>
- <a href="<?php echo $GLOBALS['wpsg_sc']->getURL(wpsg_ShopController::URL_DATENSCHUTZ); ?>"><?php echo \__('Datenschutzbestimmungen', 'wpsgRevocation'); ?></a>.
+ <?php echo \__('Es gelten unsere', 'wpsg'); ?>
+ <a href="<?php echo $GLOBALS['wpsg_sc']->getURL(wpsg_ShopController::URL_DATENSCHUTZ); ?>"><?php echo \__('Datenschutzbestimmungen', 'wpsg'); ?></a>.
</p>
<div class="form_field wpsg_revocation_page_submit_wrap">
- <button type="submit" class="button button-primary wpsg_revocation_page_submit"><?php echo \__('Widerruf bestätigen', 'wpsgRevocation'); ?></button>
+ <button type="submit" class="button button-primary wpsg_revocation_page_submit"><?php echo \__('Widerruf bestätigen', 'wpsg'); ?></button>
</div>
</form>
@@ -173,7 +173,7 @@
} else {
form.style.display = 'none';
- msg.innerHTML = '<div class="wpsg_revocation_page_success"><?php echo \esc_js(\__('Ihr Widerruf ist bei uns eingegangen und wird nun bearbeitet.', 'wpsgRevocation')); ?></div>';
+ msg.innerHTML = '<div class="wpsg_revocation_page_success"><?php echo \esc_js(\__('Ihr Widerruf ist bei uns eingegangen und wird nun bearbeitet.', 'wpsg')); ?></div>';
msg.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
@@ -181,7 +181,7 @@
}).catch(() => {
button.disabled = false;
- msg.innerHTML = '<ul id="wpsg_error" class="wpsg_error"><li><?php echo \esc_js(\__('Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.', 'wpsgRevocation')); ?></li></ul>';
+ msg.innerHTML = '<ul id="wpsg_error" class="wpsg_error"><li><?php echo \esc_js(\__('Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.', 'wpsg')); ?></li></ul>';
});
diff --git a/views/mods/mod_revocation/settings_edit.phtml b/views/mods/mod_revocation/settings_edit.phtml
index c47b46b..47666f4 100644
--- a/views/mods/mod_revocation/settings_edit.phtml
+++ b/views/mods/mod_revocation/settings_edit.phtml
@@ -16,8 +16,8 @@
<div id="wpsg_mod_revocation_reason_app">
<ul class="nav nav-tabs" role="tablist">
- <li role="presentation" :class="{ 'active': tab === 1 }"><a href="#tab1" @click.prevent.stop="tab = 1"><?php echo __('Einstellungen', 'wpsgRevocation'); ?></a></li>
- <li role="presentation" :class="{ 'active': tab === 2 }"><a href="#tab2" @click.prevent.stop="tab = 2"><?php echo __('Gründe für Retouren', 'wpsgRevocation'); ?></a></li>
+ <li role="presentation" :class="{ 'active': tab === 1 }"><a href="#tab1" @click.prevent.stop="tab = 1"><?php echo __('Einstellungen', 'wpsg'); ?></a></li>
+ <li role="presentation" :class="{ 'active': tab === 2 }"><a href="#tab2" @click.prevent.stop="tab = 2"><?php echo __('Gründe für Retouren', 'wpsg'); ?></a></li>
</ul>
<input type="hidden" name="wpsg_mod_revocation_reason" v-model="jsonString" />
@@ -25,23 +25,23 @@
<div class="tab-content">
<div v-show="tab === 1" class="tab-pane active">
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_revocation_view_order', __('An Produkten im Kundenfrontend an den Bestellungen anzeigen.', 'wpsgRevocation'), wpsg_ShopController::getShop()->get_option('wpsg_mod_revocation_view_order'), ['fullWidth' => true]); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_revocation_view_flyout', __('Auf allen Seiten ein Widerrufs-Flyout anzeigen.', 'wpsgRevocation'), wpsg_ShopController::getShop()->get_option('wpsg_mod_revocation_view_flyout'), ['fullWidth' => true]); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_revocation_view_product', __('Im Produkt neben "In den Warenkorb" anzeigen.', 'wpsgRevocation'), wpsg_ShopController::getShop()->get_option('wpsg_mod_revocation_view_product'), ['fullWidth' => true]); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_revocation_view_customer_mail', __('Widerruflink in Bestellbestätigungsmail an Kunden.', 'wpsgRevocation'), wpsg_ShopController::getShop()->get_option('wpsg_mod_revocation_view_customer_mail'), ['fullWidth' => true]); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_revocation_view_order', __('An Produkten im Kundenfrontend an den Bestellungen anzeigen.', 'wpsg'), wpsg_ShopController::getShop()->get_option('wpsg_mod_revocation_view_order'), ['fullWidth' => true]); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_revocation_view_flyout', __('Auf allen Seiten ein Widerrufs-Flyout anzeigen.', 'wpsg'), wpsg_ShopController::getShop()->get_option('wpsg_mod_revocation_view_flyout'), ['fullWidth' => true]); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_revocation_view_product', __('Im Produkt neben "In den Warenkorb" anzeigen.', 'wpsg'), wpsg_ShopController::getShop()->get_option('wpsg_mod_revocation_view_product'), ['fullWidth' => true]); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_revocation_view_customer_mail', __('Widerruflink in Bestellbestätigungsmail an Kunden.', 'wpsg'), wpsg_ShopController::getShop()->get_option('wpsg_mod_revocation_view_customer_mail'), ['fullWidth' => true]); ?>
<hr />
<div v-pre>
- <?php echo wpsg_drawForm_Select('wpsg_page_widerrufsformular', __('Seite für das Widerrufsformular', 'wpsgRevocation'), wpsg_ShopController::getShop()->view['pages'], wpsg_ShopController::getShop()->get_option('wpsg_page_widerrufsformular'), ['hint' => __('Wählen Sie „Neu anlegen und zuordnen", damit beim Speichern automatisch eine eigene Seite erstellt wird – oder ordnen Sie eine bestehende Seite zu. Das Formular wird automatisch in diese Seite eingebunden.', 'wpsgRevocation')]); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_page_widerrufsformular', __('Seite für das Widerrufsformular', 'wpsg'), wpsg_ShopController::getShop()->view['pages'], wpsg_ShopController::getShop()->get_option('wpsg_page_widerrufsformular'), ['hint' => __('Wählen Sie „Neu anlegen und zuordnen", damit beim Speichern automatisch eine eigene Seite erstellt wird – oder ordnen Sie eine bestehende Seite zu. Das Formular wird automatisch in diese Seite eingebunden.', 'wpsg')]); ?>
</div>
<p class="wpsg_note">
<?php echo wpsg_translate(
- __('Einstellungen zu den E-Mails finden Sie in der <a href="#1#">E-Mail Konfiguration</a>.', 'wpsgRevocation'),
+ __('Einstellungen zu den E-Mails finden Sie in der <a href="#1#">E-Mail Konfiguration</a>.', 'wpsg'),
WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf'
); ?><br />
- <?php echo __('Das Modul setzt eindeutige Artikelnummern voraus.', 'wpsgRevocation'); ?>
+ <?php echo __('Das Modul setzt eindeutige Artikelnummern voraus.', 'wpsg'); ?>
</p>
</div>
@@ -49,14 +49,14 @@
<div class="reason_wrap" v-if="arReason.length > 0">
<template v-for="r of arReason">
<div class="wpsg_form_field">
- <label class="label"><?php echo __('ID', 'wpsgRevocation'); ?></label>
+ <label class="label"><?php echo __('ID', 'wpsg'); ?></label>
<div class="value">
{{r.id}}
<a data-id="1" class="removeReason" @click.prevent.stop="removeReason(r)" href="#"><span class="wpsg-glyphicon glyphicon glyphicon-trash"></span></a>
</div>
</div>
<div class="wpsg_form_field">
- <label class="label"><?php echo __('Text', 'wpsgRevocation'); ?></label>
+ <label class="label"><?php echo __('Text', 'wpsg'); ?></label>
<div class="value">
<input type="text" v-model="r.text" />
</div>
@@ -64,9 +64,9 @@
<hr />
</template>
</div>
- <p v-else><?php echo __('Keine Gründe definiert', 'wpsgRevocation'); ?></p>
+ <p v-else><?php echo __('Keine Gründe definiert', 'wpsg'); ?></p>
- <a href="#" @click.prevent.stop="addReason" class="addReason"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neuen Grund anlegen', 'wpsgRevocation'); ?></a>
+ <a href="#" @click.prevent.stop="addReason" class="addReason"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neuen Grund anlegen', 'wpsg'); ?></a>
</div>
</div>
@@ -107,7 +107,7 @@
};
const removeReason = r => {
- if (confirm('<?php echo __('Sind Sie sich sicher?', 'wpsgRevocation'); ?>')) {
+ if (confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) {
arReason.value = arReason.value.filter(v => v !== r);
diff --git a/views/mods/mod_revocation/wp_footer.phtml b/views/mods/mod_revocation/wp_footer.phtml
index 3c4f9c8..9e7a404 100644
--- a/views/mods/mod_revocation/wp_footer.phtml
+++ b/views/mods/mod_revocation/wp_footer.phtml
@@ -16,7 +16,7 @@
<div id="wpsg_revocation_button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Vertrag widerrufen</title><path d="M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3" /></svg>
- <span id="wpsg_revocation_button_text"><?php echo __('Vertrag widerrufen', 'wpsgRevocation'); ?></span>
+ <span id="wpsg_revocation_button_text"><?php echo __('Vertrag widerrufen', 'wpsg'); ?></span>
</div>
<?php } else { ?>
@@ -29,17 +29,17 @@
<div id="wpsg_revocation_dialog" class="">
<div class="inner">
<div class="header">
- <span><?php echo __('Widerrufsformular', 'wpsgRevocation'); ?></span>
+ <span><?php echo __('Widerrufsformular', 'wpsg'); ?></span>
<a href="#" class="close">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" /></svg>
</a>
</div>
<div class="content"></div>
<div class="footer">
- <button class="button button-primary wpsg_revocation_button_submit"><?php echo __('Widerruf bestätigen', 'wpsgRevocation'); ?></button>
+ <button class="button button-primary wpsg_revocation_button_submit"><?php echo __('Widerruf bestätigen', 'wpsg'); ?></button>
</div>
<div class="loading">
- <img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsgRevocation'); ?>" />
+ <img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />
</div>
</div>
</div>
@@ -119,7 +119,7 @@
} else {
- alert('<?php echo __('Ihr Widerruf ist bei uns eingegangen und wird nun bearbeitet.', 'wpsgRevocation'); ?>');
+ alert('<?php echo __('Ihr Widerruf ist bei uns eingegangen und wird nun bearbeitet.', 'wpsg'); ?>');
close_dialog(event);
document.querySelectorAll('.wpsg_revocation_order_product_checkbox:checked').forEach(el => {
diff --git a/views/mods/mod_revocation/wpsg_mod_kundenverwaltung_order_after_products.phtml b/views/mods/mod_revocation/wpsg_mod_kundenverwaltung_order_after_products.phtml
index c9c0cb1..458e1f3 100644
--- a/views/mods/mod_revocation/wpsg_mod_kundenverwaltung_order_after_products.phtml
+++ b/views/mods/mod_revocation/wpsg_mod_kundenverwaltung_order_after_products.phtml
@@ -38,11 +38,11 @@
data-amount="<?php echo $amount; ?>"
/>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Vertrag widerrufen</title><path d="M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3" /></svg>
- <span><?php echo __('Vertrag widerrufen', 'wpsgRevocation'); ?></span>
+ <span><?php echo __('Vertrag widerrufen', 'wpsg'); ?></span>
</div>
<?php } else { ?>
- <p class="wpsg_revocation_complete"><?php echo __('Bereits komplett widerrufen', 'wpsgRevocation'); ?></p>
+ <p class="wpsg_revocation_complete"><?php echo __('Bereits komplett widerrufen', 'wpsg'); ?></p>
<?php } ?>
</td>
diff --git a/views/order/index.phtml b/views/order/index.phtml
index 7b8b8ed..f090d7f 100644
--- a/views/order/index.phtml
+++ b/views/order/index.phtml
@@ -553,8 +553,8 @@
<span class="row" style="margin-top:0.5rem">
<input type="hidden" name="preview" id="wpsg_mod_rechnungen_preview" />
- <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Vorschau'); ?>" id="wpsg_mod_rechnungen_button_preview" />
- <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Erstellen'); ?>" id="wpsg_mod_rechnungen_button_submit" />
+ <input type="submit" name="wpsg_order_doaction" value="<?php echo __('Vorschau', 'wpsg'); ?>" id="wpsg_mod_rechnungen_button_preview" />
+ <input type="submit" name="wpsg_order_doaction" value="<?php echo __('Erstellen', 'wpsg'); ?>" id="wpsg_mod_rechnungen_button_submit" />
</span>
</div>