applications/luci-statistics: fix translations of cbi models and controller
[project/luci.git] / applications / luci-statistics / luasrc / model / cbi / luci_statistics / dns.lua
index 02fa4cb..bfaeb42 100644 (file)
@@ -16,13 +16,18 @@ $Id$
 require("luci.sys")
 
 
-m = Map("luci_statistics")
+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" )
 
 -- collectd_dns.enable
-enable = s:option( Flag, "enable" )
+enable = s:option( Flag, "enable", translate("Enable this plugin") )
 enable.default = 0
 
 -- collectd_dns.interfaces (Interface)
@@ -36,7 +41,7 @@ for k, v in pairs(luci.sys.net.devices()) do
 end
          
 -- collectd_dns.ignoresources (IgnoreSource)
-ignoresources = s:option( Value, "IgnoreSources" )
+ignoresources = s:option( Value, "IgnoreSources", translate("Ignore source addresses") )
 ignoresources.default = "127.0.0.1"
 ignoresources:depends( "enable", 1 )