From 0ce5bc325c194acfb619d04db352fdba1b79d8b1 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 20 Apr 2018 08:54:04 +0500 Subject: Make string translatable --- web/app/view/dialog/Maintenance.js | 2 +- web/l10n/en.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3