diff options
author | Florian Eckert <fe@dev.tdt.de> | 2022-06-30 09:58:08 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2022-06-30 10:17:07 +0200 |
commit | 675a0eae5661bd207c3e818b3c1d8fa4d2577c5b (patch) | |
tree | d3552bd4f627d5cb459b55979a6d8febbdacddf5 /applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3 | |
parent | 14bab8c8712181c7d83f8ee753c16f2cee0c6d1f (diff) |
luci-app-mwan3: fix i18n plural warning
Updating applications/luci-app-mwan3/po/templates/mwan3.pot ...
xgettext: warning: msgid '%d second' is used without plural and with
plural.
standard input:175: Here is the occurrence without plural.
standard input:170: Here is the occurrence with plural.
Workaround: If the msgid is a sentence, change the wording of the
sentence; otherwise, use contexts for disambiguation.
xgettext: warning: msgid '%d second' is used without plural and with
plural.
standard input:191: Here is the occurrence without plural.
standard input:170: Here is the occurrence with plural.
Workaround: If the msgid is a sentence, change the wording of the
sentence; otherwise, use contexts for disambiguation.
xgettext: warning: msgid '%d second' is used without plural and with
plural.
standard input:213: Here is the occurrence without plural.
standard input:170: Here is the occurrence with plural.
Workaround: If the msgid is a sentence, change the wording of the
sentence; otherwise, use contexts for disambiguation.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3')
-rw-r--r-- | applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js index dacb4d3914..74c1718322 100644 --- a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js +++ b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/interface.js @@ -166,8 +166,9 @@ return view.extend({ o = s.option(form.ListValue, "timeout", _("Ping timeout")); o.default = '4'; - for (var i = 1; i <= 10; i++) - o.value(String(i), N_(i, '%d second', '%d seconds').format(i)); + o.value('1', _('%d second').format('1')); + for (var i = 2; i <= 10; i++) + o.value(String(i), _('%d seconds').format(i)); o.modalonly = true; o = s.option(form.ListValue, 'interval', _('Ping interval')); |