Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Language Changed To English #16

Closed
wants to merge 19 commits into from
Closed
18 changes: 9 additions & 9 deletions files/www/freifunk/cgi-bin/status
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo " <ul>"

contact="$(uci -q get freifunk.@settings[0].contact)"
if [ -n "$contact" ]; then
echo " <li><a href='#'>Kontakt: $contact</a></li>"
echo " <li><a href='#'>Contact: $contact</a></li>"
fi

lat="$(uci -q get freifunk.@settings[0].latitude)"
Expand All @@ -48,15 +48,15 @@ fi
<div class="content">
<div class="pure-g">
<div class="pure-u-md-1-3">
<h2>Nachbarknoten</h2>
<h2>neighboring nodes</h2>
<h3><% echo -n $(cat /sys/kernel/debug/batman_adv/bat0/originators | grep '^[0-9a-f]' | cut -b 37-53 | sort | uniq | wc -l 2> /dev/null) %></h3>
</div>
<div class="pure-u-md-1-3">
<h2>Alle Knoten</h2>
<h2>All nodes</h2>
<h3><% echo -n $((`cat /sys/kernel/debug/batman_adv/bat0/transtable_global | grep '^ [^ ]' | cut -b 39-55 | sort | uniq | wc -l 2> /dev/null`+1)) %></h3>
</div>
<div class="pure-u-md-1-3">
<h2>Lokale Clients</h2>
<h2>Local clients</h2>
<h3><% echo -n $(cat /sys/kernel/debug/batman_adv/bat0/transtable_local 2> /dev/null | grep -c 'W') %></h3>
</div>
</div>
Expand All @@ -66,19 +66,19 @@ fi
. /lib/ff_shared.sh

echo '<div class="content">'
echo ' <h2 class="content-subhead">Nachbarknoten:</h2>'
echo ' <h2 class="content-subhead">Neighboring nodes:</h2>'
echo ' <ul>'

macs="$(cat /sys/kernel/debug/batman_adv/bat0/neighbors | awk '{if(NR>2 && NF==3) print($2)}')"
if [ -n "$macs" ]; then
prefix="$(uci get network.globals.ula_prefix)"
i=1
for mac in $macs; do
echo " <li><h3><a href=\"http://[$(ula_addr $prefix $mac)]\" class=\"neighbor\">Nachbarknoten $i</a></h3></li>"
echo " <li><h3><a href=\"http://[$(ula_addr $prefix $mac)]\" class=\"neighbor\">neighboring nodes $i</a></h3></li>"
i=$((i+1))
done
else
echo ' <li><h3>Keine Nachbarn gefunden.</h3></li>'
echo ' <li><h3>No neighbors found.</h3></li>'
fi

echo ' </ul>'
Expand All @@ -90,12 +90,12 @@ if [ -n "$max" -a "$max" != "0" ]; then
addr_prefix="${ula_prefix%%::*}:"

echo '<div class="content">'
echo ' <h2 class="content-subhead">Liste lokaler Angebote im Freifunk-Netz:</h2>'
echo ' <h2 class="content-subhead">List of local offers in the free radio network:</h2>'
echo ' <ul>'
link_list=$(
printf "$(alfred -r 91 | head -$max)" | awk -F'["\\]+' -v addr_prefix="$addr_prefix" '{ if($5 == "link" && match($7, "^[][ #[:alnum:]_\/.:]{1,128}$") && $9 == "label" && match($11, "^[][ [:alnum:]_\/.:]{1,32}$") && match($7, addr_prefix "|\.ff[a-z]{0,3}")) printf(" <li><h3><a href=\"%s\">%s</a></h3></li>\n", $7, $11) }'
)
[ -n "$link_list" ] && echo "$link_list" || echo ' <li><h3>Keine Angebote gefunden.</h3></li>'
[ -n "$link_list" ] && echo "$link_list" || echo ' <li><h3>No offers found.</h3></li>'
echo ' </ul>'
echo '</div>'
fi
Expand Down
8 changes: 4 additions & 4 deletions files/www/lan/cgi-bin/misc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo -en "content-type: text/plain\r\n\r\n"
case $GET_func in
reboot)
reboot
echo "Bitte warten. Neustart wird durchgeführt..."
echo "Please wait. Restart is done ..."
;;
wifi_status)
wifi status
Expand All @@ -18,16 +18,16 @@ case $GET_func in
file_data="$GET_data"

if echo "$file_data" > "/etc/config/$file_name" 2> /dev/null; then
echo "Einstellungen wurden gespeichert. Bitte neustarten."
echo "Settings were saved. Please restart."
else
echo "Beim Speichern ist ein Fehler aufgetreten. Bitte neustarten."
echo "When saving an error has occurred. Please restart."
fi
;;
name)
uci -q get freifunk.@settings[0].name
;;
*)
echo "Fehler: Unbekanntes Kommando: '$GET_func'"
echo "Error: Unknown command: '$GET_func'"
;;
esac
%>
2 changes: 1 addition & 1 deletion files/www/lan/cgi-bin/network
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ case "$GET_func" in
echo " option model '$model'"
;;
*)
echo "Fehler: Unbekanntes Kommando: '$GET_func'"
echo "Error: Unknown command: '$GET_func'"
;;
esac
%>
2 changes: 1 addition & 1 deletion files/www/lan/cgi-bin/password
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ $? -eq 0 ]; then
#force instant password change
/etc/init.d/uhttpd restart 2> /dev/null
else
echo "Es ist ein Fehler aufgetreten."
echo "An error has occurred."
fi

%>
2 changes: 1 addition & 1 deletion files/www/lan/cgi-bin/settings
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ case "$GET_func" in
echo " option ula_prefix '$ula_prefix'"
;;
*)
echo "Fehler: Unbekanntes Kommando: '$GET_func'"
echo "Error: Unknown command: '$GET_func'"
;;
esac
%>
8 changes: 4 additions & 4 deletions files/www/lan/cgi-bin/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ case "${GET_func:-$POST_func}" in
args="-n"
fi

echo "Starte Update ..."
echo "Update started..."

#apply lede or vendor image
sysupgrade $args $path
Expand All @@ -30,13 +30,13 @@ case "${GET_func:-$POST_func}" in
autoupdater -f 2>&1
;;
restore_firmware)
echo "Alle &#196;nderungen werden zurückgesetzt ..."
echo "Alle &#196;Changes are reset ..."
echo y | firstboot
echo "Router wird neugestartet..."
echo "Router is restarted ..."
reboot
;;
*)
echo "Fehler: Unbekannter Befehl: '$GET_func'"
echo "Error: Unknown command: '$GET_func'"
;;
esac
%>
30 changes: 15 additions & 15 deletions files/www/lan/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
<fieldset>
<legend id="system">System</legend>
<div><label>Name: </label><span id="name">?</span></div>
<div><label>Modell: </label><span id="model">?</span></div>
<div><label>MAC-Adresse: </label><span id="mac">?</span></div>
<div><label>Bekannte Knoten: </label><span id="node_count">?</span></div>
<div><label>Nachbarknoten: </label><span id="neigh_count">?</span></div>
<div><label>Model: </label><span id="model">?</span></div>
<div><label>MAC-Address: </label><span id="mac">?</span></div>
<div><label>Known nodes: </label><span id="node_count">?</span></div>
<div><label>Neighboring nodes: </label><span id="neigh_count">?</span></div>
<div><label>VPN Server: </label><span id="vpn_server">?</span></div>
<div><label>Laufzeit: </label><span id="uptime">?</span></div>
<div><label>Running time: </label><span id="uptime">?</span></div>
<div><label>CPU: </label><span id="load">?</span></div>
<div><label>RAM: </label><span id="memory_usage">?</span></div>
<div><label>Flash: </label><span id="rootfs_usage">?</span></div>
<div><label>System: </label><span id="uname">?</span></div>
<div><label>Uhrzeit: </label><span id="date">?</span></div>
<div><label>Time of day: </label><span id="date">?</span></div>
</fieldset>

<fieldset>
<legend id="freifunk">Netz: Freifunk</legend>
<legend id="freifunk">Network: Freifunk</legend>
<div><label>Nutzer: </label><span id="freifunk_user_count">?</span></div>
<div><label>Geschwindigkeit: </label><span id="freifunk_rx_speed">?</span>↓ <span id="freifunk_tx_speed">?</span>↑</div>
<div><label>Übertragen: </label><span id="freifunk_rx_data">?</span>↓ <span id="freifunk_tx_data">?</span>↑</div>
Expand All @@ -36,16 +36,16 @@
</fieldset>

<fieldset>
<legend id="lan">Netz: LAN</legend>
<div><label>Nutzer: </label><span id="lan_user_count">?</span></div>
<div><label>Geschwindigkeit: </label><span id="lan_rx_speed">?</span>↓ <span id="lan_tx_speed">?</span>↑</div>
<div><label>Übertragen: </label><span id="lan_rx_data">?</span>↓ <span id="lan_tx_data">?</span>↑</div>
<div><label>IPv4 Adressen: </label><span id="lan_addr4">?</span></div>
<div><label>IPv6 Adressen: </label><span id="lan_addr6">?</span></div>
<legend id="lan">Network: LAN</legend>
<div><label>User: </label><span id="lan_user_count">?</span></div>
<div><label>Speed: </label><span id="lan_rx_speed">?</span>↓ <span id="lan_tx_speed">?</span>↑</div>
<div><label>Data Transfered: </label><span id="lan_rx_data">?</span>↓ <span id="lan_tx_data">?</span>↑</div>
<div><label>IPv4 Address: </label><span id="lan_addr4">?</span></div>
<div><label>IPv6 Addresses: </label><span id="lan_addr6">?</span></div>
</fieldset>

<fieldset>
<legend id="wan">Netz: WAN</legend>
<legend id="wan">Network: WAN</legend>
<div><label>Internet Vorhanden: </label><span id="has_internet">?</span></div>
<div><label>Geschwindigkeit: </label><span id="wan_rx_speed">?</span>↓ <span id="wan_tx_speed">?</span>↑</div>
<div><label>Übertragen: </label><span id="wan_rx_data">?</span>↓ <span id="wan_tx_data">?</span>↑</div>
Expand All @@ -62,4 +62,4 @@
</fieldset>

</body>
</html>
</html>
12 changes: 6 additions & 6 deletions files/www/lan/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
function adv_toggle(e)
{
adv_mode = !adv_mode;
e.innerHTML = adv_mode ? "Erweitert: An" : "Erweitert: Aus";
e.innerHTML = adv_mode ? "Extended: An" : "Extended: Aus";
adv_apply();
}

Expand Down Expand Up @@ -116,14 +116,14 @@

<ul id="globalnav">
<li><a href="home.html" id="first">Home</a></li>
<li><a href="settings.html">Einstellungen</a></li>
<li><a href="network.html">Netzwerk</a></li>
<li><a href="settings.html">Settings</a></li>
<li><a href="network.html">Network</a></li>
<li><a href="wifiscan.html">WLAN-Scan</a></li>
<li><a href="upgrade.html">Upgrade</a></li>
<li><a href="password.html">Passwort</a></li>
<li><a href="#" onclick="reboot()">Neustart</a></li>
<li><a href="password.html">Password</a></li>
<li><a href="#" onclick="reboot()">Reboot</a></li>
<li><a href="#" onclick="logout()">Logout</a></li>
<li><a href="#" onclick="adv_toggle(this)">Erweitert: Aus</a></li>
<li><a href="#" onclick="adv_toggle(this)">Extended: Aus</a></li>
<li class="icon">
<a href="#" style="font-size:15px;" onclick="$('globalnav').classList.toggle('responsive')">☰</a>
</li>
Expand Down
6 changes: 3 additions & 3 deletions files/www/lan/network.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<html>
<head>
<title>Netzwerk</title>
<title>Network</title>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="shared.js"></script>
Expand All @@ -14,7 +14,7 @@
<div id="assignment"></div>
<div id="wireless"></div>
<div id="switches"></div>
<button type="button" onclick="save_data()">Speichern</button>
<button type="button" onclick="save_data()">Save</button>

</body>
</html>
</html>
Loading