X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-core%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_network%2Fdhcp.lua;h=32e73a79bafdf1ea2e7fa8b818476db909b91baf;hp=e02238e39fc43fee83eaab144590cd75dd3445b3;hb=14438002a1df1e56564e19eec4726a077c0cfa0e;hpb=8644ff1eab93d067e316eee9f4b567e1bf07ccb3 diff --git a/modules/admin-core/luasrc/model/cbi/admin_network/dhcp.lua b/modules/admin-core/luasrc/model/cbi/admin_network/dhcp.lua index e02238e39..32e73a79b 100644 --- a/modules/admin-core/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/admin-core/luasrc/model/cbi/admin_network/dhcp.lua @@ -1,15 +1,26 @@ --- ToDo: Translate, Add descriptions and help texts +--[[ +LuCI - Lua Configuration Interface + +Copyright 2008 Steven Barth + +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.model.uci") require("luci.sys") -m = Map("dhcp", "DHCP", [[Mit Hilfe von DHCP können Netzteilnehmer automatisch -ihre Netzwerkkonfiguration (IP-Adresse, Netzmaske, DNS-Server, DHCP, ...) beziehen.]]) +m = Map("dhcp", "DHCP") s = m:section(TypedSection, "dhcp", "") s.addremove = true s.anonymous = true -iface = s:option(ListValue, "interface", "Schnittstelle") +iface = s:option(ListValue, "interface", translate("interface", "Schnittstelle")) luci.model.uci.foreach("network", "interface", function (section) if section[".name"] ~= "loopback" then @@ -18,21 +29,21 @@ luci.model.uci.foreach("network", "interface", end end) -s:option(Value, "start", "Start", "Erste vergebene Adresse (letztes Oktett)").rmempty = true +s:option(Value, "start", translate("start", "Start")).rmempty = true -s:option(Value, "limit", "Limit", "Anzahl zu vergebender Adressen -1").rmempty = true +s:option(Value, "limit", translate("limit", "Limit")).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 k, v = line:match("([^ ]+) +([^ ]+)")