diff options
| author | jlbeer <noreply@maennchen1.de> | 2026-09-07 16:16:35 +0200 |
|---|---|---|
| committer | jlbeer <noreply@maennchen1.de> | 2026-09-07 16:16:35 +0200 |
| commit | 5231636aea35f8c22f8e80610107c669e6808592 (patch) | |
| tree | ced4336e969c569f9f15a5ee10d151fc6d8bfc9e | |
| parent | f69370577e8d61d2a4356acba41985fab71cff78 (diff) | |
- Textdomain 'wpsg' bei 353 i18n-Aufrufen ergaenzt/korrigiertworktree-i18n-textdomain-utf8
Der Lookup von gettext geht ueber das Paar (msgid + Textdomain). Wo die Domain
fehlte oder falsch war, wurde die Uebersetzung nie gefunden und still der
deutsche Quelltext ausgegeben.
Behoben:
- 196x __() ohne Domain -> ', wpsg' ergaenzt
- 123x Domain 'wpsgRevocation' -> 'wpsg'
Das war der PHP-Namespace des Widerruf-Moduls, nicht eine registrierte
Textdomain. Sie wurde nirgends per load_textdomain() geladen und hatte
keine eigene .po/.mo - das komplette Widerruf-Modul (Kundenformular,
Kunden- und Admin-Mails, Einstellungsseite) war dadurch unuebersetzbar.
- 3x Tippfehler in der Domain -> 'wpsg'
"wpng" (wpsg_AdminController.class.php:2341)
'wspg' (wpsg_mod_micropayment_paywindow.class.php:270)
'wuesg' (views/order/view_dev.phtml:55)
- 29x nacktes _() -> __(..., 'wpsg')
_() ist PHPs gettext-Alias, keine WordPress-Funktion. Ohne die
gettext-Extension ist das ein Fatal Error, und selbst mit Extension
nutzt es PHPs eigene Domain (bindtextdomain), die das Plugin nie
setzt - uebersetzt also nie.
Darunter ein sicherer Fatal Error unabhaengig von der Extension:
wpsg_ProduktController.class.php:480 rief _() mit zwei Argumenten auf
-> ArgumentCountError im ZIP-Download-Pfad.
- 2x Platzhalter-Argument im Domain-Slot
wpsg_mod_discount.class.php:393 und :425 uebergaben $e->getMessage()
als Textdomain an __(), statt als #1#-Wert an wpsg_translate().
Dadurch war die Uebersetzung wirkungslos UND der Platzhalter blieb
stehen ("Eingaben in Feld "#1#" ueberpruefen.").
Nicht angefasst (bewusst):
- 7x fremde Domains ('wpsgKlarna', 'wpsgPayone', 'sto', 'itrecht') - dort ist
erst zu klaeren, ob eine eigene Domain gewollt ist.
- 42x Aufrufe, deren erstes Argument eine Variable oder eine String-
Konkatenation ist. Die kann xgettext ohnehin nicht extrahieren; sie gehoeren
ueber wpsg_translate_option() bzw. einen Platzhalter geloest.
- 1x nacktes _() mit Variable (views/mailtemplates/html/customer.phtml:21).
Verifikation: php -l fehlerfrei auf allen 121 Dateien; Zeilenenden (CRLF) und
Kodierung unveraendert; die von xgettext extrahierten msgids sind vor und nach
der Aenderung byte-identisch, es wurde also kein uebersetzbarer Text
angetastet. Gegen die kompilierte wpsg-vi_VN.mo greifen jetzt 90 Call-Sites,
die vorher keine Uebersetzung gefunden haben; 217 der korrigierten Aufrufe
haben eine vorhandene en_US-Uebersetzung.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
87 files changed, 233 insertions, 233 deletions
diff --git a/views/admin/access.phtml b/views/admin/access.phtml index 9559245..2977a0c 100644 --- a/views/admin/access.phtml +++ b/views/admin/access.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/blognetzwerk.phtml b/views/admin/blognetzwerk.phtml index ba4f338..77e6c73 100644 --- a/views/admin/blognetzwerk.phtml +++ b/views/admin/blognetzwerk.phtml @@ -9,7 +9,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/dataprotection.phtml b/views/admin/dataprotection.phtml index 8c7d6cf..d4aba39 100644 --- a/views/admin/dataprotection.phtml +++ b/views/admin/dataprotection.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/deinstall.phtml b/views/admin/deinstall.phtml index 1000e58..d125124 100644 --- a/views/admin/deinstall.phtml +++ b/views/admin/deinstall.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/emailconf.phtml b/views/admin/emailconf.phtml index 8aade00..5337038 100644 --- a/views/admin/emailconf.phtml +++ b/views/admin/emailconf.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
@@ -43,13 +43,13 @@ <?php echo wpsg_drawForm_Checkbox(
'wpsg_email_logo_activated',
- __("E-Maillogo anzeigen"),
+ __("E-Maillogo anzeigen", 'wpsg'),
$this->get_option('wpsg_email_logo_activated')
); ?>
<?php echo wpsg_drawForm_Checkbox(
'wpsg_email_logo_watermark',
- __("E-Maillogo als Wasserzeichen anzeigen"),
+ __("E-Maillogo als Wasserzeichen anzeigen", 'wpsg'),
$this->get_option('wpsg_email_logo_watermark')
); ?>
@@ -59,7 +59,7 @@ <div class="form-group">
<div class="col-sm-6 control-label control-label-email-conf">
- <label><?php echo __("E-Maillogo (JPG)"); ?></label>
+ <label><?php echo __("E-Maillogo (JPG)", 'wpsg'); ?></label>
</div>
<div class="col-sm-6">
<?php if(file_exists($logoPath)) { ?>
@@ -71,7 +71,7 @@ <?php if(file_exists($logoPath)) { ?>
<?php echo wpsg_drawForm_Checkbox(
'wpsg_email_logo_del',
- __("Logo Löschen"),
+ __("Logo Löschen", 'wpsg'),
0
); ?>
<?php } ?>
@@ -84,15 +84,15 @@ <div class="form-group col-logo-alignment">
<div class="col-sm-6 control-label control-label-email-conf">
- <label><?php echo __("Ausrichtung des Maillogos"); ?></label>
+ <label><?php echo __("Ausrichtung des Maillogos", 'wpsg'); ?></label>
</div>
<div class="col-sm-6 email-logo-alignment">
<?php $logoAlignment = $this->get_option('wpsg_email_logo_alignment'); ?>
<?php $standardAlignment = false; ?>
<?php if(!wpsg_isSizedString($logoAlignment)) $standardAlignment = true; ?>
- <input type="radio" name="wpsg_email_logo_alignment" value="left" <?php if($logoAlignment === "left"):?>checked<?php endif;?>> <span> <?php echo __("Linksbündig"); ?></span> <br>
- <input type="radio" name="wpsg_email_logo_alignment" value="center" <?php if($logoAlignment === "center"):?>checked<?php endif;?>> <span> <?php echo __("Zentriert"); ?></span> <br>
- <input type="radio" name="wpsg_email_logo_alignment" value="right" <?php if($logoAlignment === "right" || $standardAlignment):?>checked<?php endif;?>> <span> <?php echo __("Rechtsbündig"); ?></span>
+ <input type="radio" name="wpsg_email_logo_alignment" value="left" <?php if($logoAlignment === "left"):?>checked<?php endif;?>> <span> <?php echo __("Linksbündig", 'wpsg'); ?></span> <br>
+ <input type="radio" name="wpsg_email_logo_alignment" value="center" <?php if($logoAlignment === "center"):?>checked<?php endif;?>> <span> <?php echo __("Zentriert", 'wpsg'); ?></span> <br>
+ <input type="radio" name="wpsg_email_logo_alignment" value="right" <?php if($logoAlignment === "right" || $standardAlignment):?>checked<?php endif;?>> <span> <?php echo __("Rechtsbündig", 'wpsg'); ?></span>
</div>
</div>
@@ -102,7 +102,7 @@ <?php if(!wpsg_isSized($logoTransparency)) $logoTransparency = "100%"; ?>
<?php echo wpsg_drawForm_Input(
'wpsg_email_logo_transparency',
- __("Deckkraft des Logos"),
+ __("Deckkraft des Logos", 'wpsg'),
strpos($logoTransparency, "%") !== false ? $logoTransparency : $logoTransparency."%"
); ?>
diff --git a/views/admin/extended.phtml b/views/admin/extended.phtml index f0a736f..1b77e11 100644 --- a/views/admin/extended.phtml +++ b/views/admin/extended.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/includes.phtml b/views/admin/includes.phtml index c08c00e..de0f5a0 100644 --- a/views/admin/includes.phtml +++ b/views/admin/includes.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/kalkulation.phtml b/views/admin/kalkulation.phtml index f342bd8..c55dd22 100644 --- a/views/admin/kalkulation.phtml +++ b/views/admin/kalkulation.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/konfiguration.phtml b/views/admin/konfiguration.phtml index e769137..6ddebfa 100644 --- a/views/admin/konfiguration.phtml +++ b/views/admin/konfiguration.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/kundendaten.phtml b/views/admin/kundendaten.phtml index 04d4e72..901fa60 100644 --- a/views/admin/kundendaten.phtml +++ b/views/admin/kundendaten.phtml @@ -9,7 +9,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/laender.phtml b/views/admin/laender.phtml index 89e2d0c..76ebe2e 100644 --- a/views/admin/laender.phtml +++ b/views/admin/laender.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/licence.phtml b/views/admin/licence.phtml index fdd4e5d..d7dca4e 100644 --- a/views/admin/licence.phtml +++ b/views/admin/licence.phtml @@ -48,7 +48,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Abonnement'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Abonnement', 'wpsg'); ?></span>
<a class="list-group-item <?php echo (($this->view['subaction'] == 'registerdata')?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=registrierung&subaction=registerdata"><?php echo __('Registrierungsdaten', 'wpsg'); ?></a>
<a class="list-group-item <?php echo (($this->view['subaction'] == 'domaindata')?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=registrierung&subaction=domaindata"><?php echo __('Domainverwaltung', 'wpsg'); ?></a>
<a class="list-group-item <?php echo (($this->view['subaction'] == 'modulactivation')?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=registrierung&subaction=modulactivation"><?php echo __('Modulaktivierung', 'wpsg'); ?></a>
@@ -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 />
@@ -127,7 +127,7 @@ echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=domainDeRegister', 'wpsg-admin-licence-domainDeRegister');
- ?>" class="btn btn-warning btn-sm"><?php echo __('Registrierung aufheben'); ?></a>
+ ?>" class="btn btn-warning btn-sm"><?php echo __('Registrierung aufheben', 'wpsg'); ?></a>
<?php } ?>
</td>
diff --git a/views/admin/loadsavesettings.phtml b/views/admin/loadsavesettings.phtml index 93e7219..868c9e6 100644 --- a/views/admin/loadsavesettings.phtml +++ b/views/admin/loadsavesettings.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php
diff --git a/views/admin/module.phtml b/views/admin/module.phtml index 0f0458b..038b670 100644 --- a/views/admin/module.phtml +++ b/views/admin/module.phtml @@ -14,7 +14,7 @@ <div class="wpsg_modul_search_wrap">
<input id="wpsg_modul_search" type="text" class="wpsg_modul_search" value="<?php echo wpsg_getStr($_COOKIE['wpsg-modulfilter-search']); ?>" />
- <label title="<?php echo __('Wenn aktiviert, werden nur aktive Module angezeigt'); ?>">
+ <label title="<?php echo __('Wenn aktiviert, werden nur aktive Module angezeigt', 'wpsg'); ?>">
<input type="checkbox" <?php echo ((wpsg_isSizedString($_COOKIE['wpsg-modulfilter-check'], 'true'))?'checked="checked"':''); ?> id="wpsg_modul_onlyactive" class="wpsg_modul_onlyactive" />
<span class="glyphicon glyphicon-ok wpsg_modul_onlyactive_glyphicon" aria-hidden="true"></span>
</label>
@@ -132,7 +132,7 @@ <?php if (!wpsg_isTrue($modul_info[$_REQUEST['modul']]['demo_active'])) { ?>
<br />
- [ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=startDemo&modul=<?php echo $_REQUEST['modul']; ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher? Das Modul kann 14 Tage ab heute komplett in vollem Umfang getestet werden.', 'wpsg'); ?>');"><?php echo __('Demo Modus starten'); ?></a> ]
+ [ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=startDemo&modul=<?php echo $_REQUEST['modul']; ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher? Das Modul kann 14 Tage ab heute komplett in vollem Umfang getestet werden.', 'wpsg'); ?>');"><?php echo __('Demo Modus starten', 'wpsg'); ?></a> ]
<?php } ?>
<?php } else { ?>
<br /><span class="wpsg_error"><?php echo __('Ohne Abonnement können Sie dieses Modul nicht verwenden.', 'wpsg'); ?></span>
@@ -144,7 +144,7 @@ <span class="wpsg_error"><?php echo __('Unbekannt', 'wpsg'); ?></span>
<?php } ?>
- <?php echo wpsg_drawForm_TextEnd(__('Abonnement')); ?>
+ <?php echo wpsg_drawForm_TextEnd(__('Abonnement', 'wpsg')); ?>
<?php } ?>
diff --git a/views/admin/pager.phtml b/views/admin/pager.phtml index bba8cc3..b60a03f 100644 --- a/views/admin/pager.phtml +++ b/views/admin/pager.phtml @@ -13,11 +13,11 @@ <?php $offset = 5; ?>
<?php if ($this->view['arFilter']['page'] > 2) { $offset --; ?>
- <li><a onclick="return goPage(1);" href="#" aria-label="<?php echo __('Erste Seite'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-step-backward"></i></span></a></li>
+ <li><a onclick="return goPage(1);" href="#" aria-label="<?php echo __('Erste Seite', 'wpsg'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-step-backward"></i></span></a></li>
<?php } ?>
<?php if ($this->view['arFilter']['page'] > 1) { $offset --; ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-backward"></i></span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite', 'wpsg'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-backward"></i></span></a></li>
<?php } ?>
<?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
@@ -31,11 +31,11 @@ <?php } ?>
<?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-play"></i></span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite', 'wpsg'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-play"></i></span></a></li>
<?php } ?>
<?php if ($this->view['arFilter']['page'] + 2 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['pages']; ?>);" href="#" aria-label="<?php echo __('Letzte Seite'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-step-forward"></i></span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['pages']; ?>);" href="#" aria-label="<?php echo __('Letzte Seite', 'wpsg'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-step-forward"></i></span></a></li>
<?php } ?>
</ul>
diff --git a/views/admin/path.phtml b/views/admin/path.phtml index 8a52742..db0237d 100644 --- a/views/admin/path.phtml +++ b/views/admin/path.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/presentation.phtml b/views/admin/presentation.phtml index 0418ea0..b575d5c 100644 --- a/views/admin/presentation.phtml +++ b/views/admin/presentation.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/seiten.phtml b/views/admin/seiten.phtml index cb7bc23..0b694de 100644 --- a/views/admin/seiten.phtml +++ b/views/admin/seiten.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/shopdata.phtml b/views/admin/shopdata.phtml index cd754c8..3523408 100644 --- a/views/admin/shopdata.phtml +++ b/views/admin/shopdata.phtml @@ -9,7 +9,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/versandzonen.phtml b/views/admin/versandzonen.phtml index 809e98a..76c41e9 100644 --- a/views/admin/versandzonen.phtml +++ b/views/admin/versandzonen.phtml @@ -9,7 +9,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/widerrufsbelehrung.phtml b/views/admin/widerrufsbelehrung.phtml index ac1c355..3534a5a 100644 --- a/views/admin/widerrufsbelehrung.phtml +++ b/views/admin/widerrufsbelehrung.phtml @@ -8,7 +8,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
diff --git a/views/admin/wpml.phtml b/views/admin/wpml.phtml index e1fb45d..df2c08c 100644 --- a/views/admin/wpml.phtml +++ b/views/admin/wpml.phtml @@ -13,7 +13,7 @@ <div class="wpsg_admin_submenu">
<div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
@@ -37,7 +37,7 @@ <p class="info"><?php echo __('Fügt dynamische Inhalte wie Ländernamen, Namen von Varianten etc. zu den String-Übersetzungen von WPML hinzu und ermöglicht unter WPML -> String-Übersetzung die Übersetzung von diesen Inhalten.', 'wpsg'); ?></p>
- <input type="submit" name="wpsg_set_string_translation" class="button" value="<?php echo __('String-Übersetzung füllen'); ?>" />
+ <input type="submit" name="wpsg_set_string_translation" class="button" value="<?php echo __('String-Übersetzung füllen', 'wpsg'); ?>" />
</div>
</div>
diff --git a/views/mods/mod_abo/basket_row.phtml b/views/mods/mod_abo/basket_row.phtml index 0163f12..dfe5581 100644 --- a/views/mods/mod_abo/basket_row.phtml +++ b/views/mods/mod_abo/basket_row.phtml @@ -14,7 +14,7 @@ <?php echo wpsg_translate(__('Verlängerung zu Bestellung #1# (#2# Tage)', 'wpsg'), $this->view['wpsg_mod_abo']['order']['onr'], $this->view['wpsg_mod_abo']['wpsg_mod_abo_durration_menge']); ?>
</div>
<div class="dummyr">
- <?php echo __(' '); ?>
+ <?php echo __(' ', 'wpsg'); ?>
</div>
</div>
\ No newline at end of file diff --git a/views/mods/mod_abo/index.phtml b/views/mods/mod_abo/index.phtml index b726fc0..ff64ad6 100644 --- a/views/mods/mod_abo/index.phtml +++ b/views/mods/mod_abo/index.phtml @@ -91,7 +91,7 @@ <br />
- <?php echo wpsg_drawForm_SubmitButton(__('Abonnement suchen')); ?>
+ <?php echo wpsg_drawForm_SubmitButton(__('Abonnement suchen', 'wpsg')); ?>
</form>
</div>
diff --git a/views/mods/mod_abo/mail_admin_stoprenewal.phtml b/views/mods/mod_abo/mail_admin_stoprenewal.phtml index 9bb7825..4bda001 100644 --- a/views/mods/mod_abo/mail_admin_stoprenewal.phtml +++ b/views/mods/mod_abo/mail_admin_stoprenewal.phtml @@ -6,7 +6,7 @@ ?><?php echo __('Hallo Administrator,', 'wpsg'); ?>
-<?php echo wpsg_translate(__('Der Kunde "#1#" möchte sein Abo für Produkte "#2#" anhalten.'), trim($this->view['oCustomer']->getFirstname().$this->view['oCustomer']->getName()), $this->view['oProduct']->getProductName()); ?>
+<?php echo wpsg_translate(__('Der Kunde "#1#" möchte sein Abo für Produkte "#2#" anhalten.', 'wpsg'), trim($this->view['oCustomer']->getFirstname().$this->view['oCustomer']->getName()), $this->view['oProduct']->getProductName()); ?>
<?php echo wpsg_translate(__('Link zur Ausgangsbestellung: <a href="#1#">#1#</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=view&edit_id='.$this->view['oOrder']->id); ?>
<?php echo wpsg_translate(__('Direkt stoppen und zur Bestellung: <a href="#1#">#1#</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id='.$this->view['oOrder']->id.'&product_key='.$this->view['product_key'].'&do=stop&noheader=1'); ?>
diff --git a/views/mods/mod_abo/mail_admin_stoprenewal_html.phtml b/views/mods/mod_abo/mail_admin_stoprenewal_html.phtml index 3ab6a50..538e322 100644 --- a/views/mods/mod_abo/mail_admin_stoprenewal_html.phtml +++ b/views/mods/mod_abo/mail_admin_stoprenewal_html.phtml @@ -10,7 +10,7 @@ <?php echo __('Hallo Administrator,', 'wpsg'); ?><br />
<br />
-<?php echo wpsg_translate(__('Der Kunde "#1#" möchte sein Abo für Produkte "#2#" anhalten.'), trim($this->view['oCustomer']->getFirstname().$this->view['oCustomer']->getName()), $this->view['oProduct']->getProductName()); ?><br />
+<?php echo wpsg_translate(__('Der Kunde "#1#" möchte sein Abo für Produkte "#2#" anhalten.', 'wpsg'), trim($this->view['oCustomer']->getFirstname().$this->view['oCustomer']->getName()), $this->view['oProduct']->getProductName()); ?><br />
<br />
<?php echo wpsg_translate(__('Link zur Ausgangsbestellung: <a href="#1#">#1#</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=view&edit_id='.$this->view['oOrder']->id); ?><br />
<?php echo wpsg_translate(__('Direkt stoppen und zur Bestellung: <a href="#1#">#1#</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id='.$this->view['oOrder']->id.'&product_key='.$this->view['product_key'].'&do=stop&noheader=1'); ?><br />
diff --git a/views/mods/mod_abo/order_view.phtml b/views/mods/mod_abo/order_view.phtml index f3035dc..1390101 100644 --- a/views/mods/mod_abo/order_view.phtml +++ b/views/mods/mod_abo/order_view.phtml @@ -84,17 +84,17 @@ <?php echo __('Aktiv', 'wpsg'); ?>
- [ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id=<?php echo $_REQUEST['edit_id'] ?>&order_product_id=<?php echo $oOrderProduct->getID(); ?>&do=stop&noheader=1"><?php echo __('Deaktivieren'); ?></a> ]
+ [ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id=<?php echo $_REQUEST['edit_id'] ?>&order_product_id=<?php echo $oOrderProduct->getID(); ?>&do=stop&noheader=1"><?php echo __('Deaktivieren', 'wpsg'); ?></a> ]
<?php } else if ($abo_product_status['status'] === wpsg_mod_abo::STATUS_STOPPED) { ?>
<?php echo __('Inaktiv', 'wpsg'); ?>
- [ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id=<?php echo $_REQUEST['edit_id'] ?>&order_product_id=<?php echo $oOrderProduct->getID(); ?>&do=run&noheader=1"><?php echo __('Aktivieren'); ?></a> ]
+ [ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id=<?php echo $_REQUEST['edit_id'] ?>&order_product_id=<?php echo $oOrderProduct->getID(); ?>&do=run&noheader=1"><?php echo __('Aktivieren', 'wpsg'); ?></a> ]
<?php } ?>
- <?php echo wpsg_drawForm_TextEnd(__('Verlängerung')); ?>
+ <?php echo wpsg_drawForm_TextEnd(__('Verlängerung', 'wpsg')); ?>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
diff --git a/views/mods/mod_abo/overview_row.phtml b/views/mods/mod_abo/overview_row.phtml index 75b57fe..8dc1742 100644 --- a/views/mods/mod_abo/overview_row.phtml +++ b/views/mods/mod_abo/overview_row.phtml @@ -14,7 +14,7 @@ <?php echo wpsg_translate(__('Verlängerung zu Bestellung #1# (#2# Tage)', 'wpsg'), $this->view['wpsg_mod_abo']['order']['onr'], $this->view['wpsg_mod_abo']['wpsg_mod_abo_durration_menge']); ?>
</div>
<div class="dummyr">
- <?php echo __(' '); ?>
+ <?php echo __(' ', 'wpsg'); ?>
</div>
</div>
\ No newline at end of file diff --git a/views/mods/mod_abo/page_abo.phtml b/views/mods/mod_abo/page_abo.phtml index 8f1d061..79cb1a9 100644 --- a/views/mods/mod_abo/page_abo.phtml +++ b/views/mods/mod_abo/page_abo.phtml @@ -76,7 +76,7 @@ <?php if ($aboStatus['status'] === wpsg_mod_abo::STATUS_ACTIVE) { ?>
- <span class="status_activ"><?php echo __('Aktiv'); ?></span>
+ <span class="status_activ"><?php echo __('Aktiv', 'wpsg'); ?></span>
<?php if (strtotime($aboStatus['mail_admin_stop']) > 0) { ?>
@@ -85,13 +85,13 @@ <?php } else { ?>
<?php if (in_array($this->callMod('wpsg_mod_abo', 'getSetting', ['wpsg_mod_abo_autoexpire_customer', $oOrderProduct->getProductId()]), Array(wpsg_mod_abo::CUSTOMER_AUTO_MAIL, wpsg_mod_abo::CUSTOMER_AUTO_DIRECT))) { ?>
- <span class="link_wrap"><a href="<?php echo $this->getUrl(wpsg_ShopController::URL_ABO, 'wpsg_mod_abo', 'stoprenewal', Array('order_id' => $oOrder->id, 'product_key' => $oOrderProduct->getProductKey())); ?>"><?php echo __('Deaktivieren'); ?></a></span>
+ <span class="link_wrap"><a href="<?php echo $this->getUrl(wpsg_ShopController::URL_ABO, 'wpsg_mod_abo', 'stoprenewal', Array('order_id' => $oOrder->id, 'product_key' => $oOrderProduct->getProductKey())); ?>"><?php echo __('Deaktivieren', 'wpsg'); ?></a></span>
<?php } ?>
<?php } ?>
<?php } else if ($aboStatus['status'] === wpsg_mod_abo::STATUS_STOPPED) { ?>
- <span class="status_inactiv"><?php echo __('Inaktiv') ?></span>
+ <span class="status_inactiv"><?php echo __('Inaktiv', 'wpsg') ?></span>
<?php } ?>
</span>
diff --git a/views/mods/mod_abo/settings_edit.phtml b/views/mods/mod_abo/settings_edit.phtml index fc418d1..44e0208 100644 --- a/views/mods/mod_abo/settings_edit.phtml +++ b/views/mods/mod_abo/settings_edit.phtml @@ -134,14 +134,14 @@ 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>
<?php } ?>
</span>
-<?php echo wpsg_drawForm_TextEnd(__('Cron Status')); ?>
+<?php echo wpsg_drawForm_TextEnd(__('Cron Status', 'wpsg')); ?>
<br />
diff --git a/views/mods/mod_amazon_v2/order_done.phtml b/views/mods/mod_amazon_v2/order_done.phtml index 6af6f00..cec5247 100644 --- a/views/mods/mod_amazon_v2/order_done.phtml +++ b/views/mods/mod_amazon_v2/order_done.phtml @@ -14,7 +14,7 @@ <?php if ($view['state'] === 'Completed') { ?>
- <p><?php echo __('Bestellung wurde mit Amazon Payment bezahlt.'); ?></p>
+ <p><?php echo __('Bestellung wurde mit Amazon Payment bezahlt.', 'wpsg'); ?></p>
<?php } else if ($view['state'] === 'Unpayed') { ?>
diff --git a/views/mods/mod_customergroup/index.phtml b/views/mods/mod_customergroup/index.phtml index c529e41..7c00fce 100644 --- a/views/mods/mod_customergroup/index.phtml +++ b/views/mods/mod_customergroup/index.phtml @@ -38,7 +38,7 @@ <?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
- <?php echo wpsg_drawForm_SubmitButton(__('Kundengruppen suchen')); ?><br />
+ <?php echo wpsg_drawForm_SubmitButton(__('Kundengruppen suchen', 'wpsg')); ?><br />
</form>
</div>
@@ -53,13 +53,13 @@ <nav class="pagination_wrap">
<ul class="pagination">
<?php if ($this->view['arFilter']['page'] > 1) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">«</span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite', 'wpsg'); ?>"><span aria-hidden="true">«</span></a></li>
<?php } ?>
<?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
<li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
<?php } ?>
<?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">»</span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite', 'wpsg'); ?>"><span aria-hidden="true">»</span></a></li>
<?php } ?>
</ul>
</nav>
@@ -113,13 +113,13 @@ <nav class="pagination_wrap pagination_wrap_bottom">
<ul class="pagination">
<?php if ($this->view['arFilter']['page'] > 1) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">«</span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite', 'wpsg'); ?>"><span aria-hidden="true">«</span></a></li>
<?php } ?>
<?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
<li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
<?php } ?>
<?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">»</span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite', 'wpsg'); ?>"><span aria-hidden="true">»</span></a></li>
<?php } ?>
</ul>
</nav>
diff --git a/views/mods/mod_deliverynote/settings_edit.phtml b/views/mods/mod_deliverynote/settings_edit.phtml index deae4a0..0331c8f 100644 --- a/views/mods/mod_deliverynote/settings_edit.phtml +++ b/views/mods/mod_deliverynote/settings_edit.phtml @@ -61,9 +61,9 @@ <div class="row">
<div class="col-md-4">
<div class="align-buttons">
- <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-left '.$alignLeft.'" name="wpsg_mod_deliverynote_logo_position_left" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo linksbündig ausrichten").'">
- <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-center '.$alignCenter.'" name="wpsg_mod_deliverynote_logo_position_center" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo zentrieren").'">
- <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-right '.$alignRight.' '.$defaultAlign.'" name="wpsg_mod_deliverynote_logo_position_right" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo rechtsbündig ausrichten").'">
+ <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-left '.$alignLeft.'" name="wpsg_mod_deliverynote_logo_position_left" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo linksbündig ausrichten", 'wpsg').'">
+ <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-center '.$alignCenter.'" name="wpsg_mod_deliverynote_logo_position_center" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo zentrieren", 'wpsg').'">
+ <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-right '.$alignRight.' '.$defaultAlign.'" name="wpsg_mod_deliverynote_logo_position_right" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo rechtsbündig ausrichten", 'wpsg').'">
</div>
</div>
<div class="col-md-8 logo-transparency">
diff --git a/views/mods/mod_discount/productgroups_addedit_sidebar.phtml b/views/mods/mod_discount/productgroups_addedit_sidebar.phtml index d6b51f6..b1def1a 100644 --- a/views/mods/mod_discount/productgroups_addedit_sidebar.phtml +++ b/views/mods/mod_discount/productgroups_addedit_sidebar.phtml @@ -6,7 +6,7 @@ ?>
<?php /* Rabatt START */ ?>
-<?php echo wpsg_drawForm_AdminboxStart(__('Produktgruppen Rabatt')); ?>
+<?php echo wpsg_drawForm_AdminboxStart(__('Produktgruppen Rabatt', 'wpsg')); ?>
<div class="inside">
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_discount[discount_aktiv]', __('Aktion aktiv', 'wpsg'), $this->view['wpsg_mod_discount']['data'][0]); ?>
diff --git a/views/mods/mod_export/fields.phtml b/views/mods/mod_export/fields.phtml index c731984..8861505 100644 --- a/views/mods/mod_export/fields.phtml +++ b/views/mods/mod_export/fields.phtml @@ -16,7 +16,7 @@ <th class="wpsg_mod_export_col_value"><?php echo __('Wert', 'wpsg'); ?></th>
<th class="wpsg_mod_export_col_format"><?php echo __('Format', 'wpsg'); ?></th>
- <th style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_XML)?'table-cell':'none'); ?>;" title="<?php echo __('Feld im XML als Attribut exportieren', 'wpsg'); ?>" class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_XML; ?> wpsg_mod_export_col_att"><?php echo __('Att'); ?></th>
+ <th style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_XML)?'table-cell':'none'); ?>;" title="<?php echo __('Feld im XML als Attribut exportieren', 'wpsg'); ?>" class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_XML; ?> wpsg_mod_export_col_att"><?php echo __('Att', 'wpsg'); ?></th>
<th style="display:<?php echo (($this->view['profil']['format'] != wpsg_mod_export::FORMAT_XML)?'table-cell; padding:0px':'none'); ?>;" class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_CSV; ?>"> </th>
<th class="wpsg_mod_export_col_remove">
diff --git a/views/mods/mod_export/order_index_tab.phtml b/views/mods/mod_export/order_index_tab.phtml index 096f2e2..c7ace13 100644 --- a/views/mods/mod_export/order_index_tab.phtml +++ b/views/mods/mod_export/order_index_tab.phtml @@ -14,7 +14,7 @@ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_export_profile[]', $p['name'], false, array('value' => $p['id'], 'noHidden' => true)); ?>
<?php } ?>
- <br /><?php echo wpsg_drawForm_SubmitButton(__('Export starten')); ?>
+ <br /><?php echo wpsg_drawForm_SubmitButton(__('Export starten', 'wpsg')); ?>
</div>
</div>
diff --git a/views/mods/mod_export/product_index_tab.phtml b/views/mods/mod_export/product_index_tab.phtml index 493198d..27df2a9 100644 --- a/views/mods/mod_export/product_index_tab.phtml +++ b/views/mods/mod_export/product_index_tab.phtml @@ -20,7 +20,7 @@ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_export_profile[]', $p['name'], false, array('value' => $p['id'], 'noHidden' => true)); ?>
<?php } ?>
- <br /><?php echo wpsg_drawForm_SubmitButton(__('Export starten')); ?>
+ <br /><?php echo wpsg_drawForm_SubmitButton(__('Export starten', 'wpsg')); ?>
</div>
</div>
diff --git a/views/mods/mod_gutschein/add.phtml b/views/mods/mod_gutschein/add.phtml index af992f7..a3c19b9 100644 --- a/views/mods/mod_gutschein/add.phtml +++ b/views/mods/mod_gutschein/add.phtml @@ -23,7 +23,7 @@ <?php wpsg_drawForm_AdminboxStart(); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_value', __('Betrag', 'wpsg'), wpsg_ff(@$this->view['mod_gutschein']['value'])); ?>
- <?php echo wpsg_drawForm_Input(false, __('Bereits verwendet'), wpsg_ff($used), ['field_id' => 'wpsg_voucher_used', 'readonly' => true]); ?>
+ <?php echo wpsg_drawForm_Input(false, __('Bereits verwendet', 'wpsg'), wpsg_ff($used), ['field_id' => 'wpsg_voucher_used', 'readonly' => true]); ?>
<div style="margin-top:-15px;">
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_gutschein_coupon', __('Als Wertgutschein behandeln', 'wpsg'), @$this->view['mod_gutschein']['coupon']); ?>
diff --git a/views/mods/mod_gutschein/index.phtml b/views/mods/mod_gutschein/index.phtml index a0ec2bb..0436ba5 100644 --- a/views/mods/mod_gutschein/index.phtml +++ b/views/mods/mod_gutschein/index.phtml @@ -39,7 +39,7 @@ <?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), stripslashes(wpsg_getStr($this->view['arFilter']['s']))); ?>
- <?php echo wpsg_drawForm_SubmitButton(__('Gutscheine suchen')); ?><br />
+ <?php echo wpsg_drawForm_SubmitButton(__('Gutscheine suchen', 'wpsg')); ?><br />
<input type="hidden" id="filterstatus" name="filter[status]" value="<?php echo @$this->view['arFilter']['status']; ?>" />
</form>
diff --git a/views/mods/mod_kundenverwaltung/edit.phtml b/views/mods/mod_kundenverwaltung/edit.phtml index 648dd35..c3df1ac 100644 --- a/views/mods/mod_kundenverwaltung/edit.phtml +++ b/views/mods/mod_kundenverwaltung/edit.phtml @@ -103,7 +103,7 @@ <?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
<?php echo wpsg_drawForm_Input('ustidnr', __('UStIdNr.', 'wpsg'), @$this->view['data']['ustidnr']); ?>
<?php } ?>
- <?php echo wpsg_drawForm_Select('status', __('Status', 'wpsg'), ['1' => __('Aktiv', 'wpsg'), '0' => __('Inaktiv', 'wpsg'), '-1' => __('Anonymisiert')], @$this->view['data']['status'], array()); ?>
+ <?php echo wpsg_drawForm_Select('status', __('Status', 'wpsg'), ['1' => __('Aktiv', 'wpsg'), '0' => __('Inaktiv', 'wpsg'), '-1' => __('Anonymisiert', 'wpsg')], @$this->view['data']['status'], array()); ?>
<?php echo wpsg_drawForm_Checkbox('info-mail', __('Mail bei Statusänderung', 'wpsg'), '', array()); ?>
<?php echo wpsg_drawForm_Textarea('comment', __('Kundenkommentar', 'wpsg'), @$this->view['data']['comment']); ?>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
diff --git a/views/mods/mod_kundenverwaltung/index.phtml b/views/mods/mod_kundenverwaltung/index.phtml index f5f5253..07ef1e7 100644 --- a/views/mods/mod_kundenverwaltung/index.phtml +++ b/views/mods/mod_kundenverwaltung/index.phtml @@ -70,7 +70,7 @@ <?php } ?>
- <?php echo wpsg_drawForm_SubmitButton(__('Kunden suchen')); ?><br />
+ <?php echo wpsg_drawForm_SubmitButton(__('Kunden suchen', 'wpsg')); ?><br />
</form>
</div>
@@ -91,7 +91,7 @@ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_export_profile[]', $p['name'], false, array('value' => $p['id'], 'noHidden' => true)); ?>
<?php } ?>
- <br /><?php echo wpsg_drawForm_SubmitButton(__('Export starten')); ?>
+ <br /><?php echo wpsg_drawForm_SubmitButton(__('Export starten', 'wpsg')); ?>
</div>
</div>
diff --git a/views/mods/mod_kundenverwaltung/index_setAccount.phtml b/views/mods/mod_kundenverwaltung/index_setAccount.phtml index f5ebc2e..99f485b 100644 --- a/views/mods/mod_kundenverwaltung/index_setAccount.phtml +++ b/views/mods/mod_kundenverwaltung/index_setAccount.phtml @@ -35,7 +35,7 @@ <div class="col-lg-4">
<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld (Zielkunde)', 'wpsg'), wpsg_getStr($_REQUEST['filter']['s'])); ?>
- <?php echo wpsg_drawForm_SubmitButton(__('Kunden suchen')); ?><br />
+ <?php echo wpsg_drawForm_SubmitButton(__('Kunden suchen', 'wpsg')); ?><br />
</div>
</div>
diff --git a/views/mods/mod_kundenverwaltung/register.phtml b/views/mods/mod_kundenverwaltung/register.phtml index d2967dd..26e738e 100644 --- a/views/mods/mod_kundenverwaltung/register.phtml +++ b/views/mods/mod_kundenverwaltung/register.phtml @@ -390,7 +390,7 @@ <div class="wpsg_checkoutblock">
<label class="recaptcha_v2_checkout ">
- <?php echo __('SPAM Schutz Abfrage'); ?> <span class="wpsg_required">*</span>:
+ <?php echo __('SPAM Schutz Abfrage', 'wpsg'); ?> <span class="wpsg_required">*</span>:
<?php if ($this->get_option('wpsg_mod_kundenverwaltung_recaptcha_dsgvo_layer') != '1') { ?>
<div class="g-recaptcha" data-sitekey="<?php echo $this->get_option('wpsg_mod_kundenveraltung_recaptcha_key'); ?>"></div>
diff --git a/views/mods/mod_legaltexts/settings_edit.phtml b/views/mods/mod_legaltexts/settings_edit.phtml index 5437ef4..9b3c7ec 100644 --- a/views/mods/mod_legaltexts/settings_edit.phtml +++ b/views/mods/mod_legaltexts/settings_edit.phtml @@ -11,7 +11,7 @@ <label class="bg-info mark <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_ITRECHT)?'open':''); ?>" title="<?php echo __('Premiumpartner', 'itrecht'); ?>">
<input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_ITRECHT)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_ITRECHT; ?>" />
- <span class="name"><?php echo __('IT-Recht Kanzlei München') ?></span>
+ <span class="name"><?php echo __('IT-Recht Kanzlei München', 'wpsg') ?></span>
<span class="grow"></span>
<span class="text-info glyphicon glyphicon-star-empty" aria-hidden="true"></span>
@@ -22,7 +22,7 @@ <label class="<?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS)?'open':''); ?>">
<input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS; ?>" />
- <span class="name"><?php echo __('Protected Shops') ?></span>
+ <span class="name"><?php echo __('Protected Shops', 'wpsg') ?></span>
</label>
@@ -31,7 +31,7 @@ <label class="<?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND)?'open':''); ?>">
<input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND; ?>" />
- <span class="name"><?php echo __('Händlerbund') ?></span>
+ <span class="name"><?php echo __('Händlerbund', 'wpsg') ?></span>
</label>
diff --git a/views/mods/mod_ordercondition/list.phtml b/views/mods/mod_ordercondition/list.phtml index 0a242c9..00f5535 100644 --- a/views/mods/mod_ordercondition/list.phtml +++ b/views/mods/mod_ordercondition/list.phtml @@ -108,7 +108,7 @@ jQuery('#oc_typ_<?php echo $oc['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
type: 'select',
- data: <?php echo wpsg_prepare_for_inlineEdit(array('0' => __('Inaktiv', 'wpsg'), '1' => __('Jede Bestellung', 'wpsg'), '2' => __('Bestimmte Produkte', 'wpsg'), '3' => __('Bestimmte Versandarten'))); ?>,
+ data: <?php echo wpsg_prepare_for_inlineEdit(array('0' => __('Inaktiv', 'wpsg'), '1' => __('Jede Bestellung', 'wpsg'), '2' => __('Bestimmte Produkte', 'wpsg'), '3' => __('Bestimmte Versandarten', 'wpsg'))); ?>,
submitdata: {
field: 'typ',
oc_id: '<?php echo $oc['id']; ?>'
diff --git a/views/mods/mod_orderupload/product_addedit_content.phtml b/views/mods/mod_orderupload/product_addedit_content.phtml index e79bbb9..e70bbd5 100644 --- a/views/mods/mod_orderupload/product_addedit_content.phtml +++ b/views/mods/mod_orderupload/product_addedit_content.phtml @@ -10,12 +10,12 @@ <?php echo wpsg_drawForm_AdminboxStart(__('Bestellupload', 'wpsg')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_set', __('Bestellupload ermöglichen'), (($this->view['wpsg_mod_orderupload']['set'] > 0)?true:false)); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_set', __('Bestellupload ermöglichen', 'wpsg'), (($this->view['wpsg_mod_orderupload']['set'] > 0)?true:false)); ?>
<div class="wpsg_mod_orderupload_set_1" style="<?php echo (($this->view['wpsg_mod_orderupload']['set'] > 0)?'display:block;':'display:none;'); ?>">
- <?php echo wpsg_drawForm_Input('wpsg_mod_orderupload[set]', __('Maximale Anzahl an Uploads'), $this->view['wpsg_mod_orderupload']['set']); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload[mandatory]', __('Pflichtfeld'), $this->view['wpsg_mod_orderupload']['mandatory']); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_orderupload[set]', __('Maximale Anzahl an Uploads', 'wpsg'), $this->view['wpsg_mod_orderupload']['set']); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload[mandatory]', __('Pflichtfeld', 'wpsg'), $this->view['wpsg_mod_orderupload']['mandatory']); ?>
</div>
diff --git a/views/mods/mod_paypalapi/settings_edit.phtml b/views/mods/mod_paypalapi/settings_edit.phtml index b1f62ae..510ba2d 100644 --- a/views/mods/mod_paypalapi/settings_edit.phtml +++ b/views/mods/mod_paypalapi/settings_edit.phtml @@ -22,7 +22,7 @@ <br />
-<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_currency', __('Währungscode (Standard: EUR)'), $this->get_option('wpsg_mod_paypalapi_currency'), array('help' => 'wpsg_mod_paypal_currency')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_currency', __('Währungscode (Standard: EUR)', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_currency'), array('help' => 'wpsg_mod_paypal_currency')); ?>
<br />
diff --git a/views/mods/mod_printshop/producttemplate.phtml b/views/mods/mod_printshop/producttemplate.phtml index e504ea4..ed8ad94 100644 --- a/views/mods/mod_printshop/producttemplate.phtml +++ b/views/mods/mod_printshop/producttemplate.phtml @@ -253,7 +253,7 @@ <?php $stl = 0; $stl = $this->callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($this->view['data']['product_key'])) ?>
<?php if (wpsg_isSizedInt($stl)) { ?>
- <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
+ <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.', 'wpsg'); ?></a>
<?php } ?>
diff --git a/views/mods/mod_printshop/produkt_addedit_content.phtml b/views/mods/mod_printshop/produkt_addedit_content.phtml index 3d8805f..9771e0a 100644 --- a/views/mods/mod_printshop/produkt_addedit_content.phtml +++ b/views/mods/mod_printshop/produkt_addedit_content.phtml @@ -34,11 +34,11 @@ <?php echo wpsg_drawForm_AdminboxStart(__('Druckereiprodukt', 'wpsg')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_printshop[set]', __('Produkt als Flächenprodukt behandeln'), $view['set']); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_printshop[set]', __('Produkt als Flächenprodukt behandeln', 'wpsg'), $view['set']); ?>
<div class="wpsg_mod_printshop wpsg_mod_printshop_1" style="display:none;">
- <?php echo wpsg_drawForm_Select('wpsg_mod_printshop[mode]', __('Modus'), $arMode, $view['mode']); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_mod_printshop[mode]', __('Modus', 'wpsg'), $arMode, $view['mode']); ?>
<br />
@@ -118,13 +118,13 @@ <div class="wpsg_mod_printshop_mode wpsg_mod_printshop_mode_<?php echo wpsg_mod_printshop::MODE_LFM; ?>">
- <?php echo wpsg_drawForm_Input('wpsg_mod_printshop[width]', __('Breite für Preisberechnung'), wpsg_ff($view['width'], false, true, 0), ['input_class' => 'wpsg_mod_printshop_input_same']); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_printshop[width]', __('Breite für Preisberechnung', 'wpsg'), wpsg_ff($view['width'], false, true, 0), ['input_class' => 'wpsg_mod_printshop_input_same']); ?>
</div>
<div class="wpsg_mod_printshop_mode wpsg_mod_printshop_mode_<?php echo wpsg_mod_printshop::MODE_LFM_SELECT; ?>">
- <?php echo wpsg_drawForm_Input('wpsg_mod_printshop[width]', __('Breite für Preisberechnung'), wpsg_ff($view['width'], false, true, 0), ['input_class' => 'wpsg_mod_printshop_input_same']); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_printshop[width]', __('Breite für Preisberechnung', 'wpsg'), wpsg_ff($view['width'], false, true, 0), ['input_class' => 'wpsg_mod_printshop_input_same']); ?>
<br />
@@ -176,8 +176,8 @@ <div class="wpsg_mod_printshop_productupload_set_1" style="<?php echo (($view['wpsg_mod_printshop[productupload_set]'] === true)?'display:block;':'display:none;'); ?>">
- <?php echo wpsg_drawForm_Input('wpsg_mod_printshop[productupload_length]', __('Maximale Anzahl an Uploads'), $view['productupload_length']); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_printshop[productupload_mandatory]', __('Pflichtfeld'), $view['productupload_mandatory']); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_printshop[productupload_length]', __('Maximale Anzahl an Uploads', 'wpsg'), $view['productupload_length']); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_printshop[productupload_mandatory]', __('Pflichtfeld', 'wpsg'), $view['productupload_mandatory']); ?>
</div>
diff --git a/views/mods/mod_productgroups/index.phtml b/views/mods/mod_productgroups/index.phtml index b5cdc02..274c25a 100644 --- a/views/mods/mod_productgroups/index.phtml +++ b/views/mods/mod_productgroups/index.phtml @@ -43,7 +43,7 @@ <?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
- <?php echo wpsg_drawForm_SubmitButton(__('Produktgruppen suchen')); ?><br />
+ <?php echo wpsg_drawForm_SubmitButton(__('Produktgruppen suchen', 'wpsg')); ?><br />
</form>
</div>
@@ -59,13 +59,13 @@ <nav class="pagination_wrap">
<ul class="pagination">
<?php if ($this->view['arFilter']['page'] > 1) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">«</span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite', 'wpsg'); ?>"><span aria-hidden="true">«</span></a></li>
<?php } ?>
<?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
<li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
<?php } ?>
<?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">»</span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite', 'wpsg'); ?>"><span aria-hidden="true">»</span></a></li>
<?php } ?>
</ul>
</nav>
@@ -139,13 +139,13 @@ <nav class="pagination_wrap pagination_wrap_bottom">
<ul class="pagination">
<?php if ($this->view['arFilter']['page'] > 1) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">«</span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite', 'wpsg'); ?>"><span aria-hidden="true">«</span></a></li>
<?php } ?>
<?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
<li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
<?php } ?>
<?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">»</span></a></li>
+ <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite', 'wpsg'); ?>"><span aria-hidden="true">»</span></a></li>
<?php } ?>
</ul>
</nav>
diff --git a/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml b/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml index d37e654..8fa7067 100644 --- a/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml +++ b/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml @@ -8,7 +8,7 @@ <?php /* Lagerbestand START */ ?>
<?php if ($this->hasMod('wpsg_mod_stock')) { ?>
-<?php echo wpsg_drawForm_AdminboxStart(__('Produktgruppen Lagerbestand')); ?>
+<?php echo wpsg_drawForm_AdminboxStart(__('Produktgruppen Lagerbestand', 'wpsg')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_productgroups[stock_value]', __('Bestand', 'wpsg'), wpsg_hspc(@$this->view['wpsg_mod_productgroups']['data']['stock_value']), array()); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productgroups[stock_aktiv]', __('Lagerbestand zählen', 'wpsg'), @$this->view['wpsg_mod_productgroups']['data']['stock_aktiv'], array()); ?>
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index 57f7ddb..d85d397 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -33,7 +33,7 @@ <th class="col_id"><?php echo __('Id', 'wpsg'); ?></th>
<th class="col1"><?php echo __('Name', 'wpsg'); ?></th>
- <th class="col_shortname"><?php echo __('Kurzname'); ?></th>
+ <th class="col_shortname"><?php echo __('Kurzname', 'wpsg'); ?></th>
<?php $colspan += 3; ?>
<?php if (wpsg_isSizedInt($this->view['product_id'])) { $colspan += 2; ?>
diff --git a/views/mods/mod_productvariants/settings_edit.phtml b/views/mods/mod_productvariants/settings_edit.phtml index 0f669e3..5495a19 100644 --- a/views/mods/mod_productvariants/settings_edit.phtml +++ b/views/mods/mod_productvariants/settings_edit.phtml @@ -19,7 +19,7 @@ </div>
<div id="tab2" role="tabpanel" class="tab-pane">
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvariants_price', __('Preis der Variation direkt anzeigen'), $this->get_option('wpsg_mod_productvariants_price')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvariants_price', __('Preis der Variation direkt anzeigen', 'wpsg'), $this->get_option('wpsg_mod_productvariants_price')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_vp_detailview', __('Erweiterte Variantenanzeige aktivieren', 'wpsg'), $this->get_option('wpsg_vp_detailview'), array('help' => 'wpsg_vp_detailview')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_vp_replaceanr', __('Produktartikelnummer ersetzen', 'wpsg'), $this->get_option('wpsg_vp_replaceanr'), array('hint' => __('Ersetzt die Produktartikelnummer durch die zusammengesetzte Artikelnummern der Varianten.', 'wpsg'), 'help' => 'wpsg_vp_replaceanr')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_vp_product_stock_nocalc', __('Produktbestand nach Kauf nicht berechnen', 'wpsg'), $this->get_option('wpsg_vp_product_stock_nocalc'), [
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_rechnungen/order_view_row.phtml b/views/mods/mod_rechnungen/order_view_row.phtml index 3bafd25..61bb3f0 100644 --- a/views/mods/mod_rechnungen/order_view_row.phtml +++ b/views/mods/mod_rechnungen/order_view_row.phtml @@ -34,7 +34,7 @@ <?php if ($invoice_amount > 0) { ?>
<div style="display:flex; flex-direction:row; gap:0.5rem; font-weight:normal; align-items:center;">
- <span><?php echo __('Menge'); ?></span>
+ <span><?php echo __('Menge', 'wpsg'); ?></span>
<input form="invoice_form" type="hidden" name="invoice_products[<?php echo $p['order_product_id']; ?>][set]" value="0" class="" />
<input checked="checked" form="invoice_form" type="checkbox" class="wpsg_mod_deliverynote_product wpsg_check_amount_invoice" name="invoice_products[<?php echo $p['order_product_id']; ?>][set]" value="1" style="margin:0;" />
@@ -61,7 +61,7 @@ <?php if ($storno_amount > 0) { ?>
<div style="display:flex; flex-direction:row; gap:0.5rem; font-weight:normal; align-items:center;">
- <span><?php echo __('Menge'); ?></span>
+ <span><?php echo __('Menge', 'wpsg'); ?></span>
<input form="storno_form" type="hidden" name="storno_products[<?php echo $p['order_product_id']; ?>][set]" value="0" class="" />
<input form="storno_form" type="checkbox" class="wpsg_mod_deliverynote_product wpsg_check_amount_storno" name="storno_products[<?php echo $p['order_product_id']; ?>][set]" value="1" style="margin:0;" />
diff --git a/views/mods/mod_rechnungen/settings_edit.phtml b/views/mods/mod_rechnungen/settings_edit.phtml index 60d7583..73aa609 100644 --- a/views/mods/mod_rechnungen/settings_edit.phtml +++ b/views/mods/mod_rechnungen/settings_edit.phtml @@ -87,9 +87,9 @@ <div class="row">
<div class="col-md-4">
<div class="align-buttons">
- <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-left '.$alignLeft.'" name="wpsg_rechnungen_logo_position_left" value="" onclick="handleLogoAlignClick(jQuery(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo linksbündig ausrichten").'">
- <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-center '.$alignCenter.'" name="wpsg_rechnungen_logo_position_center" value="" onclick="handleLogoAlignClick(jQuery(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo zentrieren").'">
- <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-right '.$alignRight.' '.$defaultAlign.'" name="wpsg_rechnungen_logo_position_right" value="" onclick="handleLogoAlignClick(jQuery(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo rechtsbündig ausrichten").'">
+ <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-left '.$alignLeft.'" name="wpsg_rechnungen_logo_position_left" value="" onclick="handleLogoAlignClick(jQuery(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo linksbündig ausrichten", 'wpsg').'">
+ <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-center '.$alignCenter.'" name="wpsg_rechnungen_logo_position_center" value="" onclick="handleLogoAlignClick(jQuery(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo zentrieren", 'wpsg').'">
+ <input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-right '.$alignRight.' '.$defaultAlign.'" name="wpsg_rechnungen_logo_position_right" value="" onclick="handleLogoAlignClick(jQuery(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo rechtsbündig ausrichten", 'wpsg').'">
</div>
</div>
<div class="col-md-8 logo-transparency">
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..fc784e7 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 "\n"; ?> <?php echo wpsg_pad_left(__("--------------------"), 15) ?> +<?php echo wpsg_pad_left(__('Vertrag widerrufen:', 'wpsg').' ', 15); ?> <?php echo $revo_url; ?> +<?php echo "\n"; ?> <?php echo wpsg_pad_left(__("--------------------", 'wpsg'), 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"> </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..dd62db7 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 __('Viele Grüße', 'wpsg'); ?><br> <?php echo __(\wpsg_ShopController::getShop()->get_option('wpsg_shopdata_name'), 'wpsgRevocation'); ?> - - <?php echo __('Team', 'wpsgRevocation'); ?> + - <?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..4e5c485 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'), 'wpsgRevocation'); ?> - <?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..63c9166 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 __('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..628cc1b 100644 --- a/views/mods/mod_revocation/page_form.phtml +++ b/views/mods/mod_revocation/page_form.phtml @@ -66,7 +66,7 @@ <div class="label"><?php echo \__('Widerrufsgrund', 'wpsgRevocation'); ?></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 } ?> 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/mods/mod_stock/product_addedit_content.phtml b/views/mods/mod_stock/product_addedit_content.phtml index ededa28..e48ed6f 100644 --- a/views/mods/mod_stock/product_addedit_content.phtml +++ b/views/mods/mod_stock/product_addedit_content.phtml @@ -35,8 +35,8 @@ __('Voreinstellung (#1#)', 'wpsg'),
(($this->get_option('wpsg_vp_product_stock_nocalc') === '1')?'nicht berechnen':'berechnen')
),
- '2' => __('berechnen'),
- '1' => __('nicht berechnen')
+ '2' => __('berechnen', 'wpsg'),
+ '1' => __('nicht berechnen', 'wpsg')
], $oProduct->getMeta('wpsg_vp_product_stock_nocalc'), [
'hint' => __('Ist hier "berechnen" eingestellt, wird beim Ändern des Bestandes einer Variante der Bestand im Produkt aus den Varianten ermittelt. (Lagerbestand im Produkt = Bestand(Variante 1) + Bestand(Variante 2) + ... )', 'wpsg')
]); ?>
@@ -46,8 +46,8 @@ __('Voreinstellung (#1#)', 'wpsg'),
(($this->get_option('wpsg_vp_product_stock_varinotchange') === '1')?'nicht verringern':'verringern')
),
- '2' => __('verringern'),
- '1' => __('nicht verringern')
+ '2' => __('verringern', 'wpsg'),
+ '1' => __('nicht verringern', 'wpsg')
], $oProduct->getMeta('wpsg_vp_product_stock_varinotchange'), [
'hint' => __('Ist hier "nicht verringern" aktiviert, so wird der Bestand in der Variante beim Kauf nicht reduziert.', 'wpsg')
]); ?>
@@ -57,8 +57,8 @@ __('Voreinstellung (#1#)', 'wpsg'),
(($this->get_option('wpsg_vp_product_stock_display') === '1')?'Produktbestand':'Variantenbestand')
),
- '2' => __('Variantenbestand'),
- '1' => __('Produktbestand')
+ '2' => __('Variantenbestand', 'wpsg'),
+ '1' => __('Produktbestand', 'wpsg')
], $oProduct->getMeta('wpsg_vp_product_stock_display'), [
'hint' => __('Bestimmt ob der Variantenbestand (Produktbestand + Variantenbestand) oder nur der Produktbestand im Frontend angezeigt werden soll.', 'wpsg')
]); ?>
diff --git a/views/mods/mod_stock/stockmail.phtml b/views/mods/mod_stock/stockmail.phtml index a124582..36585e8 100644 --- a/views/mods/mod_stock/stockmail.phtml +++ b/views/mods/mod_stock/stockmail.phtml @@ -15,9 +15,9 @@ echo wpsg_translate(__('Eine Produktvariation hat das Erreichen des minimalen Lagerbestands am #1# um #2# Uhr gemeldet.', 'wpsg'), date('d.m.Y'), date('H:i'));
echo "\r\n";
echo "\r\n";
- echo __("Produkt").': '.$GLOBALS['stockemail_prodvariant']['produkt']['id'].' '.$GLOBALS['stockemail_prodvariant']['produkt']['name'];
+ echo __("Produkt", 'wpsg').': '.$GLOBALS['stockemail_prodvariant']['produkt']['id'].' '.$GLOBALS['stockemail_prodvariant']['produkt']['name'];
echo "\r\n";
- echo __("Produktvariation").': '.$GLOBALS['stockemail_prodvariant']['variant']['id'].' '.$GLOBALS['stockemail_prodvariant']['variant']['name'];
+ echo __("Produktvariation", 'wpsg').': '.$GLOBALS['stockemail_prodvariant']['variant']['id'].' '.$GLOBALS['stockemail_prodvariant']['variant']['name'];
echo "\r\n";
}
@@ -29,7 +29,7 @@ foreach ((array)$this->basket->arProdukte as $p)
$id = $p['id'];
echo ('');
- echo __('Produkt').': '.$p['id'].' '.$p['name'];
+ echo __('Produkt', 'wpsg').': '.$p['id'].' '.$p['name'];
}
?>
diff --git a/views/mods/mod_stock/stockmail_html.phtml b/views/mods/mod_stock/stockmail_html.phtml index 75b3de6..c56dab2 100644 --- a/views/mods/mod_stock/stockmail_html.phtml +++ b/views/mods/mod_stock/stockmail_html.phtml @@ -18,9 +18,9 @@ echo wpsg_translate(__('Eine Produktvariation hat das Erreichen des minimalen Lagerbestands am #1# um #2# Uhr gemeldet.', 'wpsg'), date('d.m.Y'), date('H:i'));
echo '<br />';
- echo __("Produkt").': '.$GLOBALS['stockemail_prodvariant']['produkt']['id'].' '.$GLOBALS['stockemail_prodvariant']['produkt']['name'].' ';
+ echo __("Produkt", 'wpsg').': '.$GLOBALS['stockemail_prodvariant']['produkt']['id'].' '.$GLOBALS['stockemail_prodvariant']['produkt']['name'].' ';
echo '<br />';
- echo __("Produktvariation").': '.$GLOBALS['stockemail_prodvariant']['variant']['id'].' '.$GLOBALS['stockemail_prodvariant']['variant']['name'];
+ echo __("Produktvariation", 'wpsg').': '.$GLOBALS['stockemail_prodvariant']['variant']['id'].' '.$GLOBALS['stockemail_prodvariant']['variant']['name'];
}
else
@@ -31,7 +31,7 @@ foreach ((array)$this->basket->arProdukte as $p)
$id = $p['id'];
echo ('<br />');
- echo __('Produkt').': '.$p['id'].' '.$p['name'];
+ echo __('Produkt', 'wpsg').': '.$p['id'].' '.$p['name'];
}
?>
diff --git a/views/mods/mod_ticket/product_addedit_content.phtml b/views/mods/mod_ticket/product_addedit_content.phtml index 2d1870d..38798cd 100644 --- a/views/mods/mod_ticket/product_addedit_content.phtml +++ b/views/mods/mod_ticket/product_addedit_content.phtml @@ -156,7 +156,7 @@ </td> <td> <template v-if="t.autoticket_id > 0"> - <a title="<?php echo __('Termine dieses Serientermins anzeigen', 'wpsg'); ?>" href="#" @click.prevent="display_autoTermin(t.autoticket_id)"><?php echo __('Serientermin'); ?> #{{t.autoticket_id}}</a> + <a title="<?php echo __('Termine dieses Serientermins anzeigen', 'wpsg'); ?>" href="#" @click.prevent="display_autoTermin(t.autoticket_id)"><?php echo __('Serientermin', 'wpsg'); ?> #{{t.autoticket_id}}</a> </template> </td> </tr> diff --git a/views/mods/mod_weight/basket_row_end.phtml b/views/mods/mod_weight/basket_row_end.phtml index a320397..21d98b5 100644 --- a/views/mods/mod_weight/basket_row_end.phtml +++ b/views/mods/mod_weight/basket_row_end.phtml @@ -13,6 +13,6 @@ <?php echo wpsg_ff($this->view['wpsg_mod_weight']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?>
</div>
<div class="value">
- <?php echo __(' '); ?>
+ <?php echo __(' ', 'wpsg'); ?>
</div>
</div>
\ No newline at end of file diff --git a/views/mods/mod_weight/overview_row_end.phtml b/views/mods/mod_weight/overview_row_end.phtml index de38b35..84a3d83 100644 --- a/views/mods/mod_weight/overview_row_end.phtml +++ b/views/mods/mod_weight/overview_row_end.phtml @@ -13,6 +13,6 @@ <?php echo wpsg_ff($this->view['wpsg_mod_weight']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?>
</div>
<div class="value">
- <?php echo __(' '); ?>
+ <?php echo __(' ', 'wpsg'); ?>
</div>
</div>
\ No newline at end of file diff --git a/views/order/backendEdit/addVoucher.phtml b/views/order/backendEdit/addVoucher.phtml index 9e87b25..890dcca 100644 --- a/views/order/backendEdit/addVoucher.phtml +++ b/views/order/backendEdit/addVoucher.phtml @@ -60,7 +60,7 @@ <?php echo wpsg_drawForm_Input('be_voucher_code', __('Code (Optional)', 'wpsg'), @$voucher['code']); ?>
<?php echo wpsg_drawForm_Input('be_voucher_id', __('Gutschein ID', 'wpsg'), @$voucher['id']); ?>
<?php echo wpsg_drawForm_Input('be_voucher_amount', wpsg_translate(__('Gutscheinwert in #1# (#2#) oder % ', 'wpsg'), $this->get_option('wpsg_currency'), $strBN), $strVal); ?>
- <?php echo wpsg_drawForm_Checkbox('be_voucher_coupon', __('Wertgutschein'), (($voucher['type'] === 'coupon')?'1':'0')); ?>
+ <?php echo wpsg_drawForm_Checkbox('be_voucher_coupon', __('Wertgutschein', 'wpsg'), (($voucher['type'] === 'coupon')?'1':'0')); ?>
</form>
diff --git a/views/order/index.phtml b/views/order/index.phtml index 7b8b8ed..398a04f 100644 --- a/views/order/index.phtml +++ b/views/order/index.phtml @@ -71,7 +71,7 @@ <?php if ($this->hasMod('wpsg_mod_productgroups') && $this->get_option('wpsg_mod_productgroups_order_filter') === '1') { ?>
<?php $arProductgroups = $this->callMod('wpsg_mod_productgroups', 'getAllProductGroups'); ?>
- <?php echo wpsg_drawForm_Select('filter[productgroup_id]', __('Bestellungen mit Produkten aus Produktgruppe'), ['0' => __('Alle', 'wpsg')] + $arProductgroups, wpsg_getStr($this->view['arFilter']['productgroup_id'])); ?>
+ <?php echo wpsg_drawForm_Select('filter[productgroup_id]', __('Bestellungen mit Produkten aus Produktgruppe', 'wpsg'), ['0' => __('Alle', 'wpsg')] + $arProductgroups, wpsg_getStr($this->view['arFilter']['productgroup_id'])); ?>
<?php } ?>
@@ -121,7 +121,7 @@ <br />
- <?php echo wpsg_drawForm_SubmitButton(__('Bestellungen suchen')); ?>
+ <?php echo wpsg_drawForm_SubmitButton(__('Bestellungen suchen', 'wpsg')); ?>
</form>
</div>
@@ -156,7 +156,7 @@ <?php $arPaymentSelect = []; foreach ($this->arPayment as $payment_id => $payment) if (!isset($payment['active']) || $payment['active'] === '1') $arPaymentSelect[$payment_id] = $payment['name'].' ('.wpsg_ff(wpsg_getStr($payment['price'])).')'; ?>
<?php echo wpsg_drawForm_Select('add_payment', __('Zahlungsart', 'wpsg'), $arPaymentSelect, wpsg_getStr($_REQUEST['add_payment'])); ?>
- <br /><?php echo wpsg_drawForm_SubmitButton(__('Bestellung anlegen')); ?><br />
+ <br /><?php echo wpsg_drawForm_SubmitButton(__('Bestellung anlegen', 'wpsg')); ?><br />
<script>
@@ -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>
diff --git a/views/order/product_table.phtml b/views/order/product_table.phtml index 3fc4499..37533bb 100644 --- a/views/order/product_table.phtml +++ b/views/order/product_table.phtml @@ -26,10 +26,10 @@ </style>
-<?php echo wpsg_drawForm_Select('tax_mode', __('Besteuerung'), [
- \wpsg\wpsg_calculation::TAXMODE_SMALLBUSINESS => __('Kleinunternehmerregelung'),
- \wpsg\wpsg_calculation::TAXMODE_B2C => __('Endkundenbesteuerung'),
- \wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung (USTIdNr)')
+<?php echo wpsg_drawForm_Select('tax_mode', __('Besteuerung', 'wpsg'), [
+ \wpsg\wpsg_calculation::TAXMODE_SMALLBUSINESS => __('Kleinunternehmerregelung', 'wpsg'),
+ \wpsg\wpsg_calculation::TAXMODE_B2C => __('Endkundenbesteuerung', 'wpsg'),
+ \wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung (USTIdNr)', 'wpsg')
], $this->view['oCalculation']->getTaxMode(), ['onchange' => 'WPSG_BE.updateCalculation();', 'help' => 'tax_mode']); ?>
<br />
diff --git a/views/order/view_dev.phtml b/views/order/view_dev.phtml index 6a3c9f7..6c96cbc 100644 --- a/views/order/view_dev.phtml +++ b/views/order/view_dev.phtml @@ -52,7 +52,7 @@ <?php echo wpsg_drawForm_AdminboxEnd(); ?>
-<?php echo wpsg_drawForm_AdminboxStart(__('Technische Einstellungen', 'wüsg')); ?>
+<?php echo wpsg_drawForm_AdminboxStart(__('Technische Einstellungen', 'wpsg')); ?>
<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=save&edit_id=<?php echo $this->view['oOrder']->id; ?>&noheader=1" enctype="multipart/form-data">
<?php echo wpsg_drawForm_Checkbox('ext_payed', __('Externe Zahlungseingänge ignorieren', 'wpsg'), wpsg_getStr($this->view['data']['ext_payed'])); ?>
diff --git a/views/produkt/addedit_rating.phtml b/views/produkt/addedit_rating.phtml index 44a6265..5376801 100644 --- a/views/produkt/addedit_rating.phtml +++ b/views/produkt/addedit_rating.phtml @@ -69,7 +69,7 @@ </div>
<?php } else { ?>
- <?php echo __('Keine Bewertungen vorhanden'); ?>
+ <?php echo __('Keine Bewertungen vorhanden', 'wpsg'); ?>
<?php } ?>
</div>
</div>
diff --git a/views/produkt/index.phtml b/views/produkt/index.phtml index 88eb19a..b9379b8 100644 --- a/views/produkt/index.phtml +++ b/views/produkt/index.phtml @@ -121,7 +121,7 @@ <input type="hidden" name="submit-button" value="1" />
<?php } ?>
- <?php echo wpsg_drawForm_SubmitButton(__('Produkte suchen')); ?><br />
+ <?php echo wpsg_drawForm_SubmitButton(__('Produkte suchen', 'wpsg')); ?><br />
</form>
</div>
@@ -337,7 +337,7 @@ </div>
<?php $stl = 0; $stl = $this->callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($oProduct->getProductKey())) ?>
<?php if (wpsg_isSizedInt($stl)) { ?>
- <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
+ <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.', 'wpsg'); ?></a>
<?php } ?>
<?php } else { ?>
diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index 4456ca3..bf8a4d3 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -260,7 +260,7 @@ <?php $stl = 0; $stl = $this->callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($this->view['data']['product_key'])) ?>
<?php if (wpsg_isSizedInt($stl)) { ?>
- <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
+ <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.', 'wpsg'); ?></a>
<?php } ?>
diff --git a/views/produkttemplates/standard2.phtml b/views/produkttemplates/standard2.phtml index 3ef75a7..dd6576f 100644 --- a/views/produkttemplates/standard2.phtml +++ b/views/produkttemplates/standard2.phtml @@ -252,7 +252,7 @@ <?php $stl = 0; $stl = $this->callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($this->view['data']['product_key'])) ?>
<?php if (wpsg_isSizedInt($stl)) { ?>
- <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
+ <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.', 'wpsg'); ?></a>
<?php } ?>
diff --git a/views/produkttemplates/standard3.phtml b/views/produkttemplates/standard3.phtml index 219b9e2..92f4998 100644 --- a/views/produkttemplates/standard3.phtml +++ b/views/produkttemplates/standard3.phtml @@ -222,7 +222,7 @@ <?php $stl = 0; $stl = $this->callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($this->view['data']['product_key'])) ?>
<?php if (wpsg_isSizedInt($stl)) { ?>
- <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
+ <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.', 'wpsg'); ?></a>
<?php } ?>
diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml index 52ff93c..2d9dfa7 100644 --- a/views/warenkorb/basket.phtml +++ b/views/warenkorb/basket.phtml @@ -126,7 +126,7 @@ <?php echo wpsg_ff($product_data['mwst_value'], ' %'); ?>
</div>
<div class="dummyr">
- <?php echo __(' '); ?>
+ <?php echo __(' ', 'wpsg'); ?>
</div>
</div>
@@ -351,7 +351,7 @@ <?php echo get_option('wpsg_kleinunternehmer_text'); ?>
</div>
<div class="value">
- <?php echo __(' '); ?>
+ <?php echo __(' ', 'wpsg'); ?>
</div>
</div>
diff --git a/views/warenkorb/overview.phtml b/views/warenkorb/overview.phtml index 0703012..4ad61d8 100644 --- a/views/warenkorb/overview.phtml +++ b/views/warenkorb/overview.phtml @@ -261,7 +261,7 @@ <?php echo wpsg_ff($product_data['mwst_value'], ' %'); ?>
</div>
<div class="dummyr">
- <?php echo __(' '); ?>
+ <?php echo __(' ', 'wpsg'); ?>
</div>
</div>
@@ -432,7 +432,7 @@ <?php echo get_option('wpsg_kleinunternehmer_text'); ?>
</div>
<div class="value">
- <?php echo __(' '); ?>
+ <?php echo __(' ', 'wpsg'); ?>
</div>
</div>
|
