applications/luci-statistics: fix translations of cbi models and controller
[project/luci.git] / applications / luci-statistics / luasrc / model / cbi / luci_statistics / irq.lua
1 --[[
2
3 Luci configuration model for statistics - collectd irq 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("IRQ Plugin Configuration"),
18 translate(
19 "The irq plugin will monitor the rate of issues per second for " ..
20 "each selected interrupt. If no interrupt is selected then all " ..
21 "interrupts are monitored."
22 ))
23
24 -- collectd_irq config section
25 s = m:section( NamedSection, "collectd_irq", "luci_statistics" )
26
27 -- collectd_irq.enable
28 enable = s:option( Flag, "enable", translate("Enable this plugin") )
29 enable.default = 0
30
31 -- collectd_irq.irqs (Irq)
32 irqs = s:option( Value, "Irqs", translate("Monitor interrupts") )
33 irqs.optional = true
34 irqs:depends( "enable", 1 )
35
36 -- collectd_irq.ignoreselected (IgnoreSelected)
37 ignoreselected = s:option( Flag, "IgnoreSelected" )
38 ignoreselected.default = 0
39 ignoreselected.optional = "true"
40 ignoreselected:depends( "enable", 1 )
41
42 return m