summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-hd-idle/luasrc
diff options
context:
space:
mode:
authorBenoît Knecht <benoit.knecht@gmail.com>2010-04-14 08:58:08 +0000
committerBenoît Knecht <benoit.knecht@gmail.com>2010-04-14 08:58:08 +0000
commitae05491d07bd0e738d563a7729d53c4da46ff31e (patch)
treec795caa5c4b34383a1beb92ec618fcb0d5f5871f /applications/luci-hd-idle/luasrc
parentf271588cd760680fab9b8864a080c749e21679ad (diff)
hd-idle: clean-up translation strings
Diffstat (limited to 'applications/luci-hd-idle/luasrc')
-rw-r--r--applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua b/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua
index 82b9eaa74..d1a88414e 100644
--- a/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua
+++ b/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua
@@ -15,12 +15,14 @@ $Id$
require("nixio.fs")
-m = Map("hd-idle", translate("hd-idle"), translate("hd-idle is a utility program for spinning-down external disks after a period of idle time."))
+m = Map("hd-idle", "hd-idle",
+ translate("hd-idle is a utility program for spinning-down external " ..
+ "disks after a period of idle time."))
s = m:section(TypedSection, "hd-idle", translate("Settings"))
s.anonymous = true
-s:option(Flag, "enabled", translate("enable"))
+s:option(Flag, "enabled", translate("Enable"))
disk = s:option(Value, "disk", translate("Disk"))
disk.rmempty = true
@@ -28,12 +30,12 @@ for dev in nixio.fs.glob("/dev/[sh]d[a-z]") do
disk:value(nixio.fs.basename(dev))
end
-s:option(Value, "idle_time_interval", translate("Idle-Time")).default = 10
+s:option(Value, "idle_time_interval", translate("Idle-time")).default = 10
s.rmempty = true
-unit = s:option(ListValue, "idle_time_unit", translate("Idle-Time unit"))
+unit = s:option(ListValue, "idle_time_unit", translate("Idle-time unit"))
unit.default = "minutes"
-unit:value("minutes", "min")
-unit:value("hours", "h")
+unit:value("minutes", translate("min"))
+unit:value("hours", translate("h"))
unit.rmempty = true
s:option(Flag, "enable_debug", translate("Enable debug"))