Skip to content

Commit

Permalink
Merge pull request #889 from inbaz/develop
Browse files Browse the repository at this point in the history
adjusted translations; enhanced password request email
  • Loading branch information
BigAndini authored Oct 9, 2016
2 parents faddc70 + 0e4af23 commit e799a32
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 47 deletions.
Binary file modified module/ErsBase/language/de_DE.mo
Binary file not shown.
14 changes: 7 additions & 7 deletions module/ErsBase/language/de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: ZendSkeletonApplication\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-10-01 18:20+0200\n"
"PO-Revision-Date: 2016-10-01 18:21+0200\n"
"POT-Creation-Date: 2016-10-09 12:16+0200\n"
"PO-Revision-Date: 2016-10-09 12:17+0200\n"
"Last-Translator: Evan Coury <[email protected]>\n"
"Language-Team: ZF Contributors <[email protected]>\n"
"Language: de_DE\n"
Expand All @@ -15,7 +15,7 @@ msgstr ""
"X-Generator: Poedit 1.8.9\n"
"X-Poedit-SearchPath-0: ..\n"

#: ../src/ErsBase/Service/EmailService.php:303
#: ../src/ErsBase/Service/EmailService.php:308
#, php-format
msgid "Your registration for %s (order %s)"
msgstr "Deine Registrierung für %s (Bestellung %s)"
Expand All @@ -38,19 +38,19 @@ msgstr "Datei"

#: ../view/email/exception.phtml:27 ../view/email/exception.phtml:51
msgid "Message"
msgstr "Nachricht "
msgstr "Meldung"

#: ../view/email/exception.phtml:31 ../view/email/exception.phtml:55
msgid "Stack trace"
msgstr "Stapelüberwachung"
msgstr "Stacktrace"

#: ../view/email/exception.phtml:41
msgid "Previous exceptions"
msgstr "Vorherige Ausnahme"
msgstr "Vorherige Exceptions"

#: ../view/email/exception.phtml:68
msgid "No Exception available"
msgstr "Es ist keine Ausnahme verfügbar"
msgstr "Es ist keine Exception verfügbar"

#~ msgid "Home"
#~ msgstr "Startseite"
Expand Down
4 changes: 2 additions & 2 deletions module/ErsBase/src/ErsBase/Service/EmailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function send() {
$message->addBcc($user->getEmail());
}

$config = $em = $this->getServiceLocator()->get('config');
$config = $this->getServiceLocator()->get('config');
$this->setFrom($config['ERS']['info_mail']);

$message->addFrom($this->getFrom());
Expand All @@ -243,7 +243,7 @@ public function send() {
}

public function sendExceptionEmail(\Exception $e) {
$config = $em = $this->getServiceLocator()->get('config');
$config = $this->getServiceLocator()->get('config');

$this->setFrom($config['ERS']['info_mail']);
$em = $this->getServiceLocator()
Expand Down
Binary file modified module/PreReg/language/de_DE.mo
Binary file not shown.
88 changes: 61 additions & 27 deletions module/PreReg/language/de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Event Registration System\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-10-05 08:18+0200\n"
"PO-Revision-Date: 2016-10-05 08:18+0200\n"
"POT-Creation-Date: 2016-10-09 12:14+0200\n"
"PO-Revision-Date: 2016-10-09 12:16+0200\n"
"Last-Translator: Evan Coury <[email protected]>\n"
"Language-Team: ERS Team <[email protected]>\n"
"Language: de_DE\n"
Expand Down Expand Up @@ -34,60 +34,56 @@ msgstr "Meine Personen"
msgid "My Shopping Cart"
msgstr "Mein Einkaufswagen"

#: ../config/module.config.php:61
#: ../config/module.config.php:50
msgid "Login"
msgstr "Login"

#: ../config/module.config.php:73 ../view/pre-reg/profile/index.phtml:3
#: ../config/module.config.php:62 ../view/pre-reg/profile/index.phtml:3
msgid "My Profile"
msgstr "Mein Profil"

#: ../config/module.config.php:79
#: ../config/module.config.php:68
msgid "Logout"
msgstr "Logout"

#: ../config/module.config.php:85
#: ../config/module.config.php:74
msgid "AdminPanel"
msgstr "Admin Zugang"

#: ../config/module.config.php:90
#: ../config/module.config.php:79
msgid "Onsite"
msgstr "Onsite"

#: ../config/module.config.php:99
msgid "Help"
msgstr "Hilfe"

#: ../config/module.config.php:107 ../view/pre-reg/order/checkout.phtml:61
#: ../config/module.config.php:92 ../view/pre-reg/order/checkout.phtml:61
msgid "Shopping Cart"
msgstr "Einkaufswagen"

#: ../config/module.config.php:113 ../view/pre-reg/order/checkout.phtml:28
#: ../config/module.config.php:98 ../view/pre-reg/order/checkout.phtml:28
#: ../view/pre-reg/order/view.phtml:12
msgid "Buyer"
msgstr "Käufer"

#: ../config/module.config.php:119
#: ../config/module.config.php:104
msgid "Payment type"
msgstr "Bezahlart "

#: ../config/module.config.php:125
#: ../config/module.config.php:110
msgid "Checkout"
msgstr "Bestellung"

#: ../config/module.config.php:133
#: ../config/module.config.php:118
msgid "Change my user data"
msgstr "Meine Benutzerdaten ändern"

#: ../config/module.config.php:139
#: ../config/module.config.php:124
msgid "Change my password"
msgstr "Mein Passwort ändern"

#: ../config/module.config.php:145
#: ../config/module.config.php:130
msgid "View tickets"
msgstr "Tickets ansehen"

#: ../config/module.config.php:151
#: ../config/module.config.php:136
msgid "My Persons"
msgstr "Meine Personen"

Expand All @@ -108,6 +104,10 @@ msgstr "löschen"
msgid "Add to Cart"
msgstr "in den Einkaufswagen"

#: ../src/PreReg/Controller/ProfileController.php:143
msgid "Event Registration System: Password Request Link"
msgstr "Event Registration System: Passwort ändern Link"

#: ../src/PreReg/Form/Buyer.php:28 ../src/PreReg/Form/Participant.php:55
msgid "First name..."
msgstr "Vorname..."
Expand Down Expand Up @@ -512,6 +512,30 @@ msgid ""
" or contact %s."
msgstr "Für mehr Informationen zur %s, besuche %s oder kontaktiere %s. "

#: ../view/email/request-password.phtml:14
msgid "Dear"
msgstr "Hallo"

#: ../view/email/request-password.phtml:16
msgid "You can set the password for your user account via this link:"
msgstr "Du kannst dein Passwort über diesen Link ändern:"

#: ../view/email/request-password.phtml:23
msgid ""
"If you cannot click on this link copy the link into the address bar of your "
"browser."
msgstr ""
"Wenn du den Link nicht anklicken kannst, markiere ihn und kopiere ihn in die "
"Adresszeile deines Browsers."

#: ../view/email/request-password.phtml:24
msgid "This link will be available for the next 24 hours."
msgstr "Dieser Link ist 24 Stunden gültig."

#: ../view/email/request-password.phtml:25
msgid "Best regards,"
msgstr "Viele Grüße"

#: ../view/error/404.phtml:13
msgid "A 404 error occurred"
msgstr "Es trat ein 404 Fehler auf"
Expand Down Expand Up @@ -627,7 +651,7 @@ msgstr ""
#: ../view/pre-reg/cart/reset.phtml:30 ../view/pre-reg/product/delete.phtml:28
#: ../view/pre-reg/product/edit.phtml:105 ../view/pre-reg/profile/edit.phtml:27
#: ../view/pre-reg/profile/password.phtml:56
#: ../view/pre-reg/profile/request-password.phtml:36
#: ../view/pre-reg/profile/request-password.phtml:35
msgid "Cancel"
msgstr "abbrechen"

Expand Down Expand Up @@ -1524,21 +1548,31 @@ msgstr "Ändere dein Passwort "

#: ../view/pre-reg/profile/request-password.phtml:10
msgid ""
"If we were able to find your email address in our system an email was \n"
" sent to you with a link to change your password."
"If we were able to find your email address in our system an email was sent "
"to you with a link to change your password."
msgstr ""
"Wenn wir deine Mailadresse im System gefunden haben, bekommst du eine E-Mail "
"mit einem link. Dieser leitet dich auf eine Seite, auf der du dein Passwort "
"ändern kannst. "
"Wenn wir deine E-Mail Adresse in unserer Datenbank finden konnten, haben wir "
"dir eine E-Mail geschickt, um dein Passwort zu ändern."

#: ../view/pre-reg/profile/request-password.phtml:12
#: ../view/pre-reg/profile/request-password.phtml:11
msgid "If you did not receive an email check your spam folder."
msgstr "Falls du keine E-Mail erhalten hast, überprüfe bitte deinen Spamordner"

#: ../view/pre-reg/profile/request-password.phtml:24
#: ../view/pre-reg/profile/request-password.phtml:23
msgid "Your email address..."
msgstr "Deine Mailadresse... "

#~ msgid ""
#~ "If we were able to find your email address in our system an email was \n"
#~ " sent to you with a link to change your password."
#~ msgstr ""
#~ "Wenn wir deine Mailadresse im System gefunden haben, bekommst du eine E-"
#~ "Mail mit einem link. Dieser leitet dich auf eine Seite, auf der du dein "
#~ "Passwort ändern kannst. "

#~ msgid "Help"
#~ msgstr "Hilfe"

#~ msgid "You can request"
#~ msgstr "Du kannst diese Information nochmals anfordern"

Expand Down
6 changes: 4 additions & 2 deletions module/PreReg/src/PreReg/Controller/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,13 @@ public function requestPasswordAction() {
$em->persist($user);
$em->flush();

$emailService = new Service\EmailService();
#$emailService = new Service\EmailService();
$emailService = $this->getServiceLocator()
->get('ErsBase\Service\EmailService');
#$emailService->setFrom('[email protected]');

$emailService->addTo($user);
$emailService->setSubject('Event Registration System: Password Request Link');
$emailService->setSubject(_('Event Registration System: Password Request Link'));

$viewModel = new ViewModel(array(
'user' => $user,
Expand Down
13 changes: 6 additions & 7 deletions module/PreReg/view/email/request-password.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@
</style>
</head>
<body>
<p>Dear <?php echo $user->getFirstname().' '.$user->getSurname(); ?>,</p>
<p><?php echo $this->translate('Dear').' '.$user->getFirstname().' '.$user->getSurname(); ?>,</p>

<p>You can set the password for your user account via this link:</p>
<p><?php echo $this->translate('You can set the password for your user account via this link:'); ?></p>
<?php $link = $this->url('profile', array(
'action' => 'password-reset', 'hashkey' => $user->getHashKey(),
), array('force_canonical' => true)); ?>

<p><a href='<?php echo $link ?>'><?php echo $link; ?></a></p>

<p>If you cannot click on this link copy the link into the address bar
of your browser.</p>
<p>This link will be available for the next 24 hours.</p>
<p>Best regards,<br />
Your European Juggling Association and the local EJC 2016 organizers</p>
<p><?php echo $this->translate('If you cannot click on this link copy the link into the address bar of your browser.'); ?></p>
<p><?php echo $this->translate('This link will be available for the next 24 hours.'); ?></p>
<p><?php echo $this->translate('Best regards,'); ?><br />
<?php echo $this->config()['ERS']['salutation']; ?></p>

</body>
</html>
3 changes: 1 addition & 2 deletions module/PreReg/view/pre-reg/profile/request-password.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ $this->headTitle($title);

<?php
if($sent): ?>
<h3><?php echo $this->translate('If we were able to find your email address in our system an email was
sent to you with a link to change your password.'); ?></h3>
<h3><?php echo $this->translate('If we were able to find your email address in our system an email was sent to you with a link to change your password.'); ?></h3>
<p><?php echo $this->translate('If you did not receive an email check your spam folder.'); ?></p>
<?php else:
$form = $this->form;
Expand Down

0 comments on commit e799a32

Please sign in to comment.