From: Jo-Philipp Wich Date: Sat, 4 Oct 2008 18:42:06 +0000 (+0000) Subject: * luci/app/initmgr: fix translation issue in menu entry X-Git-Tag: 0.9.0~1149 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=97fcc6df3f79925e330eea609a7c3c5a59102675;p=oweals%2Fluci.git * luci/app/initmgr: fix translation issue in menu entry --- diff --git a/applications/luci-initmgr/luasrc/controller/init.lua b/applications/luci-initmgr/luasrc/controller/init.lua index 29445662b..aecf6c186 100644 --- a/applications/luci-initmgr/luasrc/controller/init.lua +++ b/applications/luci-initmgr/luasrc/controller/init.lua @@ -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