1
0
Fork 0
mirror of https://github.com/silentsakky/zarafa-webapp-passwd synced 2026-07-28 02:51:48 +02:00

Add dutch translation

Needs the generation of .mo in the build
This commit is contained in:
Sander Hoentjen 2014-03-04 14:52:00 +01:00
commit 739b1da2ac
7 changed files with 103 additions and 20 deletions

View file

@ -47,7 +47,7 @@ Zarafa.plugins.passwd.PasswdPlugin = Ext.extend(Zarafa.core.Plugin, {
Zarafa.onReady(function() {
container.registerPlugin(new Zarafa.core.PluginMetaData({
name : 'passwd',
displayName : _('Password Change Plugin'),
displayName : dgettext("plugin_passwd", 'Password Change Plugin'),
about : Zarafa.plugins.passwd.ABOUT,
pluginConstructor : Zarafa.plugins.passwd.PasswdPlugin
}));

View file

@ -24,13 +24,13 @@ Zarafa.plugins.passwd.data.PasswdResponseHandler = Ext.extend(Zarafa.core.data.A
*/
doError : function(response)
{
var displayMessage = _('An unknown error occurred while changing password.');
var displayMessage = dgettext("plugin_passwd", 'An unknown error occurred while changing password.');
if(response.info) {
displayMessage = response.info.display_message;
}
Ext.MessageBox.alert(_('Error'), displayMessage);
Ext.MessageBox.alert(dgettext("plugin_passwd", 'Error'), displayMessage);
this.callbackFn.apply(this.scope || this, [ false, response ]);
},
@ -41,14 +41,14 @@ Zarafa.plugins.passwd.data.PasswdResponseHandler = Ext.extend(Zarafa.core.data.A
*/
doSuccess : function(response)
{
var displayMessage = _('Password is changed successfully.');
var displayMessage = dgettext("plugin_passwd", 'Password is changed successfully.');
if(response.info) {
displayMessage = response.info.display_message;
}
Ext.MessageBox.alert(_('Success'), displayMessage);
Ext.MessageBox.alert(dgettext("plugin_passwd", 'Success'), displayMessage);
this.callbackFn.apply(this.scope || this, [ true, response ]);
}
});
});

View file

@ -17,7 +17,7 @@ Zarafa.plugins.passwd.settings.SettingsPasswdCategory = Ext.extend(Zarafa.settin
config = config || {};
Ext.applyIf(config, {
title : _('Change Password'),
title : dgettext("plugin_passwd", 'Change Password'),
categoryIndex : 9997,
xtype : 'zarafa.settingspasswdcategory',
items : [{

View file

@ -21,7 +21,7 @@ Zarafa.plugins.passwd.settings.SettingsPasswdWidget = Ext.extend(Zarafa.settings
Ext.applyIf(config, {
height : 175,
width : 400,
title : _('Change Password'),
title : dgettext("plugin_passwd", 'Change Password'),
xtype : 'zarafa.settingspasswdwidget',
layout : {
// override from SettingsWidget