From: INAGAKI Hiroshi Date: Sun, 11 Nov 2018 06:24:18 +0000 (+0900) Subject: luci-base: fix translation issues X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c3225c701269a70b746ef12d7500857685c3e46f;p=oweals%2Fluci.git 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 --- 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() {