applications/luci-statistics: fix translations of cbi models and controller
[project/luci.git] / applications / luci-statistics / luasrc / model / cbi / luci_statistics / processes.lua
1 --[[
2
3 Luci configuration model for statistics - collectd processes plugin configuration
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 ]]--
15
16 m = Map("luci_statistics",
17 translate("Processes Plugin Configuration"),
18 translate(
19 "The processes plugin collects informations like cpu time, " ..
20 "page faults and memory usage of selected processes."
21 ))
22
23 -- collectd_processes config section
24 s = m:section( NamedSection, "collectd_processes", "luci_statistics" )
25
26 -- collectd_processes.enable
27 enable = s:option( Flag, "enable", translate("Enable this plugin") )
28 enable.default = 0
29
30 -- collectd_processes.processes (Process)
31 processes = s:option( Value, "Processes", translate("Monitor processes") )
32 processes.default = "olsrd bmxd httpd dnsmasq dropbear tinc"
33 processes:depends( "enable", 1 )
34
35 return m