diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-03 10:59:20 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-03 10:59:20 +1200 |
commit | e301d477ee95c0ae7f3d06f0950368cb5d8fe226 (patch) | |
tree | 11d08db1bd0397fe5521a4096ef416b7e73d4dbc /web/app/view/user | |
parent | 53f9c016515b9700dedb4e2b9bad02a85ee07460 (diff) | |
download | traccar-server-e301d477ee95c0ae7f3d06f0950368cb5d8fe226.tar.gz traccar-server-e301d477ee95c0ae7f3d06f0950368cb5d8fe226.tar.bz2 traccar-server-e301d477ee95c0ae7f3d06f0950368cb5d8fe226.zip |
Rename string properties
Diffstat (limited to 'web/app/view/user')
-rw-r--r-- | web/app/view/user/User.js | 12 | ||||
-rw-r--r-- | web/app/view/user/UserController.js | 8 | ||||
-rw-r--r-- | web/app/view/user/UserDialog.js | 26 |
3 files changed, 23 insertions, 23 deletions
diff --git a/web/app/view/user/User.js b/web/app/view/user/User.js index 76779ef79..a355bbe2f 100644 --- a/web/app/view/user/User.js +++ b/web/app/view/user/User.js @@ -28,16 +28,16 @@ Ext.define('Traccar.view.user.User', { selType: 'rowmodel', tbar: [{ - text: strings.shared_add, + text: strings.sharedAdd, handler: 'onAddClick', reference: 'deviceAddButton' }, { - text: strings.shared_edit, + text: strings.sharedEdit, disabled: true, handler: 'onEditClick', reference: 'userEditButton' }, { - text: strings.shared_remove, + text: strings.sharedRemove, disabled: true, handler: 'onRemoveClick', reference: 'userRemoveButton' @@ -48,9 +48,9 @@ Ext.define('Traccar.view.user.User', { }, columns: [ - { text: strings.user_name, dataIndex: 'name', flex: 1 }, - { text: strings.user_email, dataIndex: 'email', flex: 1 }, - { text: strings.user_admin, dataIndex: 'admin', flex: 1 } + { text: strings.userName, dataIndex: 'name', flex: 1 }, + { text: strings.userEmail, dataIndex: 'email', flex: 1 }, + { text: strings.userAdmin, dataIndex: 'admin', flex: 1 } ] }); diff --git a/web/app/view/user/UserController.js b/web/app/view/user/UserController.js index 510a7d6c8..c4fa04ff3 100644 --- a/web/app/view/user/UserController.js +++ b/web/app/view/user/UserController.js @@ -47,12 +47,12 @@ Ext.define('Traccar.view.user.UserController', { onRemoveClick: function() { var user = this.getView().getSelectionModel().getSelection()[0]; Ext.Msg.show({ - title: strings.settings_user, - message: strings.shared_remove_confirm, + title: strings.settingsUser, + message: strings.sharedRemoveConfirm, buttons: Ext.Msg.YESNO, buttonText: { - yes: strings.shared_remove, - no: strings.shared_cancel + yes: strings.sharedRemove, + no: strings.sharedCancel }, fn: function(btn) { if (btn === 'yes') { diff --git a/web/app/view/user/UserDialog.js b/web/app/view/user/UserDialog.js index 67bf2ccf1..ff624f9bb 100644 --- a/web/app/view/user/UserDialog.js +++ b/web/app/view/user/UserDialog.js @@ -25,7 +25,7 @@ Ext.define('Traccar.view.user.UserDialog', { controller: 'userdialog', bodyPadding: styles.panel_padding, - title: strings.settings_user, + title: strings.settingsUser, resizable: false, modal: true, @@ -34,66 +34,66 @@ Ext.define('Traccar.view.user.UserDialog', { items: [{ xtype: 'textfield', name: 'name', - fieldLabel: strings.user_name + fieldLabel: strings.userName }, { xtype: 'textfield', name: 'email', - fieldLabel: strings.user_email, + fieldLabel: strings.userEmail, allowBlank: false }, { xtype: 'textfield', name: 'password', - fieldLabel: strings.user_password, + fieldLabel: strings.userPassword, inputType: 'password', allowBlank: false }, { xtype: 'checkboxfield', name: 'admin', - fieldLabel: strings.user_admin, + fieldLabel: strings.userAdmin, allowBlank: false, disabled: true, reference: 'adminField' }, { xtype: 'combobox', name: 'map', - fieldLabel: strings.map_layer, + fieldLabel: strings.mapLayer, store: 'MapTypes', displayField: 'name', valueField: 'key' }, { xtype: 'combobox', name: 'distanceUnit', - fieldLabel: strings.settings_distance_unit, + fieldLabel: strings.settingsDistanceUnit, store: 'DistanceUnits', displayField: 'name', valueField: 'key' }, { xtype: 'combobox', name: 'speedUnit', - fieldLabel: strings.settings_speed_unit, + fieldLabel: strings.settingsSpeedUnit, store: 'SpeedUnits', displayField: 'name', valueField: 'key' }, { xtype: 'numberfield', name: 'latitude', - fieldLabel: strings.position_latitude + fieldLabel: strings.positionLatitude }, { xtype: 'numberfield', name: 'longitude', - fieldLabel: strings.position_longitude + fieldLabel: strings.positionLongitude }, { xtype: 'numberfield', name: 'zoom', - fieldLabel: strings.server_zoom + fieldLabel: strings.serverZoom }] }, buttons: [{ - text: strings.shared_save, + text: strings.sharedSave, handler: 'onSaveClick' }, { - text: strings.shared_cancel, + text: strings.sharedCancel, handler: 'onCancelClick' }] |