From 8816c8fff7e8e30f19e85c0f1c7f70b6914be701 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 27 Apr 2021 10:09:05 +0200 Subject: luci-app-statistics: treat APC UPS "host" setting as single value option Existing Lua code incorrectly stated that the "Host" option takes a space sparated list of hostnames which is not the case since the collect plugin does not handle multiple hosts. This change reverts the configuration to a simple value as proposed by the original PR and adjusts the config summary accordingly, while retaining the translation string. Ref: https://github.com/openwrt/luci/pull/5010#issuecomment-827285319 Fixes: dd5d96afd ("luci-app-statistics: fix APC UPS host configuration") Fixes: e7d22dce5 ("luci-app-statistics: convert collectd configuration to client side views") Signed-off-by: Jo-Philipp Wich --- applications/luci-app-statistics/po/pt/statistics.po | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'applications/luci-app-statistics/po/pt') diff --git a/applications/luci-app-statistics/po/pt/statistics.po b/applications/luci-app-statistics/po/pt/statistics.po index 37fc216efe..968ab5acaf 100644 --- a/applications/luci-app-statistics/po/pt/statistics.po +++ b/applications/luci-app-statistics/po/pt/statistics.po @@ -677,11 +677,10 @@ msgstr "Monitorando %s e %s" msgid "Monitoring %s, %s, %s" msgstr "Monitorando %s, %s, %s" -#: applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/apcups.js:29 +#: applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/apcups.js:26 +#, fuzzy msgid "Monitoring APC UPS at host %s, port %d" -msgid_plural "Monitoring APC UPS at hosts %s, port %d" -msgstr[0] "Monitorando APC UPS no host %s, porta %d" -msgstr[1] "Monitorando APC UPS nos hosts %s, porta %d" +msgstr "Monitorando APC UPS no host %s, porta %d" #: applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/dhcpleases.js:19 msgid "Monitoring DHCP leases enabled" @@ -1343,7 +1342,8 @@ msgstr "" #: applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js:8 msgid "" "The ipstatistics plugin collects IPv4 and IPv6 statistics to compare them." -msgstr "O plugin ipstatistics coleta estatísticas IPv4 e IPv6 para compará-las." +msgstr "" +"O plugin ipstatistics coleta estatísticas IPv4 e IPv6 para compará-las." #: applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js:9 msgid "" -- cgit v1.2.3