X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-statistics%2Fluasrc%2Fmodel%2Fcbi%2Fluci_statistics%2Fexec.lua;h=7609f24583c399ef41cd016bac0ead4de355e64c;hp=ce97f7391addafe85c02c158c4438b50f41e2537;hb=f271588cd760680fab9b8864a080c749e21679ad;hpb=9ed5a0d6fa01962d97333e5ba8c57c3e008410f2 diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/exec.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/exec.lua index ce97f7391..7609f2458 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/exec.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/exec.lua @@ -13,18 +13,30 @@ $Id$ ]]-- -m = Map("luci_statistics") +m = Map("luci_statistics", + translate("Exec Plugin Configuration"), + translate( + "The exec plugin starts external commands to read values " .. + "from or to notify external processes when certain threshold " .. + "values have been reached." + )) -- collectd_exec config section s = m:section( NamedSection, "collectd_exec", "luci_statistics" ) -- collectd_exec.enable -enable = s:option( Flag, "enable" ) +enable = s:option( Flag, "enable", translate("Enable this plugin") ) enable.default = 0 -- collectd_exec_input config section (Exec directives) -exec = m:section( TypedSection, "collectd_exec_input" ) +exec = m:section( TypedSection, "collectd_exec_input", + translate("Add command for reading values"), + translate( + "Here you can define external commands which will be " .. + "started by collectd in order to read certain values. " .. + "The values will be read from stdout." + )) exec.addremove = true exec.anonymous = true @@ -46,7 +58,14 @@ exec_cmdgroup.optional = true -- collectd_exec_notify config section (NotifyExec directives) -notify = m:section( TypedSection, "collectd_exec_notify" ) +notify = m:section( TypedSection, "collectd_exec_notify", + translate("Add notification command"), + translate( + "Here you can define external commands which will be " .. + "started by collectd when certain threshold values have " .. + "been reached. The values leading to invokation will be " .. + "feeded to the the called programs stdin." + )) notify.addremove = true notify.anonymous = true