summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-p910nd
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-08-12 13:16:27 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-08-12 13:16:27 +0000
commit1d76d8a2158ec397322e54da0b6ad3ca4cadb621 (patch)
tree4c4044d2ca009fa88c154379e439bb2dc784b3a4 /applications/luci-p910nd
parenta8ac3b344f5dee7a79455faa0c699e561464cf4d (diff)
applications, modules: remove i18n handling from controller modules as it moved to the themes now
Diffstat (limited to 'applications/luci-p910nd')
-rw-r--r--applications/luci-p910nd/luasrc/controller/p910nd.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/applications/luci-p910nd/luasrc/controller/p910nd.lua b/applications/luci-p910nd/luasrc/controller/p910nd.lua
index c2fe3fa51..bc38c2bb9 100644
--- a/applications/luci-p910nd/luasrc/controller/p910nd.lua
+++ b/applications/luci-p910nd/luasrc/controller/p910nd.lua
@@ -16,13 +16,13 @@ $Id$
module("luci.controller.p910nd", package.seeall)
function index()
- require("luci.i18n")
- luci.i18n.loadc("p910nd")
- if not nixio.fs.access("/etc/config/p910nd") then
- return
- end
-
- local page = entry({"admin", "services", "p910nd"}, cbi("p910nd"), luci.i18n.translate("p910nd - Printer server"), 60)
- page.i18n = "p910nd"
- page.dependent = true
+ if not nixio.fs.access("/etc/config/p910nd") then
+ return
+ end
+
+ local page
+
+ page = entry({"admin", "services", "p910nd"}, cbi("p910nd"), _("p910nd - Printer server"), 60)
+ page.i18n = "p910nd"
+ page.dependent = true
end