libs/cbi: Fixed MultiValue select widget
[project/luci.git] / modules / admin-core / luasrc / controller / admin / uci.lua
index fc70b9b..215a13a 100644 (file)
@@ -1,9 +1,25 @@
+--[[
+LuCI - Lua Configuration Interface
+
+Copyright 2008 Steven Barth <steven@midlink.org>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+]]--
 module("luci.controller.admin.uci", package.seeall)
 
 function index()
-       node("admin", "uci", "changes").target = call("action_changes")
-       node("admin", "uci", "revert").target  = call("action_revert")
-       node("admin", "uci", "apply").target   = call("action_apply")
+       local i18n = luci.i18n.translate
+       
+       entry({"admin", "uci"}, nil, i18n("config"))
+       entry({"admin", "uci", "changes"}, call("action_changes"), i18n("changes"))
+       entry({"admin", "uci", "revert"}, call("action_revert"), i18n("revert"))
+       entry({"admin", "uci", "apply"}, call("action_apply"), i18n("apply"))
 end
 
 function convert_changes(changes)