summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-core
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-05 10:31:58 +0000
committerSteven Barth <steven@midlink.org>2008-07-05 10:31:58 +0000
commitdc5dfb5da06e3acb622a4471eb99d803fb09e664 (patch)
treef58eead6d7667140ab463fb7fe580fd7eb0166b1 /modules/admin-core
parent653f5e2361c667b7f6dda0d6b20dbc42b4b7c7da (diff)
* modules/admin-core: Add translation for UCI changes, revert and apply page title
Diffstat (limited to 'modules/admin-core')
-rw-r--r--modules/admin-core/luasrc/controller/admin/uci.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/admin-core/luasrc/controller/admin/uci.lua b/modules/admin-core/luasrc/controller/admin/uci.lua
index b69fef4cd..215a13a34 100644
--- a/modules/admin-core/luasrc/controller/admin/uci.lua
+++ b/modules/admin-core/luasrc/controller/admin/uci.lua
@@ -14,9 +14,12 @@ $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)