Commit 242850d1 authored by Michael Herold's avatar Michael Herold
Browse files

Trying to fix missing button text

parent 59eebe4c
<?php
/*
* Copyright (C) 2015 Michael Herold <quabla@hemio.de>
*
......@@ -26,14 +25,16 @@ use hemio\edentata\gui;
*
* @author Michael Herold <quabla@hemio.de>
*/
class AccountPassword extends Window {
class AccountPassword extends Window
{
public function content($account) {
public function content($account)
{
$window = $this->newFormWindow(
'account_password'
, _('Account Password')
, $account
, _('Change')
'account_password'
, _('Account Password')
, $account
, _('Change Password')
);
$password = new gui\FieldNewPassword('password');
......@@ -45,20 +46,20 @@ class AccountPassword extends Window {
return $window;
}
protected function handleSubmit(gui\FormPost $form, $account) {
protected function handleSubmit(gui\FormPost $form, $account)
{
if ($form->correctSubmitted()) {
$params = Db::accountToArgs($account);
$params+= $form->getVal(['password']);
$this->db->accountPassword($params);
$e = new \hemio\edentata\exception\Successful(
_('Your password has been changed successfully.')
$e = new \hemio\edentata\exception\Successful(
_('Your password has been changed successfully.')
);
$e->backTo = $this->request->derive('details', $account);
throw $e;
}
}
}
msgid ""
msgstr ""
"Project-Id-Version: edentata jabber\n"
"POT-Creation-Date: 2015-08-05 18:06+0100\n"
"PO-Revision-Date: 2015-08-05 18:11+0100\n"
"POT-Creation-Date: 2015-08-05 18:52+0100\n"
"PO-Revision-Date: 2015-08-05 18:52+0100\n"
"Last-Translator: Michael Herold <quabla@hemio.de>\n"
"Language-Team: \n"
"Language: de_DE\n"
......@@ -54,15 +54,15 @@ msgstr "Passwort ändern"
msgid "Delete account"
msgstr "Konto löschen"
#: AccountPassword.php:34
#: AccountPassword.php:35
msgid "Account Password"
msgstr "Konto-Passwort"
#: AccountPassword.php:36
msgid "Change"
msgstr "Ändern"
#: AccountPassword.php:37
msgid "Change Password"
msgstr "Passwort ändern"
#: AccountPassword.php:56
#: AccountPassword.php:58
msgid "Your password has been changed successfully."
msgstr "Ihr Passwort wurde erfolgreich geändert."
......@@ -82,5 +82,8 @@ msgstr "Konto Erstellen"
msgid "You do not own a jabber account."
msgstr "Sie besitzen kein Jabber-Konto."
#~ msgid "Change"
#~ msgstr "Ändern"
#~ msgid "Possible Actions"
#~ msgstr "Verfügbare Aktionen"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment