diff options
Diffstat (limited to 'web/app/view/login')
-rw-r--r-- | web/app/view/login/Login.js | 12 | ||||
-rw-r--r-- | web/app/view/login/LoginController.js | 4 | ||||
-rw-r--r-- | web/app/view/login/Register.js | 12 | ||||
-rw-r--r-- | web/app/view/login/RegisterController.js | 2 |
4 files changed, 15 insertions, 15 deletions
diff --git a/web/app/view/login/Login.js b/web/app/view/login/Login.js index f49857644..f468edaa0 100644 --- a/web/app/view/login/Login.js +++ b/web/app/view/login/Login.js @@ -24,7 +24,7 @@ Ext.define('Traccar.view.login.Login', { controller: 'login', bodyPadding: styles.panel_padding, - title: strings.login_title, + title: strings.loginTitle, closable: false, resizable: false, @@ -35,7 +35,7 @@ Ext.define('Traccar.view.login.Login', { items: [{ xtype: 'combobox', name: 'language', - fieldLabel: strings.login_language, + fieldLabel: strings.loginLanguage, store: 'Languages', displayField: 'name', valueField: 'code', @@ -47,7 +47,7 @@ Ext.define('Traccar.view.login.Login', { }, { xtype: 'textfield', name: 'email', - fieldLabel: strings.user_email, + fieldLabel: strings.userEmail, allowBlank: false, enableKeyEvents: true, listeners: { @@ -57,7 +57,7 @@ Ext.define('Traccar.view.login.Login', { }, { xtype: 'textfield', name: 'password', - fieldLabel: strings.user_password, + fieldLabel: strings.userPassword, inputType: 'password', allowBlank: false, enableKeyEvents: true, @@ -68,11 +68,11 @@ Ext.define('Traccar.view.login.Login', { }, buttons: [{ - text: strings.login_register, + text: strings.loginRegister, handler: 'onRegisterClick', reference: 'registerButton' }, { - text: strings.login_login, + text: strings.loginLogin, handler: 'onLoginClick' }] diff --git a/web/app/view/login/LoginController.js b/web/app/view/login/LoginController.js index 95b5900c9..2cc72caf2 100644 --- a/web/app/view/login/LoginController.js +++ b/web/app/view/login/LoginController.js @@ -67,7 +67,7 @@ Ext.define('Traccar.view.login.LoginController', { doLogin: function() { var form = this.lookupReference('form'); if (form.isValid()) { - Ext.getBody().mask(strings.shared_loading); + Ext.getBody().mask(strings.sharedLoading); Traccar.LoginManager.login({ data: form.getValues(), @@ -82,7 +82,7 @@ Ext.define('Traccar.view.login.LoginController', { if (success) { this.fireViewEvent('login'); } else { - Traccar.ErrorManager.error(strings.login_failed); + Traccar.ErrorManager.error(strings.loginFailed); } }, diff --git a/web/app/view/login/Register.js b/web/app/view/login/Register.js index 909ed2fba..9be588be1 100644 --- a/web/app/view/login/Register.js +++ b/web/app/view/login/Register.js @@ -24,7 +24,7 @@ Ext.define('Traccar.view.login.Register', { controller: 'register', bodyPadding: styles.panel_padding, - title: strings.login_register, + title: strings.loginRegister, resizable: false, modal: true, @@ -36,28 +36,28 @@ Ext.define('Traccar.view.login.Register', { items: [{ xtype: 'textfield', name: 'name', - fieldLabel: strings.user_name, + fieldLabel: strings.userName, allowBlank: false }, { xtype: 'textfield', name: 'email', - fieldLabel: strings.user_email, + fieldLabel: strings.userEmail, vtype: 'email', allowBlank: false }, { xtype: 'textfield', name: 'password', - fieldLabel: strings.user_password, + fieldLabel: strings.userPassword, inputType: 'password', allowBlank: false }] }, buttons: [{ - text: strings.shared_save, + text: strings.sharedSave, handler: 'onCreateClick' }, { - text: strings.shared_cancel, + text: strings.sharedCancel, handler: 'closeView' }] diff --git a/web/app/view/login/RegisterController.js b/web/app/view/login/RegisterController.js index e690b56e8..b1957ba8f 100644 --- a/web/app/view/login/RegisterController.js +++ b/web/app/view/login/RegisterController.js @@ -33,7 +33,7 @@ Ext.define('Traccar.view.login.RegisterController', { onCreateReturn: function(options, success, response) { if (Traccar.ErrorManager.check(success, response)) { this.closeView(); - Ext.toast(strings.login_created); + Ext.toast(strings.loginCreated); } } |