* Core translation

This commit is contained in:
Steven Barth 2008-06-08 13:03:55 +00:00
parent 7d03f8ea8a
commit b088031a8e
10 changed files with 151 additions and 60 deletions

View file

@ -181,3 +181,50 @@ dhcp_dnsmasq_dhcpleasemax = "max. DHCP-Leases"
dhcp_dnsmasq_addnhosts = "additional hostfile" dhcp_dnsmasq_addnhosts = "additional hostfile"
dhcp_dnsmasq_queryport = "query port" dhcp_dnsmasq_queryport = "query port"
a_n_switch = "Switch"
a_n_routes = "Routes"
a_network1 = "In this area you find all network-related settings."
a_network2 = "On most routers the network switch can be freely configured and splitted up into several VLANs."
a_network3 = "Interfaces and PPPoE / PPTP-Settings allow a custom organisation of the network and connections to other networks like the internet."
a_network4 = "With DHCP devices in your local network can be automatically configured for network communication."
a_network5 = "Firewall and portforwarding can be used to secure your network while providing services to external networks."
a_n_switch1 = [[The network ports on your router can be combined to several VLANs
in which computers can communicate directly with each other.
VLANs are often used to separate different network segments.
Often there is by default one Uplink port for a connection to the next greater network like the internet
and other ports for a local network.]]
network_switch_desc = [[Ports belonging to a VLAN are separated with spaces.
The port with the highest number (usually 5) is oftern the connection to the internal network interface of the router.
On devices with 5 ports often the one with the lowest number (0) is the predefined Uplink port.]]
a_n_ifaces1 = [[On this page you can configure the network interfaces.
You can bridge several interfaces by ticking the "bridge interfaces" field and enter the names
of several network interfaces separated by spaces.
You can also use VLAN notation INTERFACE.VLANNR (e.g.: eth0.1).]]
a_n_i_bridge = "Bridge interfaces"
a_n_i_bridge1 = "creates a bridge over specified interface(s)"
dhcp_desc = [[With DHCP network members can automatically receive
their network settings (IP-address, netmaske, DNS-server, ...).]]
dhcp_dhcp_leasetime = "Leasetime"
dhcp_dhcp_dynamicdhcp = "Dynamic DHCP"
dhcp_dhcp_ignore = "Ignore interface"
dhcp_dhcp_ignore_desc = "disable DHCP for this interface"
dhcp_dhcp_force = "Force"
a_n_ptp = "Point-to-Point Connections"
a_n_ptp1 = [[Point-to-Point connections with PPPoE or PPTP are often used to connect a device
over DSL or similar technologies to an internet access point.]]
network_interface_server = "PPTP-Server"
network_interface_demand = "Automatic Disconnect"
network_interface_demand_desc = "Time after which an unused connection will be closed"
network_interface_keepalive = "Keep-Alive"
network_interface_keepalive_desc = "Reconnect lost connections"
a_n_routes = "Static Routes"
a_n_routes1 = [[With Static Routes you can specify through which
interface and gateway a certain host or network can be reached.]]
a_n_r_target1 = "host-IP or network"
a_n_r_netmask1 = "if target is a network"

View file

@ -17,6 +17,7 @@ device = "Device"
devices = "Devices" devices = "Devices"
disable = "disable" disable = "disable"
distance = "Distance" distance = "Distance"
dnsserver = "DNS-Server"
enable = "enable" enable = "enable"
encryption = "Encryption" encryption = "Encryption"
@ -25,6 +26,7 @@ error = "Error"
filesystem = "Filesystem" filesystem = "Filesystem"
filter = "Filter" filter = "Filter"
gateway = "Gateway"
general = "General" general = "General"
hostname = "Hostname" hostname = "Hostname"
@ -32,15 +34,21 @@ hostname = "Hostname"
install = "Install" install = "Install"
installed = "installed" installed = "installed"
interface = "Interface" interface = "Interface"
interfaces = "Interfaces"
ipaddress = "IP-Address"
key = "Key" key = "Key"
language = "Language" language = "Language"
limit = "Limit"
load = "Load" load = "Load"
macaddress = "MAC-Address"
manpage = "see '%s' manpage" manpage = "see '%s' manpage"
mode = "Mode" mode = "Mode"
name = "Name"
netmask = "Netmask"
network = "Network" network = "Network"
networks = "Networks" networks = "Networks"
notinstalled = "not installed" notinstalled = "not installed"
@ -53,6 +61,7 @@ packagemanager = "Package Manager"
password = "Password" password = "Password"
path = "Path" path = "Path"
port = "Port" port = "Port"
protocol = "Protocol"
reboot = "Reboot" reboot = "Reboot"
reset = "Reset" reset = "Reset"
@ -61,6 +70,8 @@ revert = "Revert"
save = "Save" save = "Save"
services = "Services" services = "Services"
settings = "Settings" settings = "Settings"
start = "Start"
static = "static"
statistics = "Statistics" statistics = "Statistics"
syslog = "System Log" syslog = "System Log"
system = "System" system = "System"
@ -68,6 +79,7 @@ system = "System"
target = "Target" target = "Target"
type = "Type" type = "Type"
username = "Username"
unknownerror = "Unknown Error" unknownerror = "Unknown Error"
version = "Version" version = "Version"

View file

@ -32,3 +32,47 @@ dhcp_dnsmasq_ednspacket_max = "max. EDNS.0 Paketgröße"
dhcp_dnsmasq_dhcpleasemax = "max. DHCP-Leases" dhcp_dnsmasq_dhcpleasemax = "max. DHCP-Leases"
dhcp_dnsmasq_addnhosts = "Zusätzliche Hostdatei" dhcp_dnsmasq_addnhosts = "Zusätzliche Hostdatei"
dhcp_dnsmasq_queryport = "Abfrageport" dhcp_dnsmasq_queryport = "Abfrageport"
a_n_switch1 = [[Die Netzwerkschnittstellen am Router
können zu verschienden VLANs zusammengefasst werden, in denen Geräte miteinander direkt
kommunizieren können. VLANs werden auch häufig dazu genutzt, um Netzwerke voneiander zu trennen.
So ist oftmals eine Schnittstelle als Uplink zu einem größerem Netz, wie dem Internet vorkonfiguriert
und die anderen Schnittstellen bilden ein VLAN für das lokale Netzwerk.]]
network_switch_desc = [[Die zu einem VLAN gehörenden Schnittstellen
werden durch Leerzeichen getrennt. Die Schnittstelle mit der höchsten Nummer (meistens 5) bildet
in der Regel die Verbindung zur internen Netzschnittstelle des Routers. Bei Geräten mit 5 Schnittstellen
ist in der Regel die Schnittstelle mit der niedrigsten Nummer (0) die standardmäßige Uplinkschnittstelle des Routers.]]
a_n_ifaces1 = [[An dieser Stelle können die einzelnen Schnittstellen
des Netzwerkes konfiguriert werden. Es können mehrere Schnittstellen zu einer Brücke zusammengefasst werden,
indem diese durch Leerzeichen getrennt aufgezählt werden und ein entsprechender Haken im Feld Netzwerkbrücke
gesetzt wird. Es können VLANs in der Notation SCHNITTSTELLE.VLANNR (z.B.: eth0.1) verwendet werden.]]
a_n_i_bridge = "Netzwerkbrücke"
a_n_i_bridge1 = "überbrückt angegebene Schnittstelle(n)"
dhcp_desc = [[Mit Hilfe von DHCP können Netzteilnehmer automatisch
ihre Netzwerkkonfiguration (IP-Adresse, Netzmaske, DNS-Server, ...) beziehen.]]
dhcp_dhcp_leasetime = "Laufzeit"
dhcp_dhcp_dynamicdhcp = "Dynamisches DHCP"
dhcp_dhcp_ignore = "Schnittstelle ignorieren"
dhcp_dhcp_ignore_desc = "DHCP für dieses Netzwerk deaktivieren"
dhcp_dhcp_force = "Start erzwingen"
a_n_ptp = "Punkt-zu-Punkt Verbindungen"
a_n_ptp1 = [[Punkt-zu-Punkt Verbindungen
über PPPoE oder PPTP werden häufig dazu verwendet, um über DSL o.ä. Techniken eine
Verbindung zum Internetgateway eines Internetzugangsanbieters aufzubauen.]]
network_interface_server = "PPTP-Server"
network_interface_demand = "Automatische Trennung"
network_interface_demand_desc = "Zeit nach der die Verbindung bei Inaktivität getrennt wird"
network_interface_keepalive = "Keep-Alive"
network_interface_keepalive_desc = "Bei einer Verbindungstrennung automatisch neu verbinden"
a_n_routes = "Statische Routen"
a_n_routes1 = [[Statische Routen geben an,
über welche Schnittstelle und welches Gateway ein bestimmter Host
oder ein bestimmtes Netzwerk erreicht werden kann.]]
a_n_r_target1 = "Host-IP oder Netzwerk"
a_n_r_netmask1 = "falls Ziel ein Netzwerk ist"

View file

@ -14,24 +14,27 @@ $Id$
module("luci.controller.admin.network", package.seeall) module("luci.controller.admin.network", package.seeall)
function index() function index()
require("luci.i18n")
local i18n = luci.i18n.translate
local page = node("admin", "network") local page = node("admin", "network")
page.target = template("admin_network/index") page.target = template("admin_network/index")
page.title = "Netzwerk" page.title = i18n("network", "Netzwerk")
page.order = 50 page.order = 50
local page = node("admin", "network", "vlan") local page = node("admin", "network", "vlan")
page.target = cbi("admin_network/vlan") page.target = cbi("admin_network/vlan")
page.title = "Switch" page.title = i18n("a_n_switch", "Switch")
page.order = 10 page.order = 10
local page = node("admin", "network", "ifaces") local page = node("admin", "network", "ifaces")
page.target = cbi("admin_network/ifaces") page.target = cbi("admin_network/ifaces")
page.title = "Schnittstellen" page.title = i18n("interfaces", "Schnittstellen")
page.order = 20 page.order = 20
local page = node("admin", "network", "dhcp") local page = node("admin", "network", "dhcp")
page.target = cbi("admin_network/dhcp") page.target = cbi("admin_network/dhcp")
page.title = "DHCP-Server" page.title = "DHCP"
page.order = 30 page.order = 30
local page = node("admin", "network", "ptp") local page = node("admin", "network", "ptp")
@ -41,6 +44,6 @@ function index()
local page = node("admin", "network", "routes") local page = node("admin", "network", "routes")
page.target = cbi("admin_network/routes") page.target = cbi("admin_network/routes")
page.title = "Statische Routen" page.title = i18n("a_n_routes", "Routen")
page.order = 50 page.order = 50
end end

View file

@ -14,14 +14,13 @@ $Id$
require("luci.model.uci") require("luci.model.uci")
require("luci.sys") require("luci.sys")
m = Map("dhcp", "DHCP", [[Mit Hilfe von DHCP können Netzteilnehmer automatisch m = Map("dhcp", "DHCP")
ihre Netzwerkkonfiguration (IP-Adresse, Netzmaske, DNS-Server, DHCP, ...) beziehen.]])
s = m:section(TypedSection, "dhcp", "") s = m:section(TypedSection, "dhcp", "")
s.addremove = true s.addremove = true
s.anonymous = true s.anonymous = true
iface = s:option(ListValue, "interface", "Schnittstelle") iface = s:option(ListValue, "interface", translate("interface", "Schnittstelle"))
luci.model.uci.foreach("network", "interface", luci.model.uci.foreach("network", "interface",
function (section) function (section)
if section[".name"] ~= "loopback" then if section[".name"] ~= "loopback" then
@ -30,21 +29,21 @@ luci.model.uci.foreach("network", "interface",
end end
end) end)
s:option(Value, "start", "Start", "Erste vergebene Adresse (letztes Oktett)").rmempty = true s:option(Value, "start", translate("start", "Start"), "Erste vergebene Adresse (letztes Oktett)").rmempty = true
s:option(Value, "limit", "Limit", "Anzahl zu vergebender Adressen -1").rmempty = true s:option(Value, "limit", translate("limit", "Limit"), "Anzahl zu vergebender Adressen -1").rmempty = true
s:option(Value, "leasetime", "Laufzeit").rmempty = true s:option(Value, "leasetime").rmempty = true
s:option(Flag, "dynamicdhcp", "Dynamisches DHCP").rmempty = true s:option(Flag, "dynamicdhcp").rmempty = true
s:option(Value, "name", "Name").optional = true s:option(Value, "name", translate("name", "Name")).optional = true
s:option(Flag, "ignore", "Schnittstelle ignorieren", "DHCP für dieses Netzwerk deaktivieren").optional = true s:option(Flag, "ignore").optional = true
s:option(Value, "netmask", "Netzmaske").optional = true s:option(Value, "netmask", translate("netmask", "Netzmaske")).optional = true
s:option(Flag, "force", "Start erzwingen").optional = true s:option(Flag, "force").optional = true
for i, line in pairs(luci.sys.execl("dnsmasq --help dhcp")) do for i, line in pairs(luci.sys.execl("dnsmasq --help dhcp")) do
k, v = line:match("([^ ]+) +([^ ]+)") k, v = line:match("([^ ]+) +([^ ]+)")

View file

@ -11,10 +11,7 @@ You may obtain a copy of the License at
$Id$ $Id$
]]-- ]]--
m = Map("network", "Schnittstellen", [[An dieser Stelle können die einzelnen Schnittstellen m = Map("network", translate("interfaces", "Schnittstellen"), translate("a_n_ifaces1"))
des Netzwerkes konfiguriert werden. Es können mehrere Schnittstellen zu einer Brücke zusammengefasst werden,
indem diese durch Leerzeichen getrennt aufgezählt werden und ein entsprechender Haken im Feld Netzwerkbrücke
gesetzt wird. Es können VLANs in der Notation SCHNITTSTELLE.VLANNR (z.B.: eth0.1) verwendet werden.]])
s = m:section(TypedSection, "interface", "") s = m:section(TypedSection, "interface", "")
s.addremove = true s.addremove = true
@ -22,26 +19,26 @@ s:exclude("loopback")
s:depends("proto", "static") s:depends("proto", "static")
s:depends("proto", "dhcp") s:depends("proto", "dhcp")
p = s:option(ListValue, "proto", "Protokoll") p = s:option(ListValue, "proto", translate("protocol", "Protokoll"))
p:value("static", "statisch") p:value("static", translate("static", "statisch"))
p:value("dhcp", "DHCP") p:value("dhcp", "DHCP")
p.default = "static" p.default = "static"
br = s:option(Flag, "type", "Netzwerkbrücke", "überbrückt angegebene Schnittstelle(n)") br = s:option(Flag, "type", translate("a_n_i_bridge"), translate("a_n_i_bridge1"))
br.enabled = "bridge" br.enabled = "bridge"
br.rmempty = true br.rmempty = true
s:option(Value, "ifname", "Schnittstelle") s:option(Value, "ifname", translate("interface", "Schnittstelle"))
s:option(Value, "ipaddr", "IP-Adresse") s:option(Value, "ipaddr", translate("ipaddress", "IP-Adresse"))
s:option(Value, "netmask", "Netzmaske"):depends("proto", "static") s:option(Value, "netmask", translate("netmask", "Netzmaske")):depends("proto", "static")
gw = s:option(Value, "gateway", "Gateway") gw = s:option(Value, "gateway", translate("gateway", "Gateway"))
gw:depends("proto", "static") gw:depends("proto", "static")
gw.rmempty = true gw.rmempty = true
dns = s:option(Value, "dns", "DNS-Server") dns = s:option(Value, "dns", translate("dnsserver", "DNS-Server"))
dns:depends("proto", "static") dns:depends("proto", "static")
dns.optional = true dns.optional = true
@ -49,7 +46,7 @@ mtu = s:option(Value, "mtu", "MTU")
mtu.optional = true mtu.optional = true
mtu.isinteger = true mtu.isinteger = true
mac = s:option(Value, "macaddr", "MAC-Adresse") mac = s:option(Value, "macaddr", translate("macaddress", "MAC-Adresse"))
mac.optional = true mac.optional = true
return m return m

View file

@ -11,30 +11,28 @@ You may obtain a copy of the License at
$Id$ $Id$
]]-- ]]--
m = Map("network", "Punkt-zu-Punkt Verbindungen", [[Punkt-zu-Punkt Verbindungen m = Map("network", translate("a_n_ptp"), translate("a_n_ptp1"))
über PPPoE oder PPTP werden häufig dazu verwendet, um über DSL o.ä. Techniken eine
Verbindung zum Internetgateway eines Internetzugangsanbieters aufzubauen.]])
s = m:section(TypedSection, "interface", "") s = m:section(TypedSection, "interface", "")
s.addremove = true s.addremove = true
s:depends("proto", "pppoe") s:depends("proto", "pppoe")
s:depends("proto", "pptp") s:depends("proto", "pptp")
p = s:option(ListValue, "proto", "Protokoll") p = s:option(ListValue, "proto", translate("protocol", "Protokoll"))
p:value("pppoe", "PPPoE") p:value("pppoe", "PPPoE")
p:value("pptp", "PPTP") p:value("pptp", "PPTP")
p.default = "pppoe" p.default = "pppoe"
s:option(Value, "ifname", "Schnittstelle") s:option(Value, "ifname", translate("interface", "Schnittstelle"))
s:option(Value, "username", "Benutzername") s:option(Value, "username", translate("username", "Benutzername"))
s:option(Value, "password", "Passwort") s:option(Value, "password", translate("password", "Passwort"))
s:option(Value, "keepalive", "Keep-Alive", "Bei einer Verbindungstrennung automatisch neu verbinden").optional = true s:option(Value, "keepalive").optional = true
s:option(Value, "demand", "Dial on Demand (idle time)", "Zeit nach der die Verbindung bei Inaktivität getrennt wird").optional = true s:option(Value, "demand").optional = true
srv = s:option(Value, "server", "PPTP-Server") srv = s:option(Value, "server")
srv:depends("proto", "pptp") srv:depends("proto", "pptp")
srv.optional = true srv.optional = true

View file

@ -11,16 +11,14 @@ You may obtain a copy of the License at
$Id$ $Id$
]]-- ]]--
m = Map("network", "Statische Routen", [[Statische Routen geben an, m = Map("network", translate("a_n_routes"), translate("a_n_routes1"))
über welche Schnittstelle und welches Gateway ein bestimmter Host
oder ein bestimmtes Netzwerk erreicht werden kann.]])
s = m:section(TypedSection, "route", "") s = m:section(TypedSection, "route", "")
s.addremove = true s.addremove = true
s.anonymous = true s.anonymous = true
s.template = "cbi/tblsection" s.template = "cbi/tblsection"
iface = s:option(ListValue, "interface", "Schnittstelle") iface = s:option(ListValue, "interface", translate("interface", "Schnittstelle"))
luci.model.uci.foreach("network", "interface", luci.model.uci.foreach("network", "interface",
function (section) function (section)
if section[".name"] ~= "loopback" then if section[".name"] ~= "loopback" then
@ -28,10 +26,10 @@ luci.model.uci.foreach("network", "interface",
end end
end) end)
s:option(Value, "target", "Ziel", "Host-IP oder Netzwerk") s:option(Value, "target", translate("target", "Ziel"), translate("a_n_r_target1"))
s:option(Value, "netmask", "Netzmaske", "falls Ziel ein Netzwerk ist").rmemepty = true s:option(Value, "netmask", translate("netmask", "Netzmaske"), translate("a_n_r_netmask1")).rmemepty = true
s:option(Value, "gateway", "Gateway") s:option(Value, "gateway", translate("gateway", "Gateway"))
return m return m

View file

@ -11,16 +11,9 @@ You may obtain a copy of the License at
$Id$ $Id$
]]-- ]]--
m = Map("network", "VLAN", [[Die Netzwerkschnittstellen am Router m = Map("network", translate("a_n_switch", "Switch"), translate("a_n_switch1"))
können zu verschienden VLANs zusammengefasst werden, in denen Geräte miteinander direkt
kommunizieren können. VLANs werden auch häufig dazu genutzt, um Netzwerke voneiander zu trennen.
So ist oftmals eine Schnittstelle als Uplink zu einem größerem Netz, wie dem Internet vorkonfiguriert
und die anderen Schnittstellen bilden ein VLAN für das lokale Netzwerk.]])
s = m:section(TypedSection, "switch", "", [[Die zu einem VLAN gehörenden Schnittstellen s = m:section(TypedSection, "switch", "")
werden durch Leerzeichen getrennt. Die Schnittstelle mit der höchsten Nummer (meistens 5) bildet
in der Regel die Verbindung zur internen Netzschnittstelle des Routers. Bei Geräten mit 5 Schnittstellen
ist in der Regel die Schnittstelle mit der niedrigsten Nummer (0) die standardmäßige Uplinkschnittstelle des Routers.]])
for i = 0, 15 do for i = 0, 15 do
s:option(Value, "vlan"..i, "vlan"..i).optional = true s:option(Value, "vlan"..i, "vlan"..i).optional = true

View file

@ -1,11 +1,11 @@
<%+header%> <%+header%>
<h1><%:network Netzwerk%></h1> <h1><%:network Netzwerk%></h1>
<p><%:network1 In diesem Bereich finden sich alle netzwerkbezogenen Einstellungen.%></p> <p><%:a_network1 In diesem Bereich finden sich alle netzwerkbezogenen Einstellungen.%></p>
<p><%:network2 Der Netzwerkswitch kann bei den meisten Routern frei konfiguriert <p><%:a_network2 Der Netzwerkswitch kann bei den meisten Routern frei konfiguriert
und in mehrere VLANs aufgeteilt werden. %></p> und in mehrere VLANs aufgeteilt werden. %></p>
<p><%:network3 Schnittstellen und PPPoE/PPTP-Einstellungen ermöglichen <p><%:a_network3 Schnittstellen und PPPoE/PPTP-Einstellungen ermöglichen
die freie Organisation des Netzwerks und die Anbindung an ein WAN.%></p> die freie Organisation des Netzwerks und die Anbindung an ein WAN.%></p>
<p><%:network4 DHCP ermöglichst die automatische Netzwerkkonfiguration von Rechnern im (W)LAN.%></p> <p><%:a_network4 DHCP ermöglichst die automatische Netzwerkkonfiguration von Rechnern im (W)LAN.%></p>
<p><%:network5 Portweiterleitung und Firewall erlauben eine effektive Absicherung des Netzes, bei gleichzeitiger <p><%:a_network5 Portweiterleitung und Firewall erlauben eine effektive Absicherung des Netzes, bei gleichzeitiger
Bereitstellung von externen Diensten.%></p> Bereitstellung von externen Diensten.%></p>
<%+footer%> <%+footer%>