aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:39:38 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:39:38 +1300
commit8416025e932669550c166cfc4263d55c149eed89 (patch)
tree904f1c29af8b76784583da62fe85a270d5c01e9a
parent04e63f9b42991008843f3f9d1788fa6933bd57b3 (diff)
downloadtraccar-server-8416025e932669550c166cfc4263d55c149eed89.tar.gz
traccar-server-8416025e932669550c166cfc4263d55c149eed89.tar.bz2
traccar-server-8416025e932669550c166cfc4263d55c149eed89.zip
Rename strings global variable
-rw-r--r--web/app/Application.js2
-rw-r--r--web/app/ErrorManager.js8
-rw-r--r--web/app/store/CommandTypes.js8
-rw-r--r--web/app/store/DistanceUnits.js4
-rw-r--r--web/app/store/MapTypes.js8
-rw-r--r--web/app/store/SpeedUnits.js4
-rw-r--r--web/app/store/TimeUnits.js6
-rw-r--r--web/app/view/BaseEditDialog.js4
-rw-r--r--web/app/view/CommandDialog.js12
-rw-r--r--web/app/view/CommandDialogController.js2
-rw-r--r--web/app/view/Device.js24
-rw-r--r--web/app/view/DeviceController.js10
-rw-r--r--web/app/view/DeviceDialog.js6
-rw-r--r--web/app/view/Login.js10
-rw-r--r--web/app/view/LoginController.js4
-rw-r--r--web/app/view/Map.js2
-rw-r--r--web/app/view/Register.js10
-rw-r--r--web/app/view/RegisterController.js2
-rw-r--r--web/app/view/Report.js26
-rw-r--r--web/app/view/ServerDialog.js20
-rw-r--r--web/app/view/State.js6
-rw-r--r--web/app/view/StateController.js18
-rw-r--r--web/app/view/User.js14
-rw-r--r--web/app/view/UserController.js10
-rw-r--r--web/app/view/UserDialog.js22
-rw-r--r--web/l10n/bg.js2
-rwxr-xr-xweb/l10n/cs.js2
-rw-r--r--web/l10n/de.js2
-rw-r--r--web/l10n/dk.js2
-rw-r--r--web/l10n/en.js2
-rw-r--r--web/l10n/es.js2
-rw-r--r--web/l10n/fr.js2
-rw-r--r--web/l10n/hu.js2
-rw-r--r--web/l10n/lt.js2
-rw-r--r--web/l10n/nl.js2
-rw-r--r--web/l10n/pl.js2
-rw-r--r--web/l10n/pt.js2
-rw-r--r--web/l10n/ru.js2
-rwxr-xr-xweb/l10n/si.js2
-rw-r--r--web/l10n/sk.js2
-rw-r--r--web/l10n/sr.js2
-rw-r--r--web/l10n/th.js2
-rw-r--r--web/l10n/zh.js2
43 files changed, 139 insertions, 139 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index c3f10fb42..ad47caef8 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -21,7 +21,7 @@
name: 'Traccar',
requires: [
- 'Traccar.Resources',
+ 'Traccar.Style',
'Traccar.ErrorManager',
'Traccar.AttributeFormatter'
],
diff --git a/web/app/ErrorManager.js b/web/app/ErrorManager.js
index 2a787fdea..e98b29d0f 100644
--- a/web/app/ErrorManager.js
+++ b/web/app/ErrorManager.js
@@ -26,21 +26,21 @@
if (result.success || result.error === undefined) {
return true;
} else {
- Ext.Msg.alert(strings.errorTitle, result.error);
+ Ext.Msg.alert(Strings.errorTitle, result.error);
return false;
}
} else {
if (response.statusText) {
- Ext.Msg.alert(strings.errorTitle, response.statusText);
+ Ext.Msg.alert(Strings.errorTitle, response.statusText);
} else {
- Ext.Msg.alert(strings.errorTitle, response.status.toString()); // TODO: text message
+ Ext.Msg.alert(Strings.errorTitle, response.status.toString()); // TODO: text message
}
return false;
}
},
error: function (message) {
- Ext.Msg.alert(strings.errorTitle, message);
+ Ext.Msg.alert(Strings.errorTitle, message);
}
});
diff --git a/web/app/store/CommandTypes.js b/web/app/store/CommandTypes.js
index ed47d6d68..52f249931 100644
--- a/web/app/store/CommandTypes.js
+++ b/web/app/store/CommandTypes.js
@@ -22,16 +22,16 @@
data: [{
key: 'positionPeriodic',
- name: strings.commandPositionPeriodic
+ name: Strings.commandPositionPeriodic
}, {
key: 'positionStop',
- name: strings.commandPositionStop
+ name: Strings.commandPositionStop
}, {
key: 'engineStop',
- name: strings.commandEngineStop
+ name: Strings.commandEngineStop
}, {
key: 'engineResume',
- name: strings.commandEngineResume
+ name: Strings.commandEngineResume
}]
});
diff --git a/web/app/store/DistanceUnits.js b/web/app/store/DistanceUnits.js
index 59e7f6396..3092eecca 100644
--- a/web/app/store/DistanceUnits.js
+++ b/web/app/store/DistanceUnits.js
@@ -22,11 +22,11 @@
data: [{
key: 'km',
- name: strings.sharedKm,
+ name: Strings.sharedKm,
factor: 0.001
}, {
key: 'mi',
- name: strings.sharedMi,
+ name: Strings.sharedMi,
factor: 0.00621371
}],
diff --git a/web/app/store/MapTypes.js b/web/app/store/MapTypes.js
index ba241504e..3caf117ec 100644
--- a/web/app/store/MapTypes.js
+++ b/web/app/store/MapTypes.js
@@ -22,16 +22,16 @@
data: [{
key: 'osm',
- name: strings.mapOsm
+ name: Strings.mapOsm
}, {
key: 'bingRoad',
- name: strings.mapBingRoad
+ name: Strings.mapBingRoad
}, {
key: 'bingAerial',
- name: strings.mapBingAerial
+ name: Strings.mapBingAerial
}, {
key: 'custom',
- name: strings.mapCustom
+ name: Strings.mapCustom
}]
});
diff --git a/web/app/store/SpeedUnits.js b/web/app/store/SpeedUnits.js
index 1ff6cd50e..2238d476a 100644
--- a/web/app/store/SpeedUnits.js
+++ b/web/app/store/SpeedUnits.js
@@ -22,11 +22,11 @@
data: [{
key: 'kmh',
- name: strings.sharedKmh,
+ name: Strings.sharedKmh,
factor: 1.852
}, {
key: 'mph',
- name: strings.sharedMph,
+ name: Strings.sharedMph,
factor: 1.15078
}],
diff --git a/web/app/store/TimeUnits.js b/web/app/store/TimeUnits.js
index 61246c520..29730f2b9 100644
--- a/web/app/store/TimeUnits.js
+++ b/web/app/store/TimeUnits.js
@@ -21,13 +21,13 @@
fields: ['name', 'factor'],
data: [{
- name: strings.sharedSecond,
+ name: Strings.sharedSecond,
factor: 1
}, {
- name: strings.sharedMinute,
+ name: Strings.sharedMinute,
factor: 60
}, {
- name: strings.sharedHour,
+ name: Strings.sharedHour,
factor: 3600
}]
});
diff --git a/web/app/view/BaseEditDialog.js b/web/app/view/BaseEditDialog.js
index 81831e2fb..bf1e52749 100644
--- a/web/app/view/BaseEditDialog.js
+++ b/web/app/view/BaseEditDialog.js
@@ -20,10 +20,10 @@
extend: 'Traccar.view.BaseDialog',
buttons: [{
- text: strings.sharedSave,
+ text: Strings.sharedSave,
handler: 'onSaveClick'
}, {
- text: strings.sharedCancel,
+ text: Strings.sharedCancel,
handler: 'closeView'
}]
});
diff --git a/web/app/view/CommandDialog.js b/web/app/view/CommandDialog.js
index 388c0afce..36024a172 100644
--- a/web/app/view/CommandDialog.js
+++ b/web/app/view/CommandDialog.js
@@ -24,14 +24,14 @@
],
controller: 'commandDialog',
- title: strings.commandTitle,
+ title: Strings.commandTitle,
items: {
xtype: 'form',
items: [{
xtype: 'combobox',
name: 'type',
- fieldLabel: strings.commandType,
+ fieldLabel: Strings.commandType,
store: 'CommandTypes',
displayField: 'name',
valueField: 'key',
@@ -46,11 +46,11 @@
items: [{
xtype: 'numberfield',
- fieldLabel: strings.commandFrequency,
+ fieldLabel: Strings.commandFrequency,
name: 'frequency'
}, {
xtype: 'combobox',
- fieldLabel: strings.commandUnit,
+ fieldLabel: Strings.commandUnit,
name: 'unit',
store: 'TimeUnits',
displayField: 'name',
@@ -60,10 +60,10 @@
},
buttons: [{
- text: strings.commandSend,
+ text: Strings.commandSend,
handler: 'onSendClick'
}, {
- text: strings.sharedCancel,
+ text: Strings.sharedCancel,
handler: 'closeView'
}]
});
diff --git a/web/app/view/CommandDialogController.js b/web/app/view/CommandDialogController.js
index 1c6b361a7..39149c5a5 100644
--- a/web/app/view/CommandDialogController.js
+++ b/web/app/view/CommandDialogController.js
@@ -52,7 +52,7 @@
onSendResult: function (options, success, response) {
if (Traccar.ErrorManager.check(success, response)) {
- Ext.toast(strings.commandSent);
+ Ext.toast(Strings.commandSent);
this.closeView();
}
}
diff --git a/web/app/view/Device.js b/web/app/view/Device.js
index ce9d24659..3feb008a2 100644
--- a/web/app/view/Device.js
+++ b/web/app/view/Device.js
@@ -27,56 +27,56 @@
controller: 'device',
store: 'Devices',
- title: strings.deviceTitle,
+ title: Strings.deviceTitle,
selType: 'rowmodel',
tbar: [{
handler: 'onAddClick',
reference: 'deviceAddButton',
glyph: 'xf067@FontAwesome',
- tooltip: strings.sharedAdd,
+ tooltip: Strings.sharedAdd,
tooltipType: 'title'
}, {
disabled: true,
handler: 'onEditClick',
reference: 'deviceEditButton',
glyph: 'xf040@FontAwesome',
- tooltip: strings.sharedEdit,
+ tooltip: Strings.sharedEdit,
tooltipType: 'title'
}, {
disabled: true,
handler: 'onRemoveClick',
reference: 'deviceRemoveButton',
glyph: 'xf00d@FontAwesome',
- tooltip: strings.sharedRemove,
+ tooltip: Strings.sharedRemove,
tooltipType: 'title'
}, {
disabled: true,
handler: 'onCommandClick',
reference: 'deviceCommandButton',
glyph: 'xf093@FontAwesome',
- tooltip: strings.deviceCommand,
+ tooltip: Strings.deviceCommand,
tooltipType: 'title'
}, {
xtype: 'tbfill'
}, {
- text: strings.settingsTitle,
+ text: Strings.settingsTitle,
menu: [{
- text: strings.settingsUser,
+ text: Strings.settingsUser,
handler: 'onUserClick'
}, {
- text: strings.settingsServer,
+ text: Strings.settingsServer,
hidden: true,
handler: 'onServerClick',
reference: 'settingsServerButton'
}, {
- text: strings.settingsUsers,
+ text: Strings.settingsUsers,
hidden: true,
handler: 'onUsersClick',
reference: 'settingsUsersButton'
}]
}, {
- text: strings.loginLogout,
+ text: Strings.loginLogout,
handler: 'onLogoutClick'
}],
@@ -85,10 +85,10 @@
},
columns: [{
- text: strings.deviceName,
+ text: Strings.deviceName,
dataIndex: 'name', flex: 1
}, {
- text: strings.deviceIdentifier,
+ text: Strings.deviceIdentifier,
dataIndex: 'uniqueId', flex: 1
}]
diff --git a/web/app/view/DeviceController.js b/web/app/view/DeviceController.js
index 045ac426f..4d26f799f 100644
--- a/web/app/view/DeviceController.js
+++ b/web/app/view/DeviceController.js
@@ -69,12 +69,12 @@
onRemoveClick: function () {
var device = this.getView().getSelectionModel().getSelection()[0];
Ext.Msg.show({
- title: strings.deviceDialog,
- message: strings.sharedRemoveConfirm,
+ title: Strings.deviceDialog,
+ message: Strings.sharedRemoveConfirm,
buttons: Ext.Msg.YESNO,
buttonText: {
- yes: strings.sharedRemove,
- no: strings.sharedCancel
+ yes: Strings.sharedRemove,
+ no: Strings.sharedCancel
},
fn: function (btn) {
var store;
@@ -121,7 +121,7 @@
onUsersClick: function () {
Ext.create('Ext.window.Window', {
- title: strings.settingsUsers,
+ title: Strings.settingsUsers,
width: Traccar.Style.windowWidth,
height: Traccar.Style.windowHeight,
layout: 'fit',
diff --git a/web/app/view/DeviceDialog.js b/web/app/view/DeviceDialog.js
index 012048b8a..2349676b1 100644
--- a/web/app/view/DeviceDialog.js
+++ b/web/app/view/DeviceDialog.js
@@ -24,19 +24,19 @@
],
controller: 'baseEditDialog',
- title: strings.deviceDialog,
+ title: Strings.deviceDialog,
items: {
xtype: 'form',
items: [{
xtype: 'textfield',
name: 'name',
- fieldLabel: strings.deviceName,
+ fieldLabel: Strings.deviceName,
allowBlank: false
}, {
xtype: 'textfield',
name: 'uniqueId',
- fieldLabel: strings.deviceIdentifier,
+ fieldLabel: Strings.deviceIdentifier,
allowBlank: false
}]
}
diff --git a/web/app/view/Login.js b/web/app/view/Login.js
index b68f80b07..7f34c51cb 100644
--- a/web/app/view/Login.js
+++ b/web/app/view/Login.js
@@ -42,7 +42,7 @@
items: [{
xtype: 'combobox',
name: 'language',
- fieldLabel: strings.loginLanguage,
+ fieldLabel: Strings.loginLanguage,
store: 'Languages',
displayField: 'name',
valueField: 'code',
@@ -54,7 +54,7 @@
}, {
xtype: 'textfield',
name: 'email',
- fieldLabel: strings.userEmail,
+ fieldLabel: Strings.userEmail,
allowBlank: false,
enableKeyEvents: true,
listeners: {
@@ -65,7 +65,7 @@
}, {
xtype: 'textfield',
name: 'password',
- fieldLabel: strings.userPassword,
+ fieldLabel: Strings.userPassword,
inputType: 'password',
allowBlank: false,
enableKeyEvents: true,
@@ -83,11 +83,11 @@
},
buttons: [{
- text: strings.loginRegister,
+ text: Strings.loginRegister,
handler: 'onRegisterClick',
reference: 'registerButton'
}, {
- text: strings.loginLogin,
+ text: Strings.loginLogin,
handler: 'onLoginClick'
}]
});
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js
index 05118b170..f6a0414dd 100644
--- a/web/app/view/LoginController.js
+++ b/web/app/view/LoginController.js
@@ -33,7 +33,7 @@
login: function () {
var form = this.lookupReference('form');
if (form.isValid()) {
- Ext.getBody().mask(strings.sharedLoading);
+ Ext.getBody().mask(Strings.sharedLoading);
Ext.Ajax.request({
scope: this,
url: '/api/login',
@@ -46,7 +46,7 @@
Traccar.app.setUser(result.data);
this.fireViewEvent('login');
} else {
- Traccar.ErrorManager.error(strings.loginFailed);
+ Traccar.ErrorManager.error(Strings.loginFailed);
}
}
diff --git a/web/app/view/Map.js b/web/app/view/Map.js
index 92cab1421..7165bfb56 100644
--- a/web/app/view/Map.js
+++ b/web/app/view/Map.js
@@ -26,7 +26,7 @@
controller: 'map',
- title: strings.mapTitle,
+ title: Strings.mapTitle,
layout: 'fit',
listeners: {
diff --git a/web/app/view/Register.js b/web/app/view/Register.js
index c8fbf0722..04975c74e 100644
--- a/web/app/view/Register.js
+++ b/web/app/view/Register.js
@@ -33,28 +33,28 @@
items: [{
xtype: 'textfield',
name: 'name',
- fieldLabel: strings.userName,
+ fieldLabel: Strings.userName,
allowBlank: false
}, {
xtype: 'textfield',
name: 'email',
- fieldLabel: strings.userEmail,
+ fieldLabel: Strings.userEmail,
vtype: 'email',
allowBlank: false
}, {
xtype: 'textfield',
name: 'password',
- fieldLabel: strings.userPassword,
+ fieldLabel: Strings.userPassword,
inputType: 'password',
allowBlank: false
}]
},
buttons: [{
- text: strings.sharedSave,
+ text: Strings.sharedSave,
handler: 'onCreateClick'
}, {
- text: strings.sharedCancel,
+ text: Strings.sharedCancel,
handler: 'closeView'
}]
});
diff --git a/web/app/view/RegisterController.js b/web/app/view/RegisterController.js
index 94238acf3..36a423a30 100644
--- a/web/app/view/RegisterController.js
+++ b/web/app/view/RegisterController.js
@@ -35,7 +35,7 @@
onCreateReturn: function (options, success, response) {
if (Traccar.ErrorManager.check(success, response)) {
this.closeView();
- Ext.toast(strings.loginCreated);
+ Ext.toast(Strings.loginCreated);
}
}
diff --git a/web/app/view/Report.js b/web/app/view/Report.js
index b930dd3b0..93f2ca1ee 100644
--- a/web/app/view/Report.js
+++ b/web/app/view/Report.js
@@ -27,11 +27,11 @@
controller: 'report',
store: 'Positions',
- title: strings.reportTitle,
+ title: Strings.reportTitle,
tbar: [{
xtype: 'tbtext',
- html: strings.reportDevice
+ html: Strings.reportDevice
}, {
xtype: 'combobox',
reference: 'deviceField',
@@ -42,7 +42,7 @@
queryMode: 'local'
}, '-', {
xtype: 'tbtext',
- html: strings.reportFrom
+ html: Strings.reportFrom
}, {
xtype: 'datefield',
reference: 'fromDateField',
@@ -56,7 +56,7 @@
value: new Date(new Date().getTime() - 30 * 60 * 1000)
}, '-', {
xtype: 'tbtext',
- html: strings.reportTo
+ html: Strings.reportTo
}, {
xtype: 'datefield',
reference: 'toDateField',
@@ -69,10 +69,10 @@
format: Traccar.Style.timeFormat,
value: new Date()
}, '-', {
- text: strings.reportShow,
+ text: Strings.reportShow,
handler: 'onShowClick'
}, {
- text: strings.reportClear,
+ text: Strings.reportClear,
handler: 'onClearClick'
}],
@@ -81,38 +81,38 @@
},
columns: [{
- text: strings.positionValid,
+ text: Strings.positionValid,
dataIndex: 'valid',
flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('valid')
}, {
- text: strings.positionTime,
+ text: Strings.positionTime,
dataIndex: 'fixTime',
flex: 1,
xtype: 'datecolumn',
renderer: Traccar.AttributeFormatter.getFormatter('fixTime')
}, {
- text: strings.positionLatitude,
+ text: Strings.positionLatitude,
dataIndex: 'latitude',
flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('latitude')
}, {
- text: strings.positionLongitude,
+ text: Strings.positionLongitude,
dataIndex: 'longitude',
flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('latitude')
}, {
- text: strings.positionAltitude,
+ text: Strings.positionAltitude,
dataIndex: 'altitude',
flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('altitude')
}, {
- text: strings.positionSpeed,
+ text: Strings.positionSpeed,
dataIndex: 'speed',
flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('speed')
}, {
- text: strings.positionAddress,
+ text: Strings.positionAddress,
dataIndex: 'address',
flex: 1,
renderer: Traccar.AttributeFormatter.getFormatter('address')
diff --git a/web/app/view/ServerDialog.js b/web/app/view/ServerDialog.js
index a9751d647..fa5ede524 100644
--- a/web/app/view/ServerDialog.js
+++ b/web/app/view/ServerDialog.js
@@ -24,56 +24,56 @@
],
controller: 'baseEditDialog',
- title: strings.serverTitle,
+ title: Strings.serverTitle,
items: {
xtype: 'form',
items: [{
xtype: 'checkboxfield',
name: 'registration',
- fieldLabel: strings.serverRegistration,
+ fieldLabel: Strings.serverRegistration,
allowBlank: false
}, {
xtype: 'combobox',
name: 'map',
- fieldLabel: strings.mapLayer,
+ fieldLabel: Strings.mapLayer,
store: 'MapTypes',
displayField: 'name',
valueField: 'key'
}, {
xtype: 'textfield',
name: 'bingKey',
- fieldLabel: strings.mapBingKey
+ fieldLabel: Strings.mapBingKey
}, {
xtype: 'textfield',
name: 'mapUrl',
- fieldLabel: strings.mapCustom
+ fieldLabel: Strings.mapCustom
}, {
xtype: 'combobox',
name: 'distanceUnit',
- fieldLabel: strings.settingsDistanceUnit,
+ fieldLabel: Strings.settingsDistanceUnit,
store: 'DistanceUnits',
displayField: 'name',
valueField: 'key'
}, {
xtype: 'combobox',
name: 'speedUnit',
- fieldLabel: strings.settingsSpeedUnit,
+ fieldLabel: Strings.settingsSpeedUnit,
store: 'SpeedUnits',
displayField: 'name',
valueField: 'key'
}, {
xtype: 'numberfield',
name: 'latitude',
- fieldLabel: strings.positionLatitude
+ fieldLabel: Strings.positionLatitude
}, {
xtype: 'numberfield',
name: 'longitude',
- fieldLabel: strings.positionLongitude
+ fieldLabel: Strings.positionLongitude
}, {
xtype: 'numberfield',
name: 'zoom',
- fieldLabel: strings.serverZoom
+ fieldLabel: Strings.serverZoom
}]
}
});
diff --git a/web/app/view/State.js b/web/app/view/State.js
index 5cb31c676..b67c9a46f 100644
--- a/web/app/view/State.js
+++ b/web/app/view/State.js
@@ -27,14 +27,14 @@
controller: 'state',
store: 'Attributes',
- title: strings.stateTitle,
+ title: Strings.stateTitle,
columns: [{
- text: strings.stateName,
+ text: Strings.stateName,
dataIndex: 'name',
flex: 1
}, {
- text: strings.stateValue,
+ text: Strings.stateValue,
dataIndex: 'value',
flex: 1
}]
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index c0b3c1056..ad44d7ac7 100644
--- a/web/app/view/StateController.js
+++ b/web/app/view/StateController.js
@@ -39,39 +39,39 @@
keys: {
fixTime: {
priority: 1,
- name: strings.positionTime
+ name: Strings.positionTime
},
latitude: {
priority: 2,
- name: strings.positionLatitude
+ name: Strings.positionLatitude
},
longitude: {
priority: 3,
- name: strings.positionLongitude
+ name: Strings.positionLongitude
},
valid: {
priority: 4,
- name: strings.positionValid
+ name: Strings.positionValid
},
altitude: {
priority: 5,
- name: strings.positionAltitude
+ name: Strings.positionAltitude
},
speed: {
priority: 6,
- name: strings.positionSpeed
+ name: Strings.positionSpeed
},
course: {
priority: 7,
- name: strings.positionCourse
+ name: Strings.positionCourse
},
address: {
priority: 8,
- name: strings.positionAddress
+ name: Strings.positionAddress
},
protocol: {
priority: 9,
- name: strings.positionProtocol
+ name: Strings.positionProtocol
}
},
diff --git a/web/app/view/User.js b/web/app/view/User.js
index 61ff01ab5..9eb0232f7 100644
--- a/web/app/view/User.js
+++ b/web/app/view/User.js
@@ -30,21 +30,21 @@
selType: 'rowmodel',
tbar: [{
- text: strings.sharedAdd,
+ text: Strings.sharedAdd,
handler: 'onAddClick',
reference: 'deviceAddButton'
}, {
- text: strings.sharedEdit,
+ text: Strings.sharedEdit,
disabled: true,
handler: 'onEditClick',
reference: 'userEditButton'
}, {
- text: strings.sharedRemove,
+ text: Strings.sharedRemove,
disabled: true,
handler: 'onRemoveClick',
reference: 'userRemoveButton'
}, {
- text: strings.deviceTitle,
+ text: Strings.deviceTitle,
disabled: true,
handler: 'onDevicesClick',
reference: 'userDevicesButton'
@@ -55,9 +55,9 @@
},
columns: [
- {text: strings.userName, dataIndex: 'name', flex: 1},
- {text: strings.userEmail, dataIndex: 'email', flex: 1},
- {text: strings.userAdmin, 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/UserController.js b/web/app/view/UserController.js
index cd0a4bd0b..d5535bce3 100644
--- a/web/app/view/UserController.js
+++ b/web/app/view/UserController.js
@@ -45,12 +45,12 @@
onRemoveClick: function () {
var user = this.getView().getSelectionModel().getSelection()[0];
Ext.Msg.show({
- title: strings.settingsUser,
- message: strings.sharedRemoveConfirm,
+ title: Strings.settingsUser,
+ message: Strings.sharedRemoveConfirm,
buttons: Ext.Msg.YESNO,
buttonText: {
- yes: strings.sharedRemove,
- no: strings.sharedCancel
+ yes: Strings.sharedRemove,
+ no: Strings.sharedCancel
},
fn: function (btn) {
if (btn === 'yes') {
@@ -65,7 +65,7 @@
onDevicesClick: function () {
// TODO show devices
/*Ext.create('Ext.window.Window', {
- title: strings.settingsUsers,
+ title: Strings.settingsUsers,
width: Traccar.Style.windowWidth,
height: Traccar.Style.windowHeight,
layout: 'fit',
diff --git a/web/app/view/UserDialog.js b/web/app/view/UserDialog.js
index 2048051be..f66c5af02 100644
--- a/web/app/view/UserDialog.js
+++ b/web/app/view/UserDialog.js
@@ -25,65 +25,65 @@
controller: 'userDialog',
- title: strings.settingsUser,
+ title: Strings.settingsUser,
items: {
xtype: 'form',
items: [{
xtype: 'textfield',
name: 'name',
- fieldLabel: strings.userName
+ fieldLabel: Strings.userName
}, {
xtype: 'textfield',
name: 'email',
- fieldLabel: strings.userEmail,
+ fieldLabel: Strings.userEmail,
allowBlank: false
}, {
xtype: 'textfield',
name: 'password',
- fieldLabel: strings.userPassword,
+ fieldLabel: Strings.userPassword,
inputType: 'password',
allowBlank: false
}, {
xtype: 'checkboxfield',
name: 'admin',
- fieldLabel: strings.userAdmin,
+ fieldLabel: Strings.userAdmin,
allowBlank: false,
disabled: true,
reference: 'adminField'
}, {
xtype: 'combobox',
name: 'map',
- fieldLabel: strings.mapLayer,
+ fieldLabel: Strings.mapLayer,
store: 'MapTypes',
displayField: 'name',
valueField: 'key'
}, {
xtype: 'combobox',
name: 'distanceUnit',
- fieldLabel: strings.settingsDistanceUnit,
+ fieldLabel: Strings.settingsDistanceUnit,
store: 'DistanceUnits',
displayField: 'name',
valueField: 'key'
}, {
xtype: 'combobox',
name: 'speedUnit',
- fieldLabel: strings.settingsSpeedUnit,
+ fieldLabel: Strings.settingsSpeedUnit,
store: 'SpeedUnits',
displayField: 'name',
valueField: 'key'
}, {
xtype: 'numberfield',
name: 'latitude',
- fieldLabel: strings.positionLatitude
+ fieldLabel: Strings.positionLatitude
}, {
xtype: 'numberfield',
name: 'longitude',
- fieldLabel: strings.positionLongitude
+ fieldLabel: Strings.positionLongitude
}, {
xtype: 'numberfield',
name: 'zoom',
- fieldLabel: strings.serverZoom
+ fieldLabel: Strings.serverZoom
}]
}
});
diff --git a/web/l10n/bg.js b/web/l10n/bg.js
index 098843c54..8202ae35a 100644
--- a/web/l10n/bg.js
+++ b/web/l10n/bg.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Зареждане...',
sharedSave: 'Запази',
sharedCancel: 'Отказ',
diff --git a/web/l10n/cs.js b/web/l10n/cs.js
index d3b6d6f3f..5d6c927e4 100755
--- a/web/l10n/cs.js
+++ b/web/l10n/cs.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Načítání...',
sharedSave: 'Uložit',
sharedCancel: 'Zrušit',
diff --git a/web/l10n/de.js b/web/l10n/de.js
index 7ce62f7cb..0ababab34 100644
--- a/web/l10n/de.js
+++ b/web/l10n/de.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Lade...',
sharedSave: 'Speichern',
sharedCancel: 'Abbrechen',
diff --git a/web/l10n/dk.js b/web/l10n/dk.js
index c70ec3ef0..831e5686f 100644
--- a/web/l10n/dk.js
+++ b/web/l10n/dk.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Loading...',
sharedSave: 'Gem',
sharedCancel: 'Fortryd',
diff --git a/web/l10n/en.js b/web/l10n/en.js
index e69751cb3..cd6bf3038 100644
--- a/web/l10n/en.js
+++ b/web/l10n/en.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Loading...',
sharedSave: 'Save',
sharedCancel: 'Cancel',
diff --git a/web/l10n/es.js b/web/l10n/es.js
index ef7f47fee..ff5fbb7ab 100644
--- a/web/l10n/es.js
+++ b/web/l10n/es.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Cargando...',
sharedSave: 'Grabar',
sharedCancel: 'Cancelar',
diff --git a/web/l10n/fr.js b/web/l10n/fr.js
index f3f13fc41..7d1541c22 100644
--- a/web/l10n/fr.js
+++ b/web/l10n/fr.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Chargement...',
sharedSave: 'Enregistrer',
sharedCancel: 'Annuler',
diff --git a/web/l10n/hu.js b/web/l10n/hu.js
index da37a3fca..997a2ef27 100644
--- a/web/l10n/hu.js
+++ b/web/l10n/hu.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Betöltés...',
sharedSave: 'Mentés',
sharedCancel: 'Mégsem',
diff --git a/web/l10n/lt.js b/web/l10n/lt.js
index ca6277064..1ff138d65 100644
--- a/web/l10n/lt.js
+++ b/web/l10n/lt.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Kraunasi..',
sharedSave: 'Išsaugoti',
sharedCancel: 'Atšaukti',
diff --git a/web/l10n/nl.js b/web/l10n/nl.js
index 5f4571af6..b51040068 100644
--- a/web/l10n/nl.js
+++ b/web/l10n/nl.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Laden...',
sharedSave: 'Opslaan',
sharedCancel: 'Annuleren',
diff --git a/web/l10n/pl.js b/web/l10n/pl.js
index 7fa53d17c..238dd33bf 100644
--- a/web/l10n/pl.js
+++ b/web/l10n/pl.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Wczytywanie...',
sharedSave: 'Zapisz',
sharedCancel: 'Anuluj',
diff --git a/web/l10n/pt.js b/web/l10n/pt.js
index 4a422849d..6155b2312 100644
--- a/web/l10n/pt.js
+++ b/web/l10n/pt.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Carregando ...',
sharedSave: 'Salvar',
sharedCancel: 'Cancelar',
diff --git a/web/l10n/ru.js b/web/l10n/ru.js
index 5b0acfaba..ea98d31ff 100644
--- a/web/l10n/ru.js
+++ b/web/l10n/ru.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Загрузка...',
sharedSave: 'Сохранить',
sharedCancel: 'Отмена',
diff --git a/web/l10n/si.js b/web/l10n/si.js
index 1407f1609..649b81f4c 100755
--- a/web/l10n/si.js
+++ b/web/l10n/si.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'පූරණය ...',
sharedSave: 'සුරකින්න',
sharedCancel: 'අවලංගු කරන්න',
diff --git a/web/l10n/sk.js b/web/l10n/sk.js
index 0c0fa77c3..98d131b65 100644
--- a/web/l10n/sk.js
+++ b/web/l10n/sk.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Načítava...',
sharedSave: 'Uloženie',
sharedCancel: 'Zrušenie',
diff --git a/web/l10n/sr.js b/web/l10n/sr.js
index 8bfe6f104..3c1588401 100644
--- a/web/l10n/sr.js
+++ b/web/l10n/sr.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'Učitava...',
sharedSave: 'Sačuvaj',
sharedCancel: 'Odustani',
diff --git a/web/l10n/th.js b/web/l10n/th.js
index 0f3518cb5..bc0129353 100644
--- a/web/l10n/th.js
+++ b/web/l10n/th.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: 'โหลด',
sharedSave: 'เก็บ (แฟ้มข้อมูล)',
sharedCancel: 'ยกเลิก',
diff --git a/web/l10n/zh.js b/web/l10n/zh.js
index 185294a3f..01c6bec47 100644
--- a/web/l10n/zh.js
+++ b/web/l10n/zh.js
@@ -1,4 +1,4 @@
-var strings = {
+var Strings = {
sharedLoading: '加载',
sharedSave: '保存',
sharedCancel: '取消',