X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=applications%2Fluci-statistics%2Fluasrc%2Fmodel%2Fcbi%2Fluci_statistics%2Fnetwork.lua;fp=applications%2Fluci-statistics%2Fluasrc%2Fmodel%2Fcbi%2Fluci_statistics%2Fnetwork.lua;h=8a0068973e4caf24874b869e765e9b8632e17a70;hb=f271588cd760680fab9b8864a080c749e21679ad;hp=f6302abc0cc002bd76977a00c458f4ca52486f90;hpb=9ed5a0d6fa01962d97333e5ba8c57c3e008410f2;p=project%2Fluci.git diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/network.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/network.lua index f6302abc0..8a0068973 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/network.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/network.lua @@ -14,62 +14,81 @@ $Id$ ]]-- -m = Map("luci_statistics") +m = Map("luci_statistics", + translate("Network Plugin Configuration"), + translate( + "The network plugin provides network based communication between " .. + "different collectd instances. Collectd can operate both in client " .. + "and server mode. In client mode locally collected date is " .. + "transferred to a collectd server instance, in server mode the " .. + "local instance receives data from other hosts." + )) -- collectd_network config section s = m:section( NamedSection, "collectd_network", "luci_statistics" ) -- collectd_network.enable -enable = s:option( Flag, "enable" ) +enable = s:option( Flag, "enable", translate("Enable this plugin") ) enable.default = 0 -- collectd_network_listen config section (Listen) -listen = m:section( TypedSection, "collectd_network_listen" ) +listen = m:section( TypedSection, "collectd_network_listen", + translate("Listener interfaces"), + translate( + "This section defines on which interfaces collectd will wait " .. + "for incoming connections." + )) listen.addremove = true listen.anonymous = true -- collectd_network_listen.host -listen_host = listen:option( Value, "host" ) +listen_host = listen:option( Value, "host", translate("Listen host") ) listen_host.default = "0.0.0.0" -- collectd_network_listen.port -listen_port = listen:option( Value, "port" ) +listen_port = listen:option( Value, "port", translate("Listen port") ) listen_port.default = 25826 listen_port.isinteger = true listen_port.optional = true -- collectd_network_server config section (Server) -server = m:section( TypedSection, "collectd_network_server" ) +server = m:section( TypedSection, "collectd_network_server", + translate("server interfaces"), + translate( + "This section defines to which servers the locally collected " .. + "data is sent to." + )) server.addremove = true server.anonymous = true -- collectd_network_server.host -server_host = server:option( Value, "host" ) +server_host = server:option( Value, "host", translate("Server host") ) server_host.default = "0.0.0.0" -- collectd_network_server.port -server_port = server:option( Value, "port" ) +server_port = server:option( Value, "port", translate("Server port") ) server_port.default = 25826 server_port.isinteger = true server_port.optional = true -- collectd_network.timetolive (TimeToLive) -ttl = s:option( Value, "TimeToLive" ) +ttl = s:option( Value, "TimeToLive", translate("TTL for network packets") ) ttl.default = 128 ttl.isinteger = true ttl.optional = true ttl:depends( "enable", 1 ) -- collectd_network.forward (Forward) -forward = s:option( Flag, "Forward" ) +forward = s:option( Flag, "Forward", translate("Forwarding between listen and server addresses") ) forward.default = 0 forward.optional = true forward:depends( "enable", 1 ) -- collectd_network.cacheflush (CacheFlush) -cacheflush = s:option( Value, "CacheFlush" ) +cacheflush = s:option( Value, "CacheFlush", + translate("Cache flush interval"), translate("Seconds") ) cacheflush.default = 86400 cacheflush.isinteger = true cacheflush.optional = true