aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-04-20 08:54:04 +0500
committerAbyss777 <abyss@fox5.ru>2018-04-20 08:54:04 +0500
commit0ce5bc325c194acfb619d04db352fdba1b79d8b1 (patch)
tree90e0f4704f2bdcb56015b1478da9f0553957bd7e
parent1a9f482a6a3234e443e2e8d6aff6f09daab85dfe (diff)
downloadtrackermap-web-0ce5bc325c194acfb619d04db352fdba1b79d8b1.tar.gz
trackermap-web-0ce5bc325c194acfb619d04db352fdba1b79d8b1.tar.bz2
trackermap-web-0ce5bc325c194acfb619d04db352fdba1b79d8b1.zip
Make string translatable
-rw-r--r--web/app/view/dialog/Maintenance.js2
-rw-r--r--web/l10n/en.json1
2 files changed, 2 insertions, 1 deletions
diff --git a/web/app/view/dialog/Maintenance.js b/web/app/view/dialog/Maintenance.js
index e4be7b5b..5705278f 100644
--- a/web/app/view/dialog/Maintenance.js
+++ b/web/app/view/dialog/Maintenance.js
@@ -66,7 +66,7 @@ Ext.define('Traccar.view.dialog.Maintenance', {
allowBlank: false,
fieldLabel: Strings.maintenancePeriod,
validator: function (value) {
- return this.parseValue(value) !== 0 ? true : 'Can\'t be zero';
+ return this.parseValue(value) !== 0 ? true : Strings.errorZero;
}
}]
}]
diff --git a/web/l10n/en.json b/web/l10n/en.json
index 9b9a4996..99c1381e 100644
--- a/web/l10n/en.json
+++ b/web/l10n/en.json
@@ -109,6 +109,7 @@
"errorGeneral": "Invalid parameters or constraints violation",
"errorConnection": "Connection error",
"errorSocket": "Web socket connection error",
+ "errorZero": "Can't be zero",
"userEmail": "Email",
"userPassword": "Password",
"userAdmin": "Admin",