summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-31 15:54:11 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-31 15:54:11 +0000
commit7c765875884d6866c53b63757731b079bace2e9b (patch)
treedb436df0eaff7de048bca26a7e419aedeb4a08a4 /applications/luci-olsr/luasrc/model
parentdc7138e424dfd454951ed5ed4eeddbf842457e87 (diff)
all: change most translate statements to new format, some need manual cleanup
Diffstat (limited to 'applications/luci-olsr/luasrc/model')
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua24
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua2
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua4
3 files changed, 15 insertions, 15 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
index 74e2ba0d51..d5b771096e 100644
--- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
+++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
@@ -14,7 +14,7 @@ $Id$
require("luci.tools.webadmin")
-m = Map("olsrd", translate("olsrd", "OLSR Daemon"))
+m = Map("olsrd", translate("OLSR Daemon"))
s = m:section(TypedSection, "olsrd", translate("olsrd_general"))
s.dynamic = true
@@ -38,26 +38,26 @@ noint.optional = true
s:option(Value, "Pollrate").optional = true
tcr = s:option(ListValue, "TcRedundancy")
-tcr:value("0", translate("olsrd_olsrd_tcredundancy_0"))
-tcr:value("1", translate("olsrd_olsrd_tcredundancy_1"))
-tcr:value("2", translate("olsrd_olsrd_tcredundancy_2"))
+tcr:value("0", translate("MPR selectors"))
+tcr:value("1", translate("MPR selectors and MPR"))
+tcr:value("2", translate("all neighbours"))
tcr.optional = true
s:option(Value, "MprCoverage").optional = true
lql = s:option(ListValue, "LinkQualityLevel")
lql:value("0", translate("disable"))
-lql:value("1", translate("olsrd_olsrd_linkqualitylevel_1"))
-lql:value("2", translate("olsrd_olsrd_linkqualitylevel_2"))
+lql:value("1", translate("MPR selection"))
+lql:value("2", translate("MPR selection and routing"))
lql.optional = true
s:option(Value, "LinkQualityAging").optional = true
lqa = s:option(ListValue, "LinkQualityAlgorithm")
lqa.optional = true
-lqa:value("etx_fpm", translate("olsrd_etx_fpm"))
-lqa:value("etx_float", translate("olsrd_etx_float"))
-lqa:value("etx_ff", translate("olsrd_etx_ff"))
+lqa:value("etx_fpm", translate("fixed point math"))
+lqa:value("etx_float", translate("floating point"))
+lqa:value("etx_ff", translate("Freifunk"))
lqa.optional = true
lqfish = s:option(Flag, "LinkQualityFishEye")
@@ -92,7 +92,7 @@ willingness.optional = true
-i = m:section(TypedSection, "Interface", translate("interfaces"))
+i = m:section(TypedSection, "Interface", translate("Interfaces"))
i.anonymous = true
i.addremove = true
i.dynamic = true
@@ -105,13 +105,13 @@ function ign.cfgvalue(self, section)
return Flag.cfgvalue(self, section) or "0"
end
-network = i:option(ListValue, "interface", translate("network"))
+network = i:option(ListValue, "interface", translate("Network"))
luci.tools.webadmin.cbi_add_networks(network)
i:option(Value, "Ip4Broadcast").optional = true
ip6t = i:option(ListValue, "Ip6AddrType")
-ip6t:value("", translate("cbi_select"))
+ip6t:value("", translate("-- Please choose --"))
ip6t:value("auto")
ip6t:value("site-local")
ip6t:value("unique-local")
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
index ea2f88d794..c9217f68e6 100644
--- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
+++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
@@ -12,7 +12,7 @@ You may obtain a copy of the License at
$Id$
]]--
-mh = Map("olsrd", translate("olsrd_hna", "OLSR - HNA-Ankündigungen"))
+mh = Map("olsrd", translate("OLSR - HNA-Announcements"))
hna4 = mh:section(TypedSection, "Hna4")
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua
index f81a4a4b41..a387c4c065 100644
--- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua
+++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua
@@ -17,7 +17,7 @@ local ip = require "luci.ip"
local fs = require "nixio.fs"
if arg[1] then
- mp = Map("olsrd", translate("olsrd_plugins", "OLSR - Plugins"))
+ mp = Map("olsrd", translate("OLSR - Plugins"))
p = mp:section(TypedSection, "LoadPlugin")
p:depends("library", arg[1])
@@ -31,7 +31,7 @@ if arg[1] then
return Flag.cfgvalue(self, section) or "0"
end
- lib = p:option(DummyValue, "library", translate("library"))
+ lib = p:option(DummyValue, "library", translate("Library"))
lib.default = arg[1]
local function Range(x,y)