diff options
author | Steven Barth <steven@midlink.org> | 2008-06-08 15:36:57 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-08 15:36:57 +0000 |
commit | 14438002a1df1e56564e19eec4726a077c0cfa0e (patch) | |
tree | d5421d802fb6479d75769bed3078220263824159 /applications/luci-fw/luasrc/model | |
parent | 2d5110fcb4fe30c3923fb745146c6766d5dfbf9c (diff) |
* More Translation
Diffstat (limited to 'applications/luci-fw/luasrc/model')
3 files changed, 71 insertions, 42 deletions
diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/firewall.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/firewall.lua index 6bd7f083d..b04e0532d 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/firewall.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/firewall.lua @@ -1,22 +1,33 @@ --- ToDo: Translate, Add descriptions and help texts -m = Map("luci_fw", "Firewall", [[Mit Hilfe der Firewall können Zugriffe auf das Netzwerk -erlaubt, verboten oder umgeleitet werden.]]) +--[[ +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$ +]]-- +m = Map("luci_fw", translate("fw_fw", "Firewall"), translate("fw_fw1")) s = m:section(TypedSection, "rule", "") s.addremove = true s.anonymous = true -chain = s:option(ListValue, "chain", "Kette") +chain = s:option(ListValue, "chain") chain:value("forward", "Forward") chain:value("input", "Input") chain:value("output", "Output") chain:value("prerouting", "Prerouting") chain:value("postrouting", "Postrouting") -iface = s:option(ListValue, "iface", "Eingangsschnittstelle") +iface = s:option(ListValue, "iface") iface.optional = true -oface = s:option(ListValue, "oface", "Ausgangsschnittstelle") +oface = s:option(ListValue, "oface") oface.optional = true luci.model.uci.foreach("network", "interface", @@ -27,47 +38,47 @@ luci.model.uci.foreach("network", "interface", end end) -proto = s:option(ListValue, "proto", "Protokoll") +proto = s:option(ListValue, "proto", translate("protocol", "Protokoll")) proto.optional = true proto:value("") proto:value("tcp", "TCP") proto:value("udp", "UDP") -s:option(Value, "source", "Quelladresse").optional = true -s:option(Value, "destination", "Zieladresse").optional = true -s:option(Value, "mac", "MAC-Adresse").optional = true +s:option(Value, "source").optional = true +s:option(Value, "destination").optional = true +s:option(Value, "mac").optional = true -sport = s:option(Value, "sport", "Quellport") +sport = s:option(Value, "sport") sport.optional = true sport:depends("proto", "tcp") sport:depends("proto", "udp") -dport = s:option(Value, "dport", "Zielport") +dport = s:option(Value, "dport") dport.optional = true dport:depends("proto", "tcp") dport:depends("proto", "udp") -tosrc = s:option(Value, "tosrc", "Neue Quelladresse [SNAT]") +tosrc = s:option(Value, "tosrc") tosrc.optional = true tosrc:depends("jump", "SNAT") -tosrc = s:option(Value, "todest", "Neue Zieladresse [DNAT]") +tosrc = s:option(Value, "todest") tosrc.optional = true tosrc:depends("jump", "DNAT") -jump = s:option(ListValue, "jump", "Aktion") +jump = s:option(ListValue, "jump") jump.rmempty = true jump:value("", "") -jump:value("ACCEPT", "annehmen (ACCEPT)") -jump:value("REJECT", "zurückweisen (REJECT)") -jump:value("DROP", "verwerfen (DROP)") -jump:value("LOG", "protokollieren (LOG)") -jump:value("DNAT", "Ziel umschreiben (DNAT) [nur Prerouting]") -jump:value("MASQUERADE", "maskieren (MASQUERADE) [nur Postrouting]") -jump:value("SNAT", "Quelle umschreiben (SNAT) [nur Postrouting]") +jump:value("ACCEPT", translate("fw_accept")) +jump:value("REJECT", translate("fw_reject")) +jump:value("DROP", translate("fw_drop")) +jump:value("LOG", translate("fw_log")) +jump:value("DNAT", translate("fw_dnat")) +jump:value("MASQUERADE", translate("fw_masq")) +jump:value("SNAT", translate("fw_snat")) -add = s:option(Value, "command", "Eigener Befehl") +add = s:option(Value, "command") add.size = 50 add.rmempty = true diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/portfw.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/portfw.lua index 3923886dd..655bcccef 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/portfw.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/portfw.lua @@ -1,14 +1,25 @@ --- ToDo: Translate, Add descriptions and help texts +--[[ +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.sys") -m = Map("luci_fw", "Portweiterleitung", [[Portweiterleitungen ermöglichen es interne -Netzwerkdienste von einem anderen externen Netzwerk aus erreichbar zu machen.]]) +m = Map("luci_fw", translate("fw_portfw", "Portweiterleitung"), translate("fw_portfw1")) s = m:section(TypedSection, "portfw", "") s.template = "cbi/tblsection" s.addremove = true s.anonymous = true -iface = s:option(ListValue, "iface", "Schnittstelle", "Externe Schnittstelle") +iface = s:option(ListValue, "iface", translate("interface", "Schnittstelle")) iface.default = "wan" luci.model.uci.foreach("network", "interface", function (section) @@ -17,13 +28,13 @@ luci.model.uci.foreach("network", "interface", end end) -proto = s:option(ListValue, "proto", "Protokoll") +proto = s:option(ListValue, "proto", translate("protocol", "Protokoll")) proto:value("tcp", "TCP") proto:value("udp", "UDP") proto:value("tcpudp", "TCP + UDP") -dport = s:option(Value, "dport", "Externer Port", "Port[:Endport]") +dport = s:option(Value, "dport") -to = s:option(Value, "to", "Interne Adresse", "IP-Adresse[:Zielport[-Zielendport]]") +to = s:option(Value, "to") return m diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/routing.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/routing.lua index 7ecc8224b..184fc1830 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/routing.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/routing.lua @@ -1,18 +1,25 @@ --- ToDo: Translate, Add descriptions and help texts -require("luci.sys") -m = Map("luci_fw", "Routing", [[An dieser Stelle wird festlegt, welcher Netzverkehr zwischen einzelnen -Schnittstellen erlaubt werden soll. Es werden jeweils nur neue Verbindungen -betrachtet, d.h. Pakete von aufgebauten oder zugehörigen Verbindungen werden automatisch in beide Richtungen -akzeptiert, auch wenn das Feld "beide Richtungen" nicht explizit gesetzt ist. -NAT ermöglicht Adressübersetzung.]]) +--[[ +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$ +]]-- +m = Map("luci_fw", translate("fw_routing", "Routing"), translate("fw_routing1")) s = m:section(TypedSection, "routing", "") s.template = "cbi/tblsection" s.addremove = true s.anonymous = true -iface = s:option(ListValue, "iface", "Eingang", "Eingangsschnittstelle") -oface = s:option(ListValue, "oface", "Ausgang", "Ausgangsschnittstelle") +iface = s:option(ListValue, "iface") +oface = s:option(ListValue, "oface") luci.model.uci.foreach("network", "interface", function (section) @@ -22,8 +29,8 @@ luci.model.uci.foreach("network", "interface", end end) -s:option(Flag, "fwd", "FWD", "weiterleiten").rmempty = true -s:option(Flag, "nat", "NAT", "übersetzen").rmempty = true -s:option(Flag, "bidi", "<->", "beide Richtungen").rmempty = true +s:option(Flag, "fwd", "FWD").rmempty = true +s:option(Flag, "nat", "NAT").rmempty = true +s:option(Flag, "bidi", "<->").rmempty = true return m |