From c3225c701269a70b746ef12d7500857685c3e46f Mon Sep 17 00:00:00 2001 From: INAGAKI Hiroshi Date: Sun, 11 Nov 2018 15:24:18 +0900 Subject: [PATCH] luci-base: fix translation issues Fixed several issues for translation. - add translation markup to "Expecting " - add missing ")" into "valid time (HH:MM:SS" Signed-off-by: INAGAKI Hiroshi --- modules/luci-base/htdocs/luci-static/resources/cbi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index 1c2b14df6..0230ae9fa 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -243,7 +243,7 @@ var CBIValidatorPrototype = { valid = this.vstack[0].apply(this, this.vstack[1]); if (!valid) { - this.field.setAttribute('data-tooltip', 'Expecting ' + this.error); + this.field.setAttribute('data-tooltip', _('Expecting %s').format(this.error)); this.field.setAttribute('data-tooltip-style', 'error'); this.field.dispatchEvent(new CustomEvent('validation-failure', { bubbles: true })); } @@ -530,7 +530,7 @@ var CBIValidatorPrototype = { timehhmmss: function() { return this.assert(this.value.match(/^[0-6][0-9]:[0-6][0-9]:[0-6][0-9]$/), - _('valid time (HH:MM:SS')); + _('valid time (HH:MM:SS)')); }, dateyyyymmdd: function() { -- 2.25.1