summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2018-11-11 15:24:18 +0900
committerINAGAKI Hiroshi <musashino.open@gmail.com>2018-11-11 15:24:18 +0900
commitc3225c701269a70b746ef12d7500857685c3e46f (patch)
tree22ad56feae9f33236fb4e3a9320c691dc081952c /modules/luci-base
parent89e26911f10babbd551d0f721217f793847d9018 (diff)
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 <musashino.open@gmail.com>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/cbi.js4
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() {