aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
Diffstat (limited to 'web/app')
-rw-r--r--web/app/store/Languages.js8
-rw-r--r--web/app/view/LoginController.js2
2 files changed, 5 insertions, 5 deletions
diff --git a/web/app/store/Languages.js b/web/app/store/Languages.js
index 66d3e6176..594953480 100644
--- a/web/app/store/Languages.js
+++ b/web/app/store/Languages.js
@@ -22,16 +22,16 @@
data: (function () {
var code, data = [];
- for (code in availableLanguages) {
- if (availableLanguages.hasOwnProperty(code)) {
+ for (code in Locale.languages) {
+ if (Locale.languages.hasOwnProperty(code)) {
data.push({
code: code,
- name: availableLanguages[code].name
+ name: Locale.languages[code].name
});
}
}
return data;
- }())
+ })()
});
})();
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js
index f6a0414dd..dfff6b253 100644
--- a/web/app/view/LoginController.js
+++ b/web/app/view/LoginController.js
@@ -27,7 +27,7 @@
init: function () {
this.lookupReference('registerButton').setDisabled(
!Traccar.app.getServer().get('registration'));
- this.lookupReference('languageField').setValue(language);
+ this.lookupReference('languageField').setValue(Locale.language);
},
login: function () {