mirror of
https://github.com/silentsakky/zarafa-webapp-passwd
synced 2026-07-27 10:30:56 +02:00
fix one string and add some translatable items
This commit is contained in:
parent
9083de7790
commit
4f16e8cdc0
3 changed files with 24 additions and 7 deletions
|
|
@ -18,7 +18,7 @@ Zarafa.plugins.passwd.settings.PasswdPanel = Ext.extend(Ext.form.FormPanel, {
|
||||||
|
|
||||||
Ext.applyIf(config, {
|
Ext.applyIf(config, {
|
||||||
xtype : 'zarafa.passwdpanel',
|
xtype : 'zarafa.passwdpanel',
|
||||||
labelWidth : 150,
|
labelWidth : 200,
|
||||||
defaults : {
|
defaults : {
|
||||||
width : 200
|
width : 200
|
||||||
},
|
},
|
||||||
|
|
@ -26,11 +26,11 @@ Zarafa.plugins.passwd.settings.PasswdPanel = Ext.extend(Ext.form.FormPanel, {
|
||||||
items : [{
|
items : [{
|
||||||
xtype : 'displayfield',
|
xtype : 'displayfield',
|
||||||
name : 'username',
|
name : 'username',
|
||||||
fieldLabel : 'User name'
|
fieldLabel : dgettext("plugin_passwd", 'User name')
|
||||||
}, {
|
}, {
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
name : 'current_password',
|
name : 'current_password',
|
||||||
fieldLabel : 'Current password',
|
fieldLabel : dgettext("plugin_passwd", 'Current password'),
|
||||||
inputType : 'password',
|
inputType : 'password',
|
||||||
listeners : {
|
listeners : {
|
||||||
change : this.onFieldChange,
|
change : this.onFieldChange,
|
||||||
|
|
@ -39,7 +39,7 @@ Zarafa.plugins.passwd.settings.PasswdPanel = Ext.extend(Ext.form.FormPanel, {
|
||||||
}, {
|
}, {
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
name : 'new_password',
|
name : 'new_password',
|
||||||
fieldLabel : 'New password',
|
fieldLabel : dgettext("plugin_passwd", 'New password'),
|
||||||
inputType : 'password',
|
inputType : 'password',
|
||||||
listeners : {
|
listeners : {
|
||||||
change : this.onFieldChange,
|
change : this.onFieldChange,
|
||||||
|
|
@ -48,7 +48,7 @@ Zarafa.plugins.passwd.settings.PasswdPanel = Ext.extend(Ext.form.FormPanel, {
|
||||||
}, {
|
}, {
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
name : 'new_password_repeat',
|
name : 'new_password_repeat',
|
||||||
fieldLabel : 'Retype new password',
|
fieldLabel : dgettext("plugin_passwd", 'Retype new password'),
|
||||||
inputType : 'password',
|
inputType : 'password',
|
||||||
listeners : {
|
listeners : {
|
||||||
change : this.onFieldChange,
|
change : this.onFieldChange,
|
||||||
|
|
@ -92,4 +92,4 @@ Zarafa.plugins.passwd.settings.PasswdPanel = Ext.extend(Ext.form.FormPanel, {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Ext.reg('zarafa.passwdpanel', Zarafa.plugins.passwd.settings.PasswdPanel);
|
Ext.reg('zarafa.passwdpanel', Zarafa.plugins.passwd.settings.PasswdPanel);
|
||||||
|
|
|
||||||
|
|
@ -76,3 +76,20 @@ msgstr "Wijzig wachtwoord"
|
||||||
# js/PasswdPlugin.js:50:
|
# js/PasswdPlugin.js:50:
|
||||||
msgid "Password Change Plugin"
|
msgid "Password Change Plugin"
|
||||||
msgstr "Wachtwoord wijzigen plugin"
|
msgstr "Wachtwoord wijzigen plugin"
|
||||||
|
|
||||||
|
# js/settings/PasswdPanel.js:29:
|
||||||
|
msgid "User name"
|
||||||
|
msgstr "Gebruikersnaam"
|
||||||
|
|
||||||
|
# js/settings/PasswdPanel.js:33:
|
||||||
|
msgid "Current password"
|
||||||
|
msgstr "Huidig wachtwoord"
|
||||||
|
|
||||||
|
# js/settings/PasswdPanel.js:42:
|
||||||
|
msgid "New password"
|
||||||
|
msgstr "Nieuw wachtwoord"
|
||||||
|
|
||||||
|
#js/settings/PasswdPanel.js:51:
|
||||||
|
msgid "Retype new password"
|
||||||
|
msgstr "Herhaal nieuw wachtwoord"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class PasswdModule extends Module
|
||||||
}
|
}
|
||||||
|
|
||||||
if($data['new_password'] !== $data['new_password_repeat']) {
|
if($data['new_password'] !== $data['new_password_repeat']) {
|
||||||
$errorMessage = dgettext("plugin_passwd", 'New passwords does not match.');
|
$errorMessage = dgettext("plugin_passwd", 'New passwords do not match.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($errorMessage)) {
|
if(empty($errorMessage)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue