X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=applications%2Fluci-statistics%2Fluasrc%2Fmodel%2Fcbi%2Fluci_statistics%2Fdns.lua;h=bfaeb423c2f5a101e155d2e6ca2005c9d39a4748;hb=f271588cd760680fab9b8864a080c749e21679ad;hp=dc7f57d68fa2468919fefc9e6a54d96a26df68a2;hpb=d35a620e9f5665a94967f4bd02c93581a1dd7e00;p=project%2Fluci.git diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua index dc7f57d68f..bfaeb423c2 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua @@ -16,26 +16,32 @@ $Id$ require("luci.sys") -m = Map("luci_statistics", "DNS Plugin", -[[Das DNS-Plugin nutzt die pcap Bibliothek um DNS-Verkehr zu analysieren.]]) +m = Map("luci_statistics", + translate("DNS Plugin Configuration"), + translate( + "The dns plugin collects detailled statistics about dns " .. + "related traffic on selected interfaces." + )) -- collectd_dns config section -s = m:section( NamedSection, "collectd_dns", "luci_statistics", "Pluginkonfiguration" ) +s = m:section( NamedSection, "collectd_dns", "luci_statistics" ) -- collectd_dns.enable -enable = s:option( Flag, "enable", "Plugin aktivieren" ) +enable = s:option( Flag, "enable", translate("Enable this plugin") ) enable.default = 0 -- collectd_dns.interfaces (Interface) -interfaces = s:option( ListValue, "Interface", "Folgende Schnittstelle überwachen:" ) +interfaces = s:option( MultiValue, "Interfaces" ) +interfaces.widget = "select" +interfaces.size = 5 interfaces:depends( "enable", 1 ) interfaces:value("any") for k, v in pairs(luci.sys.net.devices()) do - interfaces:value(v) + interfaces:value(v) end - + -- collectd_dns.ignoresources (IgnoreSource) -ignoresources = s:option( Value, "IgnoreSources", "Verkehr von folgenden IP Adressen ignorieren:", "mehrere Einträge mit Leerzeichen trennen" ) +ignoresources = s:option( Value, "IgnoreSources", translate("Ignore source addresses") ) ignoresources.default = "127.0.0.1" ignoresources:depends( "enable", 1 )