* luci/app/initmgr: fix translation issue in menu entry
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 4 Oct 2008 18:42:06 +0000 (18:42 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 4 Oct 2008 18:42:06 +0000 (18:42 +0000)
applications/luci-initmgr/luasrc/controller/init.lua

index 29445662bdc78205370090abe9c6c42758ecb8a4..aecf6c1863e4328499cb84aca49dae4a697cb310 100644 (file)
@@ -19,7 +19,11 @@ function index()
                return
        end
 
-       local page = entry({"admin", "system", "init"}, form("init/init"), luci.i18n.translate("initmgr", "Init Scripts"))
-       page.i18n = "initmgr"
-       page.dependent = true
+       require("luci.i18n")
+       luci.i18n.loadc("initmgr")
+
+       entry(
+               {"admin", "system", "init"}, form("init/init"),
+               luci.i18n.translate("initmgr", "Init Scripts")
+       ).i18n = "initmgr"
 end