applications, modules: remove i18n handling from controller modules as it moved to...
[project/luci.git] / applications / luci-p910nd / luasrc / controller / p910nd.lua
index c2fe3fa..bc38c2b 100644 (file)
@@ -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