summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-hd-idle/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-hd-idle/luasrc')
-rw-r--r--applications/luci-hd-idle/luasrc/controller/hd_idle.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/applications/luci-hd-idle/luasrc/controller/hd_idle.lua b/applications/luci-hd-idle/luasrc/controller/hd_idle.lua
index 9d5e5b3b3..e28983f39 100644
--- a/applications/luci-hd-idle/luasrc/controller/hd_idle.lua
+++ b/applications/luci-hd-idle/luasrc/controller/hd_idle.lua
@@ -16,13 +16,13 @@ $Id$
module("luci.controller.hd_idle", package.seeall)
function index()
- require("luci.i18n")
- luci.i18n.loadc("hd_idle")
- if not nixio.fs.access("/etc/config/hd-idle") then
- return
- end
-
- local page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), luci.i18n.translate("hd-idle"), 60)
- page.i18n = "hd_idle"
- page.dependent = true
+ if not nixio.fs.access("/etc/config/hd-idle") then
+ return
+ end
+
+ local page
+
+ page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), _("hd-idle"), 60)
+ page.i18n = "hd_idle"
+ page.dependent = true
end