diff options
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/cbi.js | 4 |
1 files 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() { |