summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-08 18:02:47 +0000
committerSteven Barth <steven@midlink.org>2008-06-08 18:02:47 +0000
commit2072ec939f8a9d0896fa44fabc98b055a7bfb4c9 (patch)
tree3990c2dc772ac0bfea655b0df548107635ff3e98 /applications/luci-olsr/luasrc/controller
parentd04d7bb8fad22f04fda4979755e2bc001065c0bc (diff)
* applications/luci-olsr: Translation
Diffstat (limited to 'applications/luci-olsr/luasrc/controller')
-rw-r--r--applications/luci-olsr/luasrc/controller/olsr.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/applications/luci-olsr/luasrc/controller/olsr.lua b/applications/luci-olsr/luasrc/controller/olsr.lua
index d795dc4ed6..a00dc3c547 100644
--- a/applications/luci-olsr/luasrc/controller/olsr.lua
+++ b/applications/luci-olsr/luasrc/controller/olsr.lua
@@ -5,18 +5,22 @@ function index()
return
end
+ require("luci.i18n").loadc("olsr")
+ local i18n = luci.i18n.translate
+
local page = node("admin", "status", "olsr")
page.target = call("action_index")
page.title = "OLSR"
+ page.i18n = "olsr"
local page = node("admin", "status", "olsr", "routes")
page.target = call("action_routes")
- page.title = "Routen"
+ page.title = i18n("olsr_routes", "Routen")
page.order = 10
local page = node("admin", "status", "olsr", "topology")
page.target = call("action_topology")
- page.title = "Topologie"
+ page.title = i18n("olsr_topology", "Topologie")
page.order = 20
local page = node("admin", "status", "olsr", "hna")
@@ -29,7 +33,7 @@ function index()
page.title = "MID"
page.order = 50
- entry({"admin", "services", "olsrd"}, cbi("olsr/olsrd"), "OLSR")
+ entry({"admin", "services", "olsrd"}, cbi("olsr/olsrd"), "OLSR").i18n = "olsr"
end
function action_index()