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 /modules/admin-mini/luasrc/controller/mini/index.lua | |
parent | a8ac3b344f5dee7a79455faa0c699e561464cf4d (diff) |
applications, modules: remove i18n handling from controller modules as it moved to the themes now
Diffstat (limited to 'modules/admin-mini/luasrc/controller/mini/index.lua')
-rw-r--r-- | modules/admin-mini/luasrc/controller/mini/index.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/modules/admin-mini/luasrc/controller/mini/index.lua b/modules/admin-mini/luasrc/controller/mini/index.lua index 81c0846bfa..9d6a38ed43 100644 --- a/modules/admin-mini/luasrc/controller/mini/index.lua +++ b/modules/admin-mini/luasrc/controller/mini/index.lua @@ -16,9 +16,6 @@ $Id$ module("luci.controller.mini.index", package.seeall) function index() - luci.i18n.loadc("base") - local i18n = luci.i18n.translate - local root = node() if not root.lock then root.target = alias("mini") @@ -27,15 +24,15 @@ function index() entry({"about"}, template("about")) - local page = entry({"mini"}, alias("mini", "index"), i18n("Essentials"), 10) + local page = entry({"mini"}, alias("mini", "index"), _("Essentials"), 10) page.sysauth = "root" page.sysauth_authenticator = "htmlauth" page.index = true - entry({"mini", "index"}, alias("mini", "index", "index"), i18n("Overview"), 10).index = true - entry({"mini", "index", "index"}, form("mini/index"), i18n("General"), 1).ignoreindex = true - entry({"mini", "index", "luci"}, cbi("mini/luci", {autoapply=true}), i18n("Settings"), 10) - entry({"mini", "index", "logout"}, call("action_logout"), i18n("Logout")) + entry({"mini", "index"}, alias("mini", "index", "index"), _("Overview"), 10).index = true + entry({"mini", "index", "index"}, form("mini/index"), _("General"), 1).ignoreindex = true + entry({"mini", "index", "luci"}, cbi("mini/luci", {autoapply=true}), _("Settings"), 10) + entry({"mini", "index", "logout"}, call("action_logout"), _("Logout")) end function action_logout() |