local lon = uci:get_first("system", "system", "longitude")
local suffix = uci:get_first(community, "community", "suffix") or "olsr"
-luci.i18n.loadc("ffwizard")
+luci.i18n.loadc("freifunk")
-- Check if all necessary variables are available
if not (community ~= "profile_na" and lat and lon) then
- luci.http.redirect(luci.dispatcher.build_url("admin", "freifunk", "ffwizard_error"))
+ luci.http.redirect(luci.dispatcher.build_url(unpack(luci.dispatcher.context.requested.path), "freifunk", "ffwizard_error"))
return
end
end
function cbi_netconf(dev)
- local d = f:field(Flag, "device_" .. dev , " <b>" .. dev:upper() .. "</b>", translate("Configure this interface."))
+ local d = f:field(Flag, "device_" .. dev , " <b>" .. dev:upper() .. "</b>", "Configure this interface.")
d:depends("netconfig", "1")
d.rmempty = false
function d.cfgvalue(self, section)
uci:set("network", "wan", "proto", value)
uci:save("network")
end
-wanip = f:field(Value, "wanipaddr", translate("IP address"))
+wanip = f:field(Value, "wanipaddr", translate("Ip address"))
wanip:depends("wanproto", "static")
function wanip.cfgvalue(self, section)
return uci:get("network", "wan", "ipaddr")
uci:save("network")
end
-wansec = f:field(Flag, "wansec", translate("Protect LAN"), translate("Check this to protect your LAN from other nodes or clients") .. " (" .. translate("recommended") .. ").")
+wansec = f:field(Flag, "wansec", translate("Protect LAN"), translate("Check this to protect your LAN from other nodes or clients" .. " (" .. translate("recommended") .. ")."))
wansec.default = "1"
wansec.rmempty = false
wansec:depends("wanproto", "static")
end
if has_hb then
- hb = f:field(Flag, "hb", translate("Heartbeat"), translate("Allow to transfer anonymous statistics about this node") .. " (" .. translate("recommended") .. ").")
+ hb = f:field(Flag, "hb", translate("Heartbeat"), translate("Allow to transfer anonymous statistics about this node" .. " (" .. translate("recommended") .. ")."))
hb.rmempty = false
hb:depends("netconfig", "1")
function hb.cfgvalue(self, section)
if data.pw1 then
local stat = luci.sys.user.setpasswd("root", data.pw1) == 0
if stat then
- f.message = translate("Password successfully changed")
+ f.message = translate("a_s_changepw_changed")
else
- f.errmessage = translate("Unknown Error")
+ f.errmessage = translate("unknownerror")
end
end
data.pw1 = nil
uci:set("system", s['.name'], "zonename", "Europe/Berlin")
uci:set("system", s['.name'], "timezone", 'CET-1CEST,M3.5.0,M10.5.0/3')
end)
+
+ -- Create time rdate_servers
+ local rdate = uci:get_all("freifunk", "time")
+ uci:delete_all("system", "time")
+ uci:section("system", "time", "rdate_servers", rdate)
+ rdate.server = rdate.rdate_servers
+ rdate.rdate_servers = ""
+ uci:delete_all("system", "rdate", nil)
+ uci:section("system", "rdate", nil, rdate)
uci:save("system")
-- Delete old watchdog settings
+++ /dev/null
-#!/usr/bin/perl
-
-@ARGV == 2 || die "Usage: $0 <source-dir> <dest-dir>\n";
-
-my $source_dir = shift @ARGV;
-my $target_dir = shift @ARGV;
-
-if( ! -d $target_dir )
-{
- system('mkdir', '-p', $target_dir);
-}
-
-if( open F, "find $source_dir -type f -name '*.po' |" )
-{
- while( chomp( my $file = readline F ) )
- {
- my ( $lang, $basename ) = $file =~ m{.+/(\w+)/([^/]+)\.po$};
- $lang = lc $lang;
- $lang =~ s/_/-/g;
-
- printf "Generating %-40s ", "$target_dir/$basename.$lang.lmo";
- system("./build/po2lmo", $file, "$target_dir/$basename.$lang.lmo");
- print ( -f "$target_dir/$basename.$lang.lmo" ? "done\n" : "empty\n" );
- }
-
- close F;
-}
include $(TOPDIR)/rules.mk
-PKG_BRANCH:=trunk
+PKG_BRANCH:=branches/luci-0.10
ifeq ($(DUMP),)
USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1)
<% if not (hostname and latitude and longitude and location) then%>
<div class="error">
- <%:Basic settings are incomplete. Please go to%> <a href='<%=basicsurl%>'><%:Basic settings%></a> <%:and fill out all required fields.%>
+ <%:Basic settings are incomplete. Please go to%> <a href='<%=basicsurl%>'<%:Basic settings%></a> <%:and fill out all required fields.%></p>
</div>
<%end%>
<p />
if section.diversity ~= "0" and section.disabled ~= "1" then
print('<div class="error">' .. translate("Diversity is enabled for device") .. ' <b>' .. device .. '</b>. '
.. translate("Go to") .. ' <a href="' .. url .. '">' .. translate("wireless settings") .. '</a> ' ..
- translate("to disable it.") .. '</div><p />')
+ translate(" to disable it.") .. '</div><p />')
end
end) %>
option 'sw_merge' '1'
config 'defaults' 'interface'
- option 'netmask' '255.255.0.0'
- option 'dns' '8.8.8.8 212.204.49.83 141.1.1.1'
+ option 'netmask' '255.0.0.0'
+ option 'dns' '88.198.178.18 141.54.1.1 212.204.49.83 208.67.220.220 208.67.222.222'
config 'defaults' 'alias'
option 'netmask' '255.255.255.0'
config 'defaults' 'wifi_iface'
option 'bssid' '02:40:00:42:42:42'
+
+config 'defaults' 'interface'
+ option 'netmask' '255.255.0.0'
+
config 'defaults' 'wifi_device'
option 'channel' '10'
-
-config 'defaults' 'interface'
- option 'netmask' '255.0.0.0'
-
option 'latitude' '51.22347'
option 'longitude' '6.78449'
+config 'defaults' 'interface'
+ option 'netmask' '255.255.0.0'
+
config 'defaults' 'wifi_device'
option 'channel' '3'
config 'defaults' 'wifi_iface'
option 'bssid' 'CA:FF:EE:CA:FF:EE'
+
+config 'defaults' 'interface'
+ option 'netmask' '255.255.0.0'
+
config 'defaults' 'interface'
option 'dns' '10.14.0.1 208.67.222.220 208.67.220.222'
+ option 'netmask' '255.255.0.0'
option 'latitude' '51.33348'
option 'longitude' '12.40297'
-config 'defaults' 'interface'
- option 'netmask' '255.0.0.0'
config 'defaults' 'wifi_device'
option 'channel' '1'
+
+config 'defaults' 'interface'
+ option 'netmask' '255.255.0.0'
+
config 'defaults' 'interface'
option 'dns' '8.8.8.8 212.204.49.83'
+ option 'netmask' '255.255.0.0'
config 'defaults' 'wifi_device'
option 'channel' '11'
+config 'defaults' 'interface'
+ option 'netmask' '255.255.0.0'
+
config 'defaults' 'wifi_iface'
option 'bssid' 'DE:AD:BE:EF:CA:FE'
option 'longitude' '8.769239'
config 'defaults' 'interface'
+ option 'netmask' '255.255.0.0'
option 'dns' '208.67.222.222 208.67.220.220'
config 'defaults' 'wifi_device'
option 'latitude' '52.39349'
option 'longitude' '13.06489'
+config 'defaults' 'interface'
+ option 'netmask' '255.255.0.0'
+
config 'defaults' 'wifi_device'
option 'channel' '13'
config 'defaults' 'wifi_iface'
option 'bssid' 'D2:CA:FF:EE:BA:BE'
+
+config 'defaults' 'interface'
+ option 'netmask' '255.255.0.0'
option 'latitude' '48.03485'
option 'longitude' '11.21279'
+config 'defaults' 'interface'
+ option 'netmask' '255.255.255.0'
+
config 'defaults' 'wifi_device'
option 'channel' '1'
option 'bssid' '02:CA:FF:EE:BA:BB'
config 'defaults' 'interface'
option 'dns' '10.254.0.1 10.254.0.2'
+ option 'netmask' '255.255.0.0'
msgid "IPv4"
msgstr ""
-msgid "IPv4 Firewall"
-msgstr ""
-
msgid "IPv4 WAN Status"
msgstr ""
msgid "IPv6"
msgstr "IPv6"
-msgid "IPv6 Firewall"
-msgstr ""
-
msgid "IPv6 Setup"
msgstr ""
msgid "Java Script required!"
msgstr ""
-msgid "Join Network"
-msgstr "Join Network"
-
msgid "Join Network: Settings"
msgstr ""
msgid "Mounted file systems"
msgstr "Mounted file systems"
-msgid "Move down"
-msgstr ""
-
-msgid "Move up"
-msgstr ""
-
msgid "Multicast Rate"
msgstr "Multicast Rate"
msgid "Save & Apply"
msgstr "Save & Apply"
-msgid "Save & Apply"
-msgstr ""
-
msgid "Scan"
msgstr "Scan"
"Sorry. OpenWrt does not support a system upgrade on this platform.<br /> You "
"need to manually flash your device."
-msgid "Sort"
-msgstr ""
-
msgid "Source"
msgstr "Source"
msgid "Strict order"
msgstr "Strict order"
-msgid "Submit"
-msgstr "Submit"
-
msgid "Swap Entry"
msgstr ""
#~ msgid "Join (Client)"
#~ msgstr "Join (Client)"
+#~ msgid "Join Network"
+#~ msgstr "Join Network"
+
#~ msgid "Leases"
#~ msgstr "Leases"
#~ msgid "Statistics"
#~ msgstr "Statistics"
+#~ msgid "Submit"
+#~ msgstr "Submit"
+
#~ msgid "zone"
#~ msgstr "Zone"
msgid "IPv4"
msgstr ""
-msgid "IPv4 Firewall"
-msgstr ""
-
msgid "IPv4 WAN Status"
msgstr ""
msgid "IPv6"
msgstr "Konfigurasi IPv6"
-msgid "IPv6 Firewall"
-msgstr ""
-
msgid "IPv6 Setup"
msgstr "Setup IPv6"
msgid "Java Script required!"
msgstr ""
-#, fuzzy
-msgid "Join Network"
-msgstr "Gabung Rangkaian"
-
msgid "Join Network: Settings"
msgstr ""
msgid "Mounted file systems"
msgstr "Mounted fail sistems"
-msgid "Move down"
-msgstr ""
-
-msgid "Move up"
-msgstr ""
-
msgid "Multicast Rate"
msgstr "Multicast Rate"
msgid "Save & Apply"
msgstr "Simpan & Melaksanakan"
-msgid "Save & Apply"
-msgstr ""
-
msgid "Scan"
msgstr "Scan"
"Maafkan. OpenWRT tidak menyokong meningkatkan sistem pada peron ini. <br /"
">Anda perlu flash peranti anda secara manual."
-msgid "Sort"
-msgstr ""
-
msgid "Source"
msgstr "Sumber"
msgid "Strict order"
msgstr "Order Ketat"
-msgid "Submit"
-msgstr "Menyerahkan"
-
msgid "Swap Entry"
msgstr ""
#~ msgid "Join (Client)"
#~ msgstr "Gabung dengan (Client)"
+#, fuzzy
+#~ msgid "Join Network"
+#~ msgstr "Gabung Rangkaian"
+
#~ msgid "Leases"
#~ msgstr "Penyewaan"
#~ msgid "Statistics"
#~ msgstr "Statistik"
+#~ msgid "Submit"
+#~ msgstr "Menyerahkan"
+
#~ msgid "zone"
#~ msgstr "Zon"
msgid "IPv4"
msgstr ""
-msgid "IPv4 Firewall"
-msgstr ""
-
msgid "IPv4 WAN Status"
msgstr ""
msgid "IPv6"
msgstr "IPv6"
-msgid "IPv6 Firewall"
-msgstr ""
-
msgid "IPv6 Setup"
msgstr "IPv6 Oppsett"
msgid "Java Script required!"
msgstr ""
-msgid "Join Network"
-msgstr "Koble til nettverk"
-
msgid "Join Network: Settings"
msgstr ""
msgid "Mounted file systems"
msgstr "Monterte filsystemer"
-msgid "Move down"
-msgstr ""
-
-msgid "Move up"
-msgstr ""
-
msgid "Multicast Rate"
msgstr "Multicast hastighet"
msgid "Save & Apply"
msgstr "Lagre & Aktiver"
-msgid "Save & Apply"
-msgstr ""
-
msgid "Scan"
msgstr "Skann"
"Beklager. OpenWrt støtter ikke systemoppgradering på denne plattformen.<br /"
"> Du må flashe enheten manuelt."
-msgid "Sort"
-msgstr ""
-
msgid "Source"
msgstr "Kilde"
msgid "Strict order"
msgstr "Streng overholdelse"
-msgid "Submit"
-msgstr "Utfør"
-
msgid "Swap Entry"
msgstr ""
#~ msgid "Join (Client)"
#~ msgstr "Koble til (klient)"
+#~ msgid "Join Network"
+#~ msgstr "Koble til nettverk"
+
#~ msgid "Leases"
#~ msgstr "Leier"
#~ msgid "Statistics"
#~ msgstr "Statistikk"
+#~ msgid "Submit"
+#~ msgstr "Utfør"
+
#~ msgid "zone"
#~ msgstr "Sone"
msgid "IPv4"
msgstr ""
-msgid "IPv4 Firewall"
-msgstr ""
-
msgid "IPv4 WAN Status"
msgstr ""
msgid "IPv6"
msgstr ""
-msgid "IPv6 Firewall"
-msgstr ""
-
msgid "IPv6 Setup"
msgstr ""
msgid "Java Script required!"
msgstr ""
-msgid "Join Network"
-msgstr ""
-
msgid "Join Network: Settings"
msgstr ""
msgid "Mounted file systems"
msgstr ""
-msgid "Move down"
-msgstr ""
-
-msgid "Move up"
-msgstr ""
-
msgid "Multicast Rate"
msgstr ""
msgid "Save & Apply"
msgstr ""
-msgid "Save & Apply"
-msgstr ""
-
msgid "Scan"
msgstr ""
"need to manually flash your device."
msgstr ""
-msgid "Sort"
-msgstr ""
-
msgid "Source"
msgstr ""
msgid "Strict order"
msgstr ""
-msgid "Submit"
-msgstr ""
-
msgid "Swap Entry"
msgstr ""