diff options
author | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2010-07-01 11:42:16 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2010-07-01 11:42:16 +0000 |
commit | 0c602e80e869c40e204a191964d338df41d005fd (patch) | |
tree | 19dd18b1646223e61ce37358b59fc2bbe8e43f7b /applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | |
parent | 8caa92b1c80c75413eb8ae3d8d3fc1efcd916301 (diff) |
[applications] luci-olsr: Add some missing translations
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua')
-rw-r--r-- | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua index a387c4c065..dbd6ff925c 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua @@ -19,11 +19,11 @@ local fs = require "nixio.fs" if arg[1] then mp = Map("olsrd", translate("OLSR - Plugins")) - p = mp:section(TypedSection, "LoadPlugin") + p = mp:section(TypedSection, "LoadPlugin", translate("Plugin configuration")) p:depends("library", arg[1]) p.anonymous = true - ign = p:option(Flag, "ignore", "Enable") + ign = p:option(Flag, "ignore", translate("Enable")) ign.enabled = "0" ign.disabled = "1" ign.rmempty = false @@ -162,7 +162,7 @@ if arg[1] then end if otype == Flag then - local bool = p:option( Flag, name ) + local bool = p:option( Flag, name, name ) if default == "yes" or default == "no" then bool.enabled = "yes" bool.disabled = "no" @@ -180,7 +180,7 @@ if arg[1] then bool.default = default bool:depends({ library = plugin }) else - local field = p:option( otype, name ) + local field = p:option( otype, name, name ) if values then for _, value in ipairs(values) do field:value( value ) @@ -207,7 +207,7 @@ if arg[1] then else - mpi = Map("olsrd", "OLSR - Plugins") + mpi = Map("olsrd", translate("OLSR - Plugins")) local plugins = {} mpi.uci:foreach("olsrd", "LoadPlugin", @@ -230,7 +230,7 @@ else end end - t = mpi:section( TypedSection, "LoadPlugin", "Plugins" ) + t = mpi:section( TypedSection, "LoadPlugin", translate("Plugins") ) t.anonymous = true t.template = "cbi/tblsection" t.override_scheme = true @@ -239,7 +239,7 @@ else return luci.dispatcher.build_url("admin", "services", "olsrd", "plugins") .. "/" .. lib end - ign = t:option( Flag, "ignore", "Enabled" ) + ign = t:option( Flag, "ignore", translate("Enabled") ) ign.enabled = "0" ign.disabled = "1" ign.rmempty = false @@ -247,7 +247,7 @@ else return Flag.cfgvalue(self, section) or "0" end - t:option( DummyValue, "library", "Library" ) + t:option( DummyValue, "library", translate("Library") ) return mpi end |