modules/admin-full: use firewall reload action
[project/luci.git] / modules / admin-full / luasrc / controller / admin / index.lua
index b7bf369..4e83252 100644 (file)
@@ -11,12 +11,10 @@ You may obtain a copy of the License at
 
 $Id$
 ]]--
+
 module("luci.controller.admin.index", package.seeall)
 
 function index()
-       luci.i18n.loadc("base")
-       local i18n = luci.i18n.translate
-
        local root = node()
        if not root.target then
                root.target = alias("admin")
@@ -24,15 +22,18 @@ function index()
        end
 
        local page   = node("admin")
-       page.target  = alias("admin", "status")
-       page.title   = i18n("Administration")
+       page.target  = firstchild()
+       page.title   = _("Administration")
        page.order   = 10
        page.sysauth = "root"
        page.sysauth_authenticator = "htmlauth"
        page.ucidata = true
        page.index = true
 
-       entry({"admin", "logout"}, call("action_logout"), i18n("Logout"), 90)
+       -- Empty services menu to be populated by addons
+       entry({"admin", "services"}, firstchild(), _("Services"), 40).index = true
+
+       entry({"admin", "logout"}, call("action_logout"), _("Logout"), 90)
 end
 
 function action_logout()