diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:16:27 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:16:27 +0000 |
commit | 1d76d8a2158ec397322e54da0b6ad3ca4cadb621 (patch) | |
tree | 4c4044d2ca009fa88c154379e439bb2dc784b3a4 /applications/luci-hd-idle/luasrc | |
parent | a8ac3b344f5dee7a79455faa0c699e561464cf4d (diff) |
applications, modules: remove i18n handling from controller modules as it moved to the themes now
Diffstat (limited to 'applications/luci-hd-idle/luasrc')
-rw-r--r-- | applications/luci-hd-idle/luasrc/controller/hd_idle.lua | 18 |
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 |