summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/model/cbi
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/model/cbi
parentd04d7bb8fad22f04fda4979755e2bc001065c0bc (diff)
* applications/luci-olsr: Translation
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi')
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua84
1 files changed, 44 insertions, 40 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
index 3e3c68dff..c8fe03edd 100644
--- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
+++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
@@ -1,55 +1,66 @@
--- ToDo: Autodetect things, Translate, Add descriptions
+--[[
+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$
+]]--
require("luci.fs")
-m = Map("olsr", "OLSR", [[OLSR ist ein flexibles Routingprotokoll,
-dass den Aufbau von mobilen Ad-Hoc Netzen unterstützt.]])
+m = Map("olsr", "OLSR")
-s = m:section(NamedSection, "general", "olsr", "Allgemeine Einstellungen")
+s = m:section(NamedSection, "general", "olsr")
-debug = s:option(ListValue, "DebugLevel", "Debugmodus")
+debug = s:option(ListValue, "DebugLevel")
for i=0, 9 do
debug:value(i)
end
-ipv = s:option(ListValue, "IpVersion", "Internet Protokoll")
+ipv = s:option(ListValue, "IpVersion")
ipv:value("4", "IPv4")
ipv:value("6", "IPv6")
-noint = s:option(Flag, "AllowNoInt", "Start ohne Netzwerk")
+noint = s:option(Flag, "AllowNoInt")
noint.enabled = "yes"
noint.disabled = "no"
-s:option(Value, "Pollrate", "Abfragerate (Pollrate)", "s")
+s:option(Value, "Pollrate")
-tcr = s:option(ListValue, "TcRedundancy", "TC-Redundanz")
-tcr:value("0", "MPR-Selektoren")
-tcr:value("1", "MPR-Selektoren und MPR")
-tcr:value("2", "Alle Nachbarn")
+tcr = s:option(ListValue, "TcRedundancy")
+tcr:value("0", translate("olsr_general_TcRedundancy_0", "MPR-Selektoren"))
+tcr:value("1", translate("olsr_general_TcRedundancy_1", "MPR-Selektoren und MPR"))
+tcr:value("2", translate("olsr_general_TcRedundancy_2", "Alle Nachbarn"))
-s:option(Value, "MprCoverage", "MPR-Erfassung")
+s:option(Value, "MprCoverage")
-lql = s:option(ListValue, "LinkQualityLevel", "VQ-Level")
-lql:value("0", "deaktiviert")
-lql:value("1", "MPR-Auswahl")
-lql:value("2", "MPR-Auswahl und Routing")
+lql = s:option(ListValue, "LinkQualityLevel")
+lql:value("0", translate("disable", "deaktivieren"))
+lql:value("1", translate("olsr_general_LinkQualityLevel_1", "MPR-Auswahl"))
+lql:value("2", translate("olsr_general_LinkQualityLevel_2", "MPR-Auswahl und Routing"))
-lqfish = s:option(Flag, "LinkQualityFishEye", "VQ-Fisheye")
+lqfish = s:option(Flag, "LinkQualityFishEye")
-s:option(Value, "LinkQualityWinSize", "VQ-Fenstergröße")
+s:option(Value, "LinkQualityWinSize")
-s:option(Value, "LinkQualityDijkstraLimit", "VQ-Dijkstralimit")
+s:option(Value, "LinkQualityDijkstraLimit")
-hyst = s:option(Flag, "UseHysteresis", "Hysterese aktivieren")
+hyst = s:option(Flag, "UseHysteresis")
hyst.enabled = "yes"
hyst.disabled = "no"
-i = m:section(TypedSection, "Interface", "Schnittstellen")
+i = m:section(TypedSection, "Interface", translate("interfaces", "Schnittstellen"))
i.anonymous = true
i.addremove = true
i.dynamic = true
-network = i:option(ListValue, "Interface", "Netzwerkschnittstellen")
+network = i:option(ListValue, "Interface", translate("network", "Netzwerk"))
network:value("")
luci.model.uci.foreach("network", "interface",
function (section)
@@ -58,28 +69,21 @@ luci.model.uci.foreach("network", "interface",
end
end)
-i:option(Value, "HelloInterval", "Hello-Intervall")
-
-i:option(Value, "HelloValidityTime", "Hello-Gültigkeit")
-
-i:option(Value, "TcInterval", "TC-Intervall")
-
-i:option(Value, "TcValidityTime", "TC-Gültigkeit")
-
-i:option(Value, "MidInterval", "MID-Intervall")
-
-i:option(Value, "MidValidityTime", "MID-Gültigkeit")
-
-i:option(Value, "HnaInterval", "HNA-Intervall")
-
-i:option(Value, "HnaValidityTime", "HNA-Gültigkeit")
+i:option(Value, "HelloInterval")
+i:option(Value, "HelloValidityTime")
+i:option(Value, "TcInterval")
+i:option(Value, "TcValidityTime")
+i:option(Value, "MidInterval")
+i:option(Value, "MidValidityTime")
+i:option(Value, "HnaInterval")
+i:option(Value, "HnaValidityTime")
-p = m:section(TypedSection, "LoadPlugin", "Plugins")
+p = m:section(TypedSection, "LoadPlugin")
p.addremove = true
p.dynamic = true
-lib = p:option(ListValue, "Library", "Bibliothek")
+lib = p:option(ListValue, "Library", translate("library", "Bibliothek"))
lib:value("")
for k, v in pairs(luci.fs.dir("/usr/lib")) do
if v:sub(1, 6) == "olsrd_" then