diff options
Diffstat (limited to 'package')
43 files changed, 5573 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in index c6089db6e..67e46d422 100644 --- a/package/Config.in +++ b/package/Config.in @@ -208,6 +208,7 @@ source "package/ttcp/Config.in" source "package/udpcast/Config.in" source "package/vpnc/Config.in" source "package/vtun/Config.in" +source "package/webif/Config.in" if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS source "package/wget/Config.in" endif diff --git a/package/webif/Config.in b/package/webif/Config.in new file mode 100644 index 000000000..2e0d43672 --- /dev/null +++ b/package/webif/Config.in @@ -0,0 +1,29 @@ +config BR2_PACKAGE_WEBIF + bool "webif - Status Console" + default n + select BR2_PACKAGE_HASERL + help + A web interface for showing different network status. This package + requires awk support on the system, either the one provided by + Busybox or gawk. + + The default login on the status web pages are root/root and + admin/admin. This can be changed in the etc/httpd.conf file. + +config BR2_PACKAGE_WEBIF_INSTALL_INDEX_HTML + bool "instal index.html in /www which redirects to webif" + depends BR2_PACKAGE_WEBIF + default n + help + Installs a /www/index.html which redirects to the status console cgi + scripts. + +config BR2_PACKAGE_WEBIF_LANGUAGES + bool "install language support" + depends BR2_PACKAGE_WEBIF + default n + help + This option installs support for other languages than english. + + Supported languages: ca, cz, de, dk, ee, es, fr, hr, hu, it, nl, no, + pl, pt, ru and se. diff --git a/package/webif/files/etc/httpd.conf b/package/webif/files/etc/httpd.conf new file mode 100644 index 000000000..9e125daba --- /dev/null +++ b/package/webif/files/etc/httpd.conf @@ -0,0 +1,8 @@ +.asp:text/html +/cgi-bin/webif:root:root +/cgi-bin/webif:admin:admin +.svg:image/svg+xml +.png:image/png +.gif:image/gif +.jpg:image/jpg + diff --git a/package/webif/files/usr/lib/webif/apply.sh b/package/webif/files/usr/lib/webif/apply.sh new file mode 100755 index 000000000..9cbadf44a --- /dev/null +++ b/package/webif/files/usr/lib/webif/apply.sh @@ -0,0 +1,76 @@ +#!/bin/ash +# +# Default handlers for config files +# +HANDLERS_config=' + wireless) reload_wireless;; + network) reload_network;; + system) reload_system;; +' +HANDLERS_file=' + hosts) rm -f /etc/hosts; mv $config /etc/hosts; killall -HUP dnsmasq ;; + ethers) rm -f /etc/ethers; mv $config /etc/ethers; killall -HUP dnsmasq ;; + firewall) mv /tmp/.webif/file-firewall /etc/config/firewall && /etc/init.d/S45firewall;; +' + +# for some reason a for loop with "." doesn't work +eval "$(cat /usr/lib/webif/apply-*.sh 2>&-)" + +reload_network() { + echo '@TR<<Reloading>> @TR<<networking settings>> ...' + grep '^wan_' config-network >&- 2>&- && { + ifdown wan + ifup wan + killall -HUP dnsmasq + } + + grep '^lan_' config-network >&- 2>&- && { + ifdown lan + ifup lan + killall dnsmasq + /etc/init.d/S??dnsmasq + } +} + +reload_wireless() { + echo '@TR<<Reloading>> @TR<<wireless settings>> ...' + killall nas >&- 2>&- && sleep 2 + ( + /sbin/wifi + [ -f /etc/init.d/S41wpa ] && /etc/init.d/S41wpa + ) >&- 2>&- <&- +} + +reload_system() { + echo '@TR<<Applying>> @TR<<system settings>> ...' + echo "$(nvram get wan_hostname)" > /proc/sys/kernel/hostname +} + +cd /tmp/.webif + +# file-* other config files +for config in $(ls file-* 2>&-); do + name=${config#file-} + echo "@TR<<Processing>> @TR<<config file>>: $name" + eval 'case "$name" in + '"$HANDLERS_file"' + esac' +done + +# config-* simple config files +( + cd /proc/self + cat /tmp/.webif/config-* 2>&- | grep '=' >&- 2>&- && { + cat /tmp/.webif/config-* 2>&- | tee fd/1 | xargs -n1 nvram set + echo "@TR<<Committing>> NVRAM ..." + nvram commit + } +) +for config in $(ls config-* 2>&-); do + name=${config#config-} + eval 'case "$name" in + '"$HANDLERS_config"' + esac' +done +sleep 2 +rm -f config-* diff --git a/package/webif/files/usr/lib/webif/categories.awk b/package/webif/files/usr/lib/webif/categories.awk new file mode 100644 index 000000000..00312c93d --- /dev/null +++ b/package/webif/files/usr/lib/webif/categories.awk @@ -0,0 +1,27 @@ +BEGIN { + n = 0 + sel = 0 + FS=":" +} +($3 == "category") && (categories !~ /:$4:/) { + categories = categories ":" $4 ":"; + n++ + if ($4 ~ "^" selected "$") sel = n + c[n] = $4 + if (f[$4] == "") f[$4] = rootdir "/" indexpage "?cat=" $4 +} +($3 == "name") && ((p[$4] == 0) || (p[$4] > int($5))) { + gsub(/^.*\//, "", $1); + p[$4] = int($5) + 1 + f[$4] = rootdir "/" $1 +} +END { + print "<div id=\"mainmenu\"><h3><strong>@TR<<Categories>>:</strong></h3><ul>" + + for (i = 1; i <= n; i++) { + if (sel == i) print "<li class=\"selected-maincat\"><a href=\"" f[c[i]] "\">»@TR<<" c[i] ">>«</a></li>" + else print "<li><a href=\"" f[c[i]] "\"> @TR<<" c[i] ">> </a></li>"; + } + + print "</ul></div>" +} diff --git a/package/webif/files/usr/lib/webif/common.awk b/package/webif/files/usr/lib/webif/common.awk new file mode 100644 index 000000000..de3483e15 --- /dev/null +++ b/package/webif/files/usr/lib/webif/common.awk @@ -0,0 +1,38 @@ +function start_form(title, field_opts, field_opts2) { + print "<div class=\"settings\"" field_opts ">" + if (title != "") print "<div class=\"settings-title\"><h3><strong>" title "</strong></h3></div>" + print "<div class=\"settings-content\"" field_opts2 ">" +} + +function end_form(form_help, form_help_link) { + print "</div>" + if (form_help != "") form_help = "<dl>" form_help "</dl>" + print "<div class=\"settings-help\"><blockquote><h3><strong>@TR<<Short help>>:</strong></h3>" form_help form_help_link "</blockquote></div>" + print "<div style=\"clear: both\"> </div></div>" +} + +function textinput(name, value) { + return "<input type=\"text\" name=\"" name "\" value=\"" value "\" />" +} + +function hidden(name, value) { + return "<input type=\"hidden\" name=\"" name "\" value=\"" value "\" />" +} + +function button(name, caption) { + return "<input type=\"submit\" name=\"" name "\" value=\"@TR<<" caption ">>\" />" +} + +function helpitem(name) { + return "<dt>@TR<<" name ">>: </dt>" +} + +function helptext(short, name) { + return "<dd>@TR<<" short "|" name ">>: </dd>" +} + +function sel_option(name, caption, default, sel) { + if (default == name) sel = " selected=\"selected\"" + else sel = "" + return "<option value=\"" name "\"" sel ">@TR<<" caption ">></option>" +} diff --git a/package/webif/files/usr/lib/webif/form.awk b/package/webif/files/usr/lib/webif/form.awk new file mode 100644 index 000000000..808b99ebd --- /dev/null +++ b/package/webif/files/usr/lib/webif/form.awk @@ -0,0 +1,100 @@ +# $1 = type +# $2 = form variable name +# $3 = form variable value +# $4 = (radio button) value of button +# $5 = string to append +# $6 = additional attributes + +BEGIN { + FS="|" +} + +# trim leading whitespaces +{ + gsub(/^[ \t]+/,"",$1) +} + +$1 ~ /^onchange/ { + onchange = $2 +} + +($1 != "") && ($1 !~ /^option/) && (select_open == 1) { + select_open = 0 + printf "</select>" +} +$1 ~ /^start_form/ { + if ($3 != "") field_opts=" id=\"" $3 "\"" + else field_opts="" + if ($4 == "hidden") field_opts = field_opts " style=\"display: none\"" + start_form($2, field_opts); + print "<table width=\"100%\" summary=\"Settings\">" + form_help = "" + form_help_link = "" +} +$1 ~ /^field/ { + if (field_open == 1) print "</td></tr>" + if ($3 != "") field_opts=" id=\"" $3 "\"" + else field_opts="" + if ($4 == "hidden") field_opts = field_opts " style=\"display: none\"" + print "<tr" field_opts ">" + if ($2 != "") print "<td width=\"50%\">" $2 "</td><td width=\"50%\">" + else print "<td colspan=\"2\">" + + field_open=1 +} +$1 ~ /^checkbox/ { + if ($3==$4) opts="checked=\"checked\" " + else opts="" + if (onchange != "") opts = opts " onClick=\"" onchange "()\" onChange=\"" onchange "()\"" + print "<input id=\"" $2 "_" $4 "\" type=\"checkbox\" name=\"" $2 "\" value=\"" $4 "\" " opts " />" +} +$1 ~ /^radio/ { + if ($3==$4) opts="checked=\"checked\" " + else opts="" + if (onchange != "") opts = opts " onClick=\"" onchange "()\" onChange=\"" onchange "()\"" + print "<input id=\"" $2 "_" $4 "\" type=\"radio\" name=\"" $2 "\" value=\"" $4 "\" " opts " />" +} +$1 ~ /^select/ { + opts = "" + if (onchange != "") opts = opts " onClick=\"" onchange "()\" onChange=\"" onchange "()\"" + print "<select id=\"" $2 "\" name=\"" $2 "\"" opts ">" + select_id = $2 + select_open = 1 + select_default = $3 +} +($1 ~ /^option/) && (select_open == 1) { + if ($2 == select_default) option_selected=" selected=\"selected\"" + else option_selected="" + if ($3 != "") option_title = $3 + else option_title = $2 + print "<option id=\"" select_id "_" $2 "\"" option_selected " value=\"" $2 "\">" option_title " </option>" +} +($1 ~ /^listedit/) { + n = split($4 " ", items, " ") + for (i = 1; i <= n; i++) { + if (items[i] != "") print "<tr><td width=\"50%\">" items[i] "</td><td> <a href=\"" $3 $2 "remove=" items[i] "\">@TR<<Remove>></a></td></tr>" + } + print "<tr><td width=\"100%\" colspan=\"2\"><input type=\"text\" name=\"" $2 "add\" value=\"" $5 "\" /><input type=\"submit\" name=\"" $2 "submit\" value=\"@TR<<Add>>\" /></td></tr>" +} +$1 ~ /^caption/ { print "<b>" $2 "</b>" } +$1 ~ /^string/ { print $2 } +$1 ~ /^text/ { print "<input id=\"" $2 "\" type=\"text\" name=\"" $2 "\" value=\"" $3 "\" />" $4 } +$1 ~ /^password/ { print "<input id=\"" $2 "\" type=\"password\" name=\"" $2 "\" value=\"" $3 "\" />" $4 } +$1 ~ /^upload/ { print "<input id=\"" $2 "\" type=\"file\" name=\"" $2 "\"/>" } +$1 ~ /^submit/ { print "<input type=\"submit\" name=\"" $2 "\" value=\"" $3 "\" />" } +$1 ~ /^helpitem/ { form_help = form_help "<dt>@TR<<" $2 ">>: </dt>" } +$1 ~ /^helptext/ { form_help = form_help "<dd>@TR<<" $2 ">> </dd>" } +$1 ~ /^helplink/ { form_help_link = "<div class=\"more-help\"><a href=\"" $2 "\">@TR<<more...>></a></div>" } + +($1 ~ /^checkbox/) || ($1 ~ /^radio/) { + print $5 +} + +$1 ~ /^end_form/ { + if (field_open == 1) print "</td></tr>" + field_open = 0 + print "</table>" + end_form(form_help, form_help_link); + form_help = "" + form_help_link = "" +} diff --git a/package/webif/files/usr/lib/webif/lang/ca/common.txt b/package/webif/files/usr/lib/webif/lang/ca/common.txt new file mode 100644 index 000000000..3d19974bc --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/ca/common.txt @@ -0,0 +1,226 @@ +lang => Català +# Common +Settings saved => Canvis desats +Settings not saved => No s'han pogut desar els canvis +Save Changes => Desar canvis +Apply Changes => Aplicar canvis +Clear Changes => Desfer canvis +Review Changes => Comprovar canvis +Host Name => Nom de l'equip +Uptime => Uptime +Load => Càrrega del sistema +Version => Versió +Categories => Categories +Subcategories => Subcategories +more... => més... +Add => Afegir +Remove => Eliminar +Warning => Atenció +Password_warning => No heu establert una clau d'accés pel router (accés web i ssh). Per favor, elegiu-ne una ara (el nom d'usuari serà 'root') + +# Categories +Info => Info +About => Quant a +Router Info => Informació del router + +Status => Estat +Connections => Connexions +DHCP => DHCP +Wireless => Wi-Fi + +System => Sistema +Password => Clau +Settings => Configuració +Installed Software => Programes instal·lats +Firmware Upgrade => Actualitzar Firmware + +Network => Xarxa +LAN => LAN +WAN => Internet +Wireless => Wi-Fi +Advanced Wireless => Wi-Fi (avançat) +Hosts => Configuració de hosts + + +# 'About' page +Copyright => Copyright + +GPL_Text => Aquest programa és programari lliure; podeu redistribuir-lo i/o <br />modificar-lo baix els termes de la General Public License<br /> tal i com està publicada per la Free Sofware Foundation; bé la versió 2 d'aquesta Llicència o bé (segons la seva elecció) de qualsevol posterior. +Contributions by => Contribuidors +Layout based on => Aspecte basat en +by => realitzat per + + +No config change. => No hi ha hagut canvis a la configuració. +Config discarded. => Els canvis no s'han acceptat. +Config changes: => Configuració actual: +Updating config... => Actualitzant la configuració... + + +# 'Router Info' page +Firmware Version => Versió del firmware +Kernel Version => Versió del Kernel +Current Date/Time => Data/Hora +MAC Address => Adreça MAC + + +# 'Connections' page +Connection Status => Estat de les connexions +Physical Connections => Connexions físiques +Router Connections => Connexions del router + + +# 'DHCP' page +DHCP leases => Préstecs DHCP +IP Address => Adreça IP +Name => Nom +Expires in => Caduca d'ara a + + +# 'Wireless Status' page +Wireless Status => Estat del Wi-Fi + +# 'Password' page +Password Change => Canvi de la clau +New Password => Nova clau +Confirm Password => Confirmeu la clau + +# 'System Settings' page +System Settings => Paràmetres del sistema +Host Name => Nom de l'host +Language => Idioma + +# 'Installed Software' page +Installed Packages => Paquets instal·lats +Update package lists => Actualització de la llista de paquets +Uninstall => Desinstal·lar +Install => Instal·lar + + +# 'Firmware Upgrade' page +Firmware format => Format del firmware +Error => Error +done => fet +Invalid_formt => Format del firmware invàlid +Erase_JFFS2 => Esborrar la partició JFFS2 +Options => Opcions +Firmware_image => Fitxer del firmware +Upgrade => Actualitzar +Upgrading... => Actualitzant... + +# 'LAN Settings' page +LAN Settings => Opcions LAN +LAN Configuration => Configuració LAN +Netmask => Màscara de subxarxa +Default Gateway => Porta d'enllaç (gateway) +DNS Servers => Servidor DNS +DNS Address => Adreça IP del DNS + +Note => Nota + +# 'WAN Settings' page +WAN Settings => Opcions d'Internet +WAN Configuration => Configuració d'Internet +PPTP Server IP => Adreça IP del servidor PPTP +Connection Type => Tipus de connexió +No WAN => Sense configuració d'Internet +DHCP => DHCP +Static IP => IP estàtica +IP Settings => Opcions IP +PPP Settings => Opcions PPP +Redial Policy => Política de reconnexió +Connect on Demand => Baix demanda +Keep Alive => Connexió permanent +Maximum Idle Time => Temps màxim d'inactivitat +Redial Timeout => Temps de reconnexió +MTU => MTU (mida dels paquets) +Username => Nom d'usuari + + +# 'Wireless Configuration' page +Wireless Configuration => Configuració Wi-Fi +Wireless Interface => Interfície Wi-Fi +WEP Key => Clau WEP +Selected WEP Key => Clau WEP seleccionada +WPA PSK => WPA-PSK +ESSID => ESSID +Channel => Canal +RADIUS IP Address => Adreça IP del servidor RADIUS +RADIUS Server Key => Secret RADIUS +Enabled => Actiu +Disabled => Inactiu +ESSID Broadcast => Difusió del SSID +Show => Mostrar +Hide => Ocultar +WLAN Mode => Mode Wi-Fi +Access Point => Punt d'accés +Client => Client +Bridge => Bridge +Ad-Hoc => Ad-Hoc +Operation mode => Mode de funcionament +Encryption Settings => Paràmetres d'enriptació +Encryption Type => Tipus d'encriptació +PSK => PSK +WPA Mode => Mode WPA +WPA Algorithms => Algoritmes WPA +WEP Keys => Clau WEP + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Configuració Wi-Fi avançada +WDS Connections => Connexions WDS +MAC Filter List => Filtrat per adreça MAC +Filter Mode => Mode de filtrat +Allow => Autoritzar +Deny => Denegar +Set => Establir +Settings => Paràmetres +Automatic WDS => WDS automàtic + +# "Hosts" page + +MAC Address => Adreça MAC +Configured Hosts => Equips configurats +DHCP Static => Entrades DHCP estàtiques +Host Names => Nom dels equips + +Up => Pujar +Down => Baixar +Edit => Editar +Delete => Esborrar +Save => Desar +Cancel => Rebutjar + +Forward => Redirigir +Accept => Acceptar +Drop => Rebutjar + +Firewall => Firewall +Firewall Rules => Regles del Firewall +Firewall Configuration => Configuració del Firewall + +New Rule => Nova regla +Match => Filtrar +Target => Acció +Port => Port + +Protocol => Protocol +Source IP => IP origen +Destination IP => IP destí +Source Ports => Ports origen +Destination Ports => Ports destí + +Forward to => Redirigir a +Port => Port + +Helptext ESSID => SSID +Helptext DNS save => És recomanable desar els canvis abans d'afegir o eliminar servidors DNS a la llista + +Helptext Operation mode => Estableix el mode d'operació de la xarxa inalàmbrica (Wi-Fi) 'Client (bridge)' no canviarà la configuració de la interfície de xarxa. Simplement afegirà uns paràmetres que permetran que la interfície wireless actui en certa mida com un bridge. +Helptext Encryption Type => 'WPA (RADIUS)' només pot emprar-se en mode Punt d'Accés.<br /> 'WPA (PSK)' no funciona en mode Ad-Hoc. +Helptext IP Settings => Les opcions IP són opcionals per a DHCP y PPTP. Si les elegiu, s'empraran per defecte en cas de que la configuració automàtica falli. +Helptext Idle Time => Nombre de segons sense activitat amb Internet que ha d'esperar el router abans de desconectar-se. (Només pel mode Baix Demanda). +Helptext Redial Timeout => Nombre de segons sense rebre resposta del servidor que ha d'esperar el router per a tornar a connectar-se. + +# untranslated: +Available packages => Paquets disponibles + diff --git a/package/webif/files/usr/lib/webif/lang/cz/common.txt b/package/webif/files/usr/lib/webif/lang/cz/common.txt new file mode 100644 index 000000000..773e9d901 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/cz/common.txt @@ -0,0 +1,225 @@ +lang => Česky +# Common +Settings saved => Nastavení uloženo +Settings not saved => Nastavení nebylo uloženo +Save Changes => Uložit zmĕny +Apply Changes => Provést zmĕny +Clear Changes => Vymazat zmĕny +Review Changes => Prohlédnout zmĕny +Host Name => Hostname +Uptime => Uptime +Load => Zatížení +Version => Verze +Categories => Kategorie +Subcategories => Podkategorie +more... => více... +Add => Přidat +Remove => Odebrat +Warning => Varování +Password_warning => není nastaveno žádné heslo pro přístup do webové administrace a přes SSH.<br />Nastavte jej prosím nyní (Login ve webu používejte: 'root'). + +# Categories +Info => Info +About => Projekt +Router Info => Router + +Status => Stav +Connections => Připojení +DHCP => DHCP +Wireless => WLAN + +System => Systém +Password => Heslo +Settings => Nastavení +Installed Software => Nainstalovaný software +Firmware Upgrade => Flashnutí firmware + +Network => Síť +LAN => LAN +WAN => WAN port +Wireless => WLAN +Advanced Wireless => WLAN (podrobné) +Hosts => Stanice (hosts) + + +# 'About' page +Copyright => Copyright + +GPL_Text => Tento program patří mezi volný software, můžete jej distribuovat a/nebo mĕnit pod podmínkami uvedenými <br /> v licenci GNU GPL (General Public License) vydanými Nadací pro svobodný software (Free Software Foundation), <br /> její druhé verze, případnĕ pozdĕjších verzí. +Contributions by => S přispĕním +Layout based on => Layout postaven na +by => od + + +No config change. => Nebyly provedeny žádné zmĕny konfigurace. +Config discarded. => Vaše nastavení byla zahozena. +Config changes: => Aktuální zmĕny konfigurace: +Updating config... => Aktualizuji konfiguraci... + + +# 'Router Info' page +Firmware Version => Verze firmware +Kernel Version => Verze jádra +Current Date/Time => Aktuální datum/čas +MAC Address => MAC adresa + + +# 'Connections' page +Connection Status => Stav spojení +Physical Connections => Obsah ARP cache - aktivní MAC/IP adresy +Router Connections => Spojení na router + + +# 'DHCP' page +DHCP leases => DHCP výpůjčky +IP Address => IP adresa +Name => Jméno +Expires in => Vyprší + + +# 'Wireless Status' page +Wireless Status => Stav wifi + +# 'Password' page +Password Change => Zmĕna hesla +New Password => Nové heslo +Confirm Password => Nové heslo (potvrzení) + +# 'System Settings' page +System Settings => Systémová nastavení +Host Name => Hostname +Language => Jazyk + +# 'Installed Software' page +Installed Packages => Nainstalované balíčky +Available packages => Dostupné balíčky +Update package lists => Aktualizovat seznam balíčků +Uninstall => Odinstalovat +Install => Nainstalovat + + +# 'Firmware Upgrade' page +Firmware format => Formát firmware +Error => Chyba +done => hotovo +Invalid_format => Formát firmware je neznámý +Erase_JFFS2 => Smazat JFFS2 oblast +Options => Možnosti +Firmware_image => Soubor firmware: +Upgrade => Flashnout +Upgrading... => Flashuji... + +# 'LAN Settings' page +LAN Settings => Nastavení LAN +LAN Configuration => Konfigurace LAN +Netmask => Maska +Default Gateway => Brána +DNS Servers => DNS servery +DNS Address => Adresa DNS serveru + +Note => Poznámka + + +# 'WAN Settings' page +WAN Settings => Nastavení WAN portu +WAN Configuration => Konfigurace +PPTP Server IP => Adresa PPTP serveru +Connection Type => Typ připojení +No WAN => Odpojeno +DHCP => DHCP +Static IP => Pevná IP +IP Settings => Nastavení IP +PPP Settings => Nastavení PPP +Redial Policy => Navázání spojení +Connect on Demand => Na vyžádání (Connect on Demand) +Keep Alive => Stále připojen (Keep Alive) +Maximum Idle Time => Maximální čas bez aktivity (Maximum Idle Time) +Redial Timeout => Prodleva znovunavázání spojení po jeho ztrátĕ (Redial Timeout) +MTU => Maximální velikost paketu (MTU) +Username => Uživatelské jméno + + +# 'Wireless Configuration' page +Wireless Configuration => Konfigurace wifi +Wireless Interface => Wifi rozhraní +WEP Key => WEP klíč +Selected WEP Key => Vybraný WEP klíč +WPA PSK => WPA klíč +ESSID => ESSID +Channel => Kanál +RADIUS IP Address => Adresa RADIUS serveru +RADIUS Server Key => Heslo RADIUS serveru +Enabled => Zapnuto +Disabled => Vypnuto +ESSID Broadcast => Skrytí ESSID (ESSID-Broadcast) +Show => Zobrazeno +Hide => Skryto +WLAN Mode => Operační mód +Access Point => Access Point +Client => Klient +Bridge => Bridge +Ad-Hoc => Ad-Hoc +Encryption Settings => Šifrování přenosu +Encryption Type => Typ šifrování +PSK => WPA PSK +WPA Mode => Mód WPA +WPA Algorithms => WPA algoritmus +WEP Keys => WEP klíče + + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Rozšířené nastavení wifi +WDS Connections => WDS spojení +MAC Filter List => Seznam MAC filtru +Filter Mode => Mód MAC filtru +Allow => Povolit MAC v seznamu +Deny => Zakázat MAC s seznamu +Set => Nastavit +Settings => Nastavení +Automatic WDS => Automatické WDS spojení (LazyWDS) + +# "Hosts" page + +MAC Address => MAC adresa +Configured Hosts => Konfigurace stanic (hosts) +DHCP Static => Pevné přidĕlení IP podle MAC (DHCP) +Host Names => Jména stanic (hosts) + + +Up => Nahoru +Down => Dolů +Edit => Editovat +Delete => Smazat +Save => Uložit +Cancel => Storno + +Forward => Forward +Accept => Accept +Drop => Drop + +Firewall => Firewall +Firewall Rules => Pravidla firewallu +Firewall Configuration => Konfigurace firewallu + +New Rule => Nové pravidlo +Match => Filtr +Target => Cíl +Port => Port + +Protocol => Protokol +Source IP => Zdrojová IP +Destination IP => Cílová IP +Source Ports => Zdrojový port +Destination Ports => Cílový port + +Forward to => Forward na +Port => Port + +Helptext ESSID => Název Vaší bezdrátové sítĕ +Helptext DNS save => Před úpravou nastavení DNS serverů uložte ostatní zmĕny na této stránce. + +Helptext Operation mode => Toto nastavení mĕní mód bezdrátové sítĕ. Volbou Klient (bridge) se nezmĕní nastavení síťových rozhraní, pouze se nastaví nĕkteré parametry ovladače wifi, které umožní funkčnĕ omezenou možnost vytvoření bridge nad rozhraními. +Helptext Encryption Type => 'WPA (RADIUS)' lze použít pouze v módu Access Point. <br /> 'WPA (PSK)' nelze použít v Ad-Hoc módu. +Helptext IP Settings => Nastavení IP je pro možnost DHCP a PPTP volitelné. Zadaná adresa se použije v případĕ, že není DHCP server dostupný. +Helptext Idle Time => Čas v sekundách, po který když nedojde k žádné aktivitĕ, je spojení do Internetu uzavřeno. (pouze pro volbu Connect on Demand) +Helptext Redial Timeout => Čas po odpojení, po který router čeká, než se pokusí znovu navázat spojení. diff --git a/package/webif/files/usr/lib/webif/lang/de/common.txt b/package/webif/files/usr/lib/webif/lang/de/common.txt new file mode 100644 index 000000000..f8ab28df1 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/de/common.txt @@ -0,0 +1,228 @@ +lang => Deutsch +# Common +Settings saved => Einstellungen gespeichert +Settings not saved => Einstellungen nicht gespeichert +Save Changes => Speichern +Apply Changes => Übernehmen +Clear Changes => Verwerfen +Review Changes => Anzeigen +Host Name => Hostname +Uptime => Uptime +Load => Systemlast +Version => Version +Categories => Kategorien +Subcategories => Unterkategorien +more... => Weitere Informationen... +Add => Hinzufügen +Remove => Entfernen +Warning => Warnung +Password_warning => es wurde noch kein Passwort für Web-Administration und SSH gesetzt.<br />Bitte geben Sie jetzt ein neues Passwort ein (Benutzername im Browser: 'root'). + +# Categories +Info => Info +About => Über +Router Info => Routerinformationen + +Status => Status +Connections => Netzwerkverbindungen +DHCP => DHCP +Wireless => WLAN + +System => System +Password => Passwort +Settings => Einstellungen +Installed Software => Installierte Software +Firmware Upgrade => Firmware aktualisieren + +Network => Netzwerk +LAN => LAN +WAN => Internet +Wireless => WLAN +Advanced Wireless => WLAN (erweitert) +Hosts => Host-Konfiguration + + +# 'About' page +Copyright => Copyright + +GPL_Text => Dieses Programm ist freie Software. Sie können es unter den Bedingungen der GNU General Public License,<br /> wie von der Free Software Foundation veröffentlicht, weitergeben und/oder modifizieren,<br /> entweder gemäß Version 2 der Lizenz oder (nach Ihrer Option) jeder späteren Version. +Contributions by => Mit Beiträgen von +Layout based on => Layout basiert auf +by => von + + +No config change. => Es wurden keine Konfigurationsänderungen vorgenommen. +Config discarded. => Ihre Konfigurationsänderungen wurden verworfen. +Config changes: => Aktuelle Konfigurationsänderungen: +Updating config... => Aktualisiere die Konfiguration... + + +# 'Router Info' page +Firmware Version => Firmwareversion +Kernel Version => Kernelversion +Current Date/Time => Datum/Uhrzeit +MAC Address => MAC-Adresse + + +# 'Connections' page +Connection Status => Verbindungsstatus +Physical Connections => Netzwerkschnittstellen +Router Connections => Netzwerkverbindungen auf dem Router + + +# 'DHCP' page +DHCP leases => DHCP-Leases +IP Address => IP-Adresse +Name => Name +Expires in => Gültigkeitsdauer + + +# 'Wireless Status' page +Wireless Status => WLAN-Status + +# 'Password' page +Password Change => Passwort ändern +New Password => Neues Passwort +Confirm Password => Passwort bestätigen + +# 'System Settings' page +System Settings => Systemeinstellungen +Host Name => Hostname +Language => Sprache + +# 'Installed Software' page +Installed Packages => Installierte Pakete +Update package lists => Paketlisten aktualisieren +Uninstall => Deinstallieren +Install => Installieren + + +# 'Firmware Upgrade' page +Firmware format => Firmware-Format +Error => Fehler +done => fertig +Invalid_format => Das Dateiformat der Firmware ist ungültig +Erase_JFFS2 => JFFS2-Partition löschen +Options => Optionen +Firmware_image => Firmware-Datei: +Upgrade => Aktualisieren +Upgrading... => Aktualisiere... + +# 'LAN Settings' page +LAN Settings => Netzwerkeinstellungen +LAN Configuration => Netzwerkkonfiguration +Netmask => Subnetzmaske +Default Gateway => Standardgateway +DNS Servers => DNS-Server +DNS Address => DNS-Serveradresse + +Note => Hinweis + + +# 'WAN Settings' page +WAN Settings => Internet-Einstellungen +WAN Configuration => Internet-Konfiguration +PPTP Server IP => PPTP-Serveradresse +Connection Type => Verbindungsart +No WAN => Keine Verbindung +DHCP => DHCP +Static IP => Statische Konfiguration +IP Settings => IP-Konfiguration +PPP Settings => PPP-Einstellungen +Redial Policy => Verbindungsaufbau +Connect on Demand => Bei Bedarf +Keep Alive => Verbindung aufrechterhalten +Maximum Idle Time => Wartezeit bei Inaktivität +Redial Timeout => Wartezeit bei unterbrochener Verbindung +MTU => Maximale Paketgröße +Username => Benutzername + + +# 'Wireless Configuration' page +Wireless Configuration => WLAN-Konfiguration +Wireless Interface => WLAN-Interface +WEP Key => WEP-Schlüssel +Selected WEP Key => Ausgewählter WEP Schlüssel +WPA PSK => WPA-Schlüssel +ESSID => ESSID +Channel => Kanal +RADIUS IP Address => RADIUS-Serveradresse +RADIUS Server Key => RADIUS-Serverpasswort +Enabled => Aktiviert +Disabled => Deaktiviert +ESSID Broadcast => ESSID-Broadcast +Show => Anzeigen +Hide => Verstecken +WLAN Mode => Betriebsmodus +Access Point => Access Point +Client => Client +Bridge => Bridge +Ad-Hoc => Ad-Hoc +Encryption Settings => Verschlüsselungseinstellungen +Encryption Type => Verschlüsselungsart +PSK => Passwort +WPA Mode => WPA-Modus +WPA Algorithms => WPA-Verschlüsselungsalgorithmen +WEP Keys => WEP-Schlüssel + + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => WLAN-Konfiguration (erweitert) +WDS Connections => WDS-Verbindungen +MAC Filter List => Zugriffsbeschränkung (MAC-Adresse) +Filter Mode => Filtermodus +Allow => Erlauben +Deny => Verweigern +Set => Setzen +Settings => Einstellungen +Automatic WDS => Automatische WDS-Verbindung + +# "Hosts" page + +MAC Address => MAC-Adresse +Configured Hosts => Konfigurierte Hosts +DHCP Static => Statische DHCP-Einträge +Host Names => Host-Einträge + + +Up => Hoch +Down => Runter +Edit => Bearbeiten +Delete => Löschen +Save => Speichern +Cancel => Abbrechen + +Forward => Weiterleiten +Accept => Zulassen +Drop => Verweigern + +Firewall => Firewall +Firewall Rules => Firewall-Regeln +Firewall Configuration => Firewall-Konfiguration + +New Rule => Neue Regel +Match => Filter +Target => Ziel +Port => Port + +Protocol => Protokoll +Source IP => Quell-IP +Destination IP => Ziel-IP +Source Ports => Quell-Ports +Destination Ports => Ziel-Ports + +Forward to => Weiterleiten an +Port => Port + +Helptext ESSID => Name des Funknetzwerks +Helptext DNS save => Sie müssen Ihre Änderungen an dieser Seite speichern, bevor Sie DNS-Server hinzufügen oder entfernen + +Helptext Operation mode => Setzt den Betriebsmodus für das WLAN-Interface. Die Einstellung 'Client (Bridge)' ändert nichts an den eigentlichen Netzwerkeinstellungen, es ändert lediglich einige Parameter im WLAN-Treiber, damit man das Interface eingeschränkt in einer Bridge verwenden kann. +Helptext Encryption Type => 'WPA (RADIUS)' wird nur im Access-Point-Modus unterstützt. <br /> 'WPA (PSK)' funktioniert nicht im Ad-Hoc-Modus. +Helptext IP Settings => IP-Einstellungen sind optional für DHCP und PPTP. Wenn sie gesetzt sind, werden sie als Standardwerte verwendet, falls kein DHCP-Server erreichbar ist. +Helptext Idle Time => Wartezeit in Sekunden, nach der bei Inaktivität die Internetverbindung getrennt wird. +Helptext Redial Timeout => Maximale Zeit, die der Router auf Antwort vom Provider warten soll, bevor die Verbindung neu aufgebaut wird. + +# untranslated: +Available packages => Verfügbare Pakete + diff --git a/package/webif/files/usr/lib/webif/lang/dk/common.txt b/package/webif/files/usr/lib/webif/lang/dk/common.txt new file mode 100644 index 000000000..bd8f86745 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/dk/common.txt @@ -0,0 +1,231 @@ +lang => Dansk +# Common +Settings saved => Indstillingerne er gemt +Settings not saved => Indstillinger er ikke gemt +Save Changes => Gem ændringerne +Apply Changes => Aktiver ændringer +Clear Changes => Glem ændringerne +Review Changes => Se ændringer +Host Name => Værtsnavn +Uptime => Oppetid +Load => Systembelastning +Version => Version +Categories => Kategorier +Subcategories => Underkategorier +more... => mere... +Add => Tilføje +Remove => Fjern +Warning => Advarsel +Password_warning => Der er ikke sat noget kodeord eller løsen på hverken Webadministration eller SSH.<br />Vær venlig at vælge og/eller indtaste dit kodeord (Brugernavn er 'root' med små bogstaver). + +# Categories +Info => Info +About => Om +Router Info => Routerinformation + +Status => Status +Connections => Netværksforbindelser +DHCP => DHCP +Wireless => Trådløs + +System => System +Password => Kodeord +Settings => Indstillinger +Installed Software => Installeret programmel +Firmware Upgrade => Firmware opgradering + +Network => Netværk +LAN => Lokalnet +WAN => Internet +Wireless => Trådløs +Advanced Wireless => Avanceret trådløs +Hosts => Værtsnavne + + +# 'About' page +Copyright => Ophavsret + +GPL_Text => Dette program er fri software. De må bruge, ændre og videredistribuere det under betingelserne for "GNU General Public License",<br /> som offentliggjort af "Free Software Foundation" (Den frie softwarebevægelse), enten i version 2 af licensen eller (efter deres valg), en hvilkensomhelst senere version. + +Contributions by => Bidrag fra +Layout based on => Layoutet er baseret på +by => af + + +No config change. => Ingen konfigurationsændring foretaget +Config discarded. => Konfigurationsændringerne blev kasseret +Config changes: => Foreløbige ændringer +Updating config... => Sætter ændringerne i kraft + +# 'Router Info' page +Firmware Version => Firmwareversion +Kernel Version => Kerneversion +Current Date/Time => Aktuel dato/tid +MAC Address => MAC adresse + + +# 'Connections' page +Connection Status => Forbindelsesstatus +Physical Connections => Fysiske forbindelser +Router Connections => Routerens forbindelser + + +# 'DHCP' page +DHCP leases => DHCP leasinger +IP Address => IP adresse +Name => Navn +Expires in => Udløbstid + + +# 'Wireless Status' page +Wireless Status => Trådløs status + +# 'Password' page +Password Change => Ændre kodeord +New Password => Nyt kodeord +Confirm Password => Nyt kodeord igen + +# 'System Settings' page +System Settings => Systemindstillinger +Host Name => Værtsnavn +Language => Sprog + +# 'Installed Software' page +Installed Packages => Installerede pakker +Update package lists => Opdater pakkelisten +Uninstall => Afindstaller +Install => Installer + + +# 'Firmware Upgrade' page +Firmware format => Firmwareformat +Error => Fejl +done => færdig +Invalid_format => Ubrugelig_format +Erase_JFFS2 => Slet JFFS2 partitionen +Options => Tilvalg +Firmware_image => Firmwarefil: +Upgrade => Opgradere +Upgrading... => Opgraderer... + +# 'LAN Settings' page +LAN Settings => Lokale netindstillinger +LAN Configuration => Lokal netværkskonfiguration +Netmask => Undernetmaske +Default Gateway => Standard gateway +DNS Servers => DNS-Server +DNS Address => DNS-Serveradresse + +Note => Bemærk + + +# 'WAN Settings' page +WAN Settings => Internet indstillinger +WAN Configuration => Internetkonfiguration +PPTP Server IP => PPTP-serveradresse +Connection Type => Forbindelsestype +No WAN => Ingen Internetopsætning +DHCP => DHCP +Static IP => Statisk IP +IP Settings => IP indstillinger +PPP Settings => PPP indstillinger +Redial Policy => Genopkaldspolitik +Connect on Demand => Forbind når behovet er der +Keep Alive => Hold forbindelsen i live (keep alive) +Maximum Idle Time => Maksimal tid i tomgang (max idle) +Redial Timeout => Opkaldstimeout +MTU => Maksimal pakkestørelse (MTU) +Username => Brugernavn + + +# 'Wireless Configuration' page +Wireless Configuration => Trådløs konfiguration +Wireless Interface => Trådløs netkort +WEP Key => WEP nøgle +Selected WEP Key => Valgt WEP nøgle +WPA PSK => WPA nøgle +ESSID => ESSID +Channel => Kanal +RADIUS IP Address => IP adressen på RADIUS server +RADIUS Server Key => Kodeord til RADIUS server +Enabled => Aktiveret +Disabled => Deaktiveret +ESSID Broadcast => ESSID-Broadcast +Show => Vis +Hide => Skjul +WLAN Mode => Trådløs tilstand +Access Point => Access Point +Client => Klient +Bridge => bro +Ad-Hoc => Ad-Hoc +Encryption Settings => Krypteringsindstillinger +Encryption Type => Krypteringstype +PSK => PSK kode +WPA Mode => WPA tilstand +WPA Algorithms => WPA krypteringsalgoritme +WEP Keys => WEP nøgler + + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Avanceret opsætning af trådløs +WDS Connections => WDS forbindelser (WDS repeater) +MAC Filter List => Filteringsliste (MAC-numre) +Filter Mode => Filtreingstilstand +Allow => Tillad +Deny => Forbyd +Set => Sæt +Settings => Indstillinger +Automatic WDS => Automatisk WDS forbindelse + +# "Hosts" page + +MAC Address => MAC adresse +Configured Hosts => Værtsnavne +DHCP Static => Statiske IP adresser til DHCP +Host Names => Værtsnavne + + +Up => Op +Down => Ned +Edit => Rette +Delete => Slette +Save => Gemme +Cancel => Annullere + +Forward => Forward (videresend) +Accept => Accept (tillad) +Drop => Drop (smid væk) + +Firewall => Firewall +Firewall Rules => Firewall regler +Firewall Configuration => Firewallkonfiguration + +New Rule => Ny regel +Match => Match (sammenlign) +Target => Target (Gå til) +Port => Port + +Protocol => Protokol +Source IP => Afsenders IP +Destination IP => Modtagers IP +Source Ports => Afsender porte +Destination Ports => Modtager porte + +Forward to => Send videre til +Port => Port + +Helptext ESSID => Navn på trådløs netværk +Helptext DNS save => Gem ændringer på denne side før du tilføjer eller fjerner DNS servere. (Hvis ikke du vil miste dem.) + +Helptext Operation mode => Sætter driftstilstanden for den trådløse del af routeren. 'Klient' og 'Klient (bro)' bruges til at forbinde 2 trådløse routere. I mange tilfælde er WDS en bedre (men mere avanceret) løsning. 'Klient' udnytter dog båndbredden bedst, hvis du vitterlig kun har en maskine tilsluttet. <br /> Indstillingen 'Klient (bro)' ændrer ikke direkte ved netværksindstillingerne. Det er et beskidt hack som får routeren til at foregiver at kun en maskine (et MAC nummer) er tilsluttet. Det sker for at overvinde et problem i 802.11 protokollen, som forhindrer at man problemfrit (i almindelig 'Klient'-tilstand) kan bruge den trådløse forbindelse fra flere maskiner samtidig. <br /> AP bruges til en standalone router, hvor f.eks. bærbare computere skal have adgang til Internet og/eller lokalnet. <br /> Hvis du ikke ved hvad 'Ad Hoc' tilstanden gør, har du højst sandsynligt ikke brug for den. + +Helptext Encryption Type => 'WPA (RADIUS)' er kun understøttet i AP (Access Point) tilstand. <br /> 'WPA (PSK)' fungerer ikke i 'Ad-Hoc' tilstand. + +Helptext IP Settings => IP indstilinger er frivillig for DHCP og PPTP. Når de er sat, bliver de brugt som standværdiger, hvis der ikke er en tilgængelig DHCP server. + +Helptext Idle Time => Ventetid i sekunder før inaktivitet bliver årsagen til at forbindelsen afbrydes. + +Helptext Redial Timeout => Ventetid før der prøves at ringe op igen. + +# untranslated: +Available packages => Available packages diff --git a/package/webif/files/usr/lib/webif/lang/ee/common.txt b/package/webif/files/usr/lib/webif/lang/ee/common.txt new file mode 100644 index 000000000..e3690cd5f --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/ee/common.txt @@ -0,0 +1,230 @@ +lang => Eesti +#Common +Settings saved => Sätted salvestatud +Settings not saved => Sätted on salvestamata +Save Changes => Salvesta muudatused +Apply Changes => Rakenda muudatused +Clear Changes => Kustuta muudatused +Review Changes => Vaata tehtud muudatusi +Host Name => Hostinimi +Uptime => Töövõimeaega seni +Load => Koormus +Version => Versioon +Categories => Kategooriad +Subcategories => Alamkategooriad +more... => veel... +Add => Lisa +Remove => Eemalda +Warning => Hoiatus +Password_warning => veebilidese ja SSH salasõna on seadmata<br />Palun, sisesta see (veebiliidese kasutajanimi on 'root'). + +# Categories +Info => Info +About => Teavet +Router Info => Marsruuteri info + +Status => Olek +Connections => Ühendused +DHCP => DHCP +Wireless => Raadioliides + +System => Süsteem +Password => Parool +Settings => Sätted +Installed Software => Installitud tarkvara +Firmware Upgrade => Püsivara uuendamine + +Network => Võrk +LAN => LAN +WAN => WAN +Wireless => Raadioliides +Advanced Wireless => Raadioliidese täpsemad sätted +Hosts => Hostid + + +# About page +Copyright => Copyright + +GPL_Text => Käesolev programm on vabavara; seda võib levitada ja/või <br >modifitseerida vastavalt Free Software Foundationi <br > avaldatud avaliku litsentsi GNU General Public License 2. versiooni või <br > (teie valikul) mis tahes uuema versiooni tingimustele. + +Contributions by => Kaasaaitajad +Layout based on => Kujunduse idee +by => autor + + +No config change. => Konfiguratsioon muutmata. +Config discarded. => Konfiguratsioon hüljatud. +Config changes: => Konfiguratsiooni muudatused: +Updating config... => Uuendan konfiguratsiooni... + +# Router Info page +Firmware Version => Püsivara versioon +Kernel Version => Kerneli versioon +Current Date/Time => Praegune kuupäev/kellaaeg +MAC Address => MAC-aadress + + +# Connections page +Connection Status => Ühenduse olek +Physical Connections => Füüsilised ühendused +Router Connections => Marsruuteriühendused + + +# DHCP page +DHCP leases => DHCP antud aadressid +IP Address => IP-aadress +Name => Nimi +Expires in => Aegub + + +# Wireless Status page +Wireless Status => Raadioliidese olek + +# Password page +Password Change => Parooli muutmine +New Password => Uus parool +Confirm Password => Korrake parooli + +# System Settings page +System Settings => Süsteemi sätted +Host Name => Hostinimi +Language => Keel + +# Installed Software page +Installed Packages => Installitud paketid +Update package lists => Värskenda paketiloendit +Uninstall => Desinstalli +Install => Installi +Available packages => Saadaolevad paketid + +# Firmware Upgrade page +Firmware format => Püsivara vorming +Error => Tõrge +done => valmis +Invalid_format => Vale vorming +Erase_JFFS2 => Kustuta JFFS2 +Options => Valikud +Firmware_image => Püsivara tõmmis +Upgrade => Versiooniuuendus +Upgrading... => Uuendan... + +# LAN Settings page +LAN Settings => LAN-i sätted +LAN Configuration => LAN-i konfiguratsioon +Netmask => Võrgu mask +Default Gateway => Vaikelüüs +DNS Servers => DNS-serverid +DNS Address => DNS-i aadress + +Note => Märkus + + +# WAN Settings page +WAN Settings => WAN-i sätted +WAN Configuration => WAN-i konfiguratsioon +PPTP Server IP => PPTP-serveri IP +Connection Type => Ühenduse tüüp +No WAN => WAN-i ei kasutata +DHCP => DHCP +Static IP => Staatiline IP +IP Settings => IP-sätted +PPP Settings => PPP-sätted +Redial Policy => Kordusvalimispoliitika +Connect on Demand => Ühenda nõudmisel +Keep Alive => Hoia ühendust töös +Maximum Idle Time => Maksimaalne jõudeaeg +Redial Timeout => Kordusvalimise aegumine +MTU => MTU +Username => Kasutajanimi + + +# Wireless Configuration page +Wireless Configuration => Raadioliidese konfiguratsioon +Wireless Interface => Raadioliides +WEP Key => WEP-võti +Selected WEP Key => Valitud WEP-võti +WPA PSK => WPA PSK +ESSID => ESSID +Channel => Kanal +RADIUS IP Address => RADIUS IP-aadress +RADIUS Server Key => RADIUS-serveri võti +Enabled => Lubatud +Disabled => Keelatud +ESSID Broadcast => ESSID-i levindamine +Show => Näita +Hide => Peida +WLAN Mode => WLAN-i rez"iim +Access Point => AP +Client => Klient +Bridge => Sild +Ad-Hoc => Ad-Hoc +Encryption Settings => Krüpteerimise sätted +Encryption Type => Krüpteerimise tüüp +PSK => PSK +WPA Mode => WPA rez"iim +WPA Algorithms => WPA algoritmid +WEP Keys => WEP-võtmed + + +# Advanced Wireless Configuration page +Advanced Wireless Configuration => Raadioliidese täpsem konfiguratsioon +WDS Connections => WDS-ühendused +MAC Filter List => MAC-filtri loend +Filter Mode => Filtri rez"iim +Allow => Luba +Deny => Keela +Set => Sea +Settings => Sätted +Automatic WDS => Automaatne WDS + +# "Hosts" page + +MAC Address => MAC-aadress +Configured Hosts => Konfigureeritud hostid +DHCP Static => Staatiline DHCP +Host Names => Hostinimed + + +Up => Üles +Down => Alla +Edit => Muuda +Delete => Kustuta +Save => Salvesta +Cancel => Loobu + +Forward => Forward +Accept => Accept +Drop => Drop + +Firewall => Tulemüür +Firewall Rules => Tulemüüri reeglid +Firewall Configuration => Tulemüüri konfiguratsioon + +New Rule => Uus reegel +Match => Vastavus +Target => Sihtkoht +Port => Port + +Protocol => Protokoll +Source IP => Saatja IP +Destination IP => Saaja IP +Source Ports => Saatja pordid +Destination Ports => Saaja pordid + +Forward to => Suuna: +Port => Port + +Helptext ESSID => Teie traadita võrgu võrgunimi + +Helptext DNS save => Sellel lehel tehtud muudatused tuleb enne DNS-serverite lisamist/eemaldamist salvestada + +Helptext Operation mode => Määrab teie traadita võrgu tööreziimi. Säte "Klient (Sild)" ei muuda võrguliidese sätteid. Muudetakse ainult raadioliidese draiveri teatud parameetreid, mis on seotud liidese sillarez"iimi piirangute lubamisega + +Helptext Encryption Type => 'WPA (RADIUS)' on lubatud ainult rez"iimis "AP". <br /> Säte 'WPA (PSK)' ei tööta võrdõigusvõrgurez"iimis (Ad-Hoc) + +Helptext IP Settings => IP-sätted on DHCP ja PPTP puhul valikulised. Kui muudate neid sätteid, siis rakendatakse need vaikesätetena juhul, kui DHCP-server pole saadaval. + +Helptext Idle Time => Aeg sekundites, mille vältel marsruuter enne Interneti-ühenduse katkestamist ootab (ainult sätte Connect on Demand puhul). + +Helptext Redial Timeout => Aeg sekundites, kui kaua marsruuter pärast teenusepakkuja võrgust teate "pole vastust" saamist ootab, enne kui asub ühendust taastama. + diff --git a/package/webif/files/usr/lib/webif/lang/es/common.txt b/package/webif/files/usr/lib/webif/lang/es/common.txt new file mode 100644 index 000000000..d488d1f43 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/es/common.txt @@ -0,0 +1,227 @@ +lang => Español +# Common +Settings saved => Cambios guardados +Settings not saved => No se han podido guardar los cambios +Save Changes => Guardar cambios +Apply Changes => Aplicar cambios +Clear Changes => Deshacer cambios +Review Changes => Comprobar cambios +Host Name => Nombre del equipo +Uptime => Uptime +Load => Carga del sistema +Version => Versión +Categories => Categorías +Subcategories => Subcategorís +more... => más... +Add => Añadir +Remove => Eliminar +Warning => Atención +Password_warning => no has establecido una contraseña de protección para el router (acceso web y ssh). Por favor, elija una ahora (el nombre de usuario será 'root') + +# Categories +Info => Info +About => Acerca de +Router Info => Información del router + +Status => Estado +Connections => Conexiones +DHCP => DHCP +Wireless => Wi-Fi + +System => Sistema +Password => Contraseña +Settings => Configuración +Installed Software => Programas instalados +Firmware Upgrade => Actualizar Firmware + +Network => Red +LAN => LAN +WAN => Internet +Wireless => Wi-Fi +Advanced Wireless => Wi-Fi (avanzado) +Hosts => Configuration de hosts + + +# 'About' page +Copyright => Copyright + +GPL_Text => Este programa es software libre; Usted puede distribuirlo y/o <br />modificarlo bajo los términos de la General Public License<br />como está publicada por la Free Sofware Foundation; bien de la versión 2 de dicha Licencia o bien (según su elección) de cualquier versión posterior. +Contributions by => Contribuidores +Layout based on => Aspecto basado en +by => por + + +No config change. => No ha habido cambios de configuración. +Config discarded. => Los cambios no se han aceptado. +Config changes: => Configuración actual: +Updating config... => Actualizando la configuración... + + +# 'Router Info' page +Firmware Version => Versión del firmware +Kernel Version => Versión del Kernel +Current Date/Time => Fecha/Hora +MAC Address => Dirección MAC + + +# 'Connections' page +Connection Status => Estado de las conexiones +Physical Connections => Conexiones físicas +Router Connections => Conexiones del router + + +# 'DHCP' page +DHCP leases => Préstamos DHCP +IP Address => Dirección IP +Name => Nombre +Expires in => Caduca en + + +# 'Wireless Status' page +Wireless Status => Estado del Wi-Fi + +# 'Password' page +Password Change => Cambio de la contraseña +New Password => Nueva contraseña +Confirm Password => Confirme la contraseña + +# 'System Settings' page +System Settings => Parámetros del sistema +Host Name => Nombre del host +Language => Idioma + +# 'Installed Software' page +Installed Packages => Paquetes instalados +Update package lists => Actualización de la lista de paquetes +Uninstall => Desinstalar +Install => Instalar + + +# 'Firmware Upgrade' page +Firmware format => Formato del firmware +Error => Error +done => hecho +Invalid_formt => Formato del firmware inválido +Erase_JFFS2 => Borrar la partición JFFS2 +Options => Opciones +Firmware_image => Archivo del firmware +Upgrade => Actualizar +Upgrading... => Actualización... + +# 'LAN Settings' page +LAN Settings => Configuración LAN +LAN Configuration => Configuración LAN +Netmask => Máscara de subred +Default Gateway => Puerta de enlace (gateway) +DNS Servers => Servidor DNS +DNS Address => Dirección IP del DNS + +Note => Nota + +# 'WAN Settings' page +WAN Settings => Configuración de Internet +WAN Configuration => Configuración de Internet +PPTP Server IP => Dirección IP del servidor PPTP +Connection Type => Tipo de conexión +No WAN => Sin configuración de Internet +DHCP => DHCP +Static IP => IP estática +IP Settings => Configuración IP +PPP Settings => Configuración PPP +Redial Policy => Opciones de reconexión +Connect on Demand => Bajo demanda +Keep Alive => Conexión permanente +Maximum Idle Time => Tiempo máximo de inactividad +Redial Timeout => Tiempo de reconexión +MTU => MTU (tamaño de los paquetes) +Username => Nombre de usuario + + +# 'Wireless Configuration' page +Wireless Configuration => Configuración Wi-Fi +Wireless Interface => Interfaz Wi-Fi +WEP Key => Clave WEP +Selected WEP Key => Clave WEP seleccionada +WPA PSK => WPA-PSK +ESSID => ESSID +Channel => Canal +RADIUS IP Address => Dirección IP del servidor RADIUS +RADIUS Server Key => Secreto RADIUS +Enabled => Activado +Disabled => Desactivado +ESSID Broadcast => Difusión del SSID +Show => Mostrar +Hide => Ocultar +WLAN Mode => Modo Wi-Fi +Access Point => Punto de acceso +Client => Cliente +Bridge => Bridge +Ad-Hoc => Ad-Hoc +Operation mode => Modo de funcionamiento +Encryption Settings => Parámetros de enriptación +Encryption Type => Tipo de encriptación +PSK => PSK +WPA Mode => Modo WPA +WPA Algorithms => Algoritmos WPA +WEP Keys => Clave WEP + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Configuración Wi-Fi avanzada +WDS Connections => Conexiones WDS +MAC Filter List => Filtrar por dirección MAC +Filter Mode => Modo de filtrado +Allow => Autorizar +Deny => Denegar +Set => Establecer +Settings => Parámetros +Automatic WDS => WDS automático + +# "Hosts" page + +MAC Address => Dirección MAC +Configured Hosts => Equipos configurados +DHCP Static => Entradas DHCP estáticas +Host Names => Nombre de los equipos + +Up => Subir +Down => Bajar +Edit => Editar +Delete => Borrar +Save => Guardar +Cancel => Cancelar + +Forward => Redirigir +Accept => Aceptar +Drop => Descartar + +Firewall => Firewall +Firewall Rules => Reglas del Firewall +Firewall Configuration => Configuración del Firewall + +New Rule => Nueva regla +Match => Filtrar +Target => Acción +Port => Puerto + +Protocol => Protocolo +Source IP => IP origen +Destination IP => IP destino +Source Ports => Puertos origen +Destination Ports => Puertos destino + +Forward to => Redirigir a +Port => Puerto + +Helptext ESSID => SSID +Helptext DNS save => Es recomendable guardar los cambios antes de añadir o eliminar servidores de DNS de la lista + +Helptext Operation mode => Establece el modo de operación de tu red wireless. Eligiendo 'Client (bridge)' no cambiará la configuración de la interfaz de red. Simplemente añadirá unos parámetros que permitirán que la interfaz wireless actúe en cierta medida en modo bridge. +Helptext Encryption Type => 'WPA (RADIUS)' sólo puede usarse en modo Punto de Acceso.<br /> 'WPA (PSK)' no funciona en modo Ad-Hoc. +Helptext IP Settings => Las opciones IP son opcionales para DHCP y PPTP. Si las eliges, se utilizarán por defecto en caso de que la configuración automática falle. +Helptext Idle Time => Número de segundos sin actividad con Internet que debe esperar el router antes de desconectarse. (Sólo para el modo Bajo Demanda). +Helptext Redial Timeout => Número de segundos sin recibir respuesta del servidor que debe esperar el router para volver a conectarse. + + +# untranslated: +Available packages => Available packages + diff --git a/package/webif/files/usr/lib/webif/lang/fr/common.txt b/package/webif/files/usr/lib/webif/lang/fr/common.txt new file mode 100644 index 000000000..96cdb83a7 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/fr/common.txt @@ -0,0 +1,238 @@ +lang => Français +Encoding => UTF-8 + +# Common +Settings saved => Sauvegardé +Settings not saved => Non sauvegardé +Save Changes => Sauvegarder +Apply Changes => Appliquer +Clear Changes => Effacer +Review Changes => Revoir +Host Name => Nom de machine +Uptime => Uptime +Load => Charge système +Version => Version +Categories => Catégories +Subcategories => Sous-catétgories +more... => davantage... +Add => Ajouter +Remove => Enlever + +Warning => Attention +Password_warning => vous n'avez pas configuré de mot de passe pour l'interface Web et l'accès SSH<br /> Entrez en un maintenant (le nom d'utilisateur dans le navigateur sera 'root'). + +# Categories +Info => Info +About => A propos +Router Info => Informations routeur + +Status => Statut +Connections => Connexions réseau +DHCP => DHCP +Wireless => Wi-Fi + +System => Système +Password => Mot de passe +Settings => Paramètres +Installed Software => Logiciels installés +Firmware Upgrade => Mise à jour firmware + +Network => Réseau +LAN => LAN +WAN => Internet +Wireless => Wi-Fi +Advanced Wireless => Wi-Fi (avancé) +Hosts => Configuration des hôtes + + +# 'About' page +Copyright => Copyright + +GPL_Text => Ce programme est un logiciel libre; vous pouvez le redistribuer +et/ou le modifier sous les termes de la General Public License telle qu'elle +est publiée par la Free Sofware Foundation; que ce soit sous la version +2 de la license, ou (à votre convenance) une version ultérieure +Contributions by => Contributions par +Layout based on => Présentation basée sur +by => par + + +No config change. => Pas de changements. +Config discarded. => Pas de prise en compte. +Config changes: => Configuration actuelle: +Updating config... => Mise à jour... + + +# 'Router Info' page +Firmware Version => Version du firmware +Kernel Version => Version du noyau +Current Date/Time => Date et heure +MAC Address => Adresse MAC + + +# 'Connections' page +Connection Status => Etat des connexions +Physical Connections => Connexions physiques +Router Connections => Connexions au routeur + + +# 'DHCP' page +DHCP leases => Baux DHCP +IP Address => Adresse IP +Name => Nom +Expires in => Expire dans + + +# 'Wireless Status' page +Wireless Status => Etat du Wi-Fi + +# 'Password' page +Password Change => Changement du mot de passe +New Password => Nouveau mot de passe +Confirm Password => Confirmez le mot de passe + +# 'System Settings' page +System Settings => Paramètres du système +Host Name => Nom d'hôte +Language => Langue + +# 'Installed Software' page +Installed Packages => Paquets logiciels installés +Update package lists => Mise à jour de la liste des paquets +Uninstall => Désinstaller +Install => Installer + + +# 'Firmware Upgrade' page +Firmware format => Format du firmware +Error => Erreur +done => prêt +Invalid_formt => Le firmware n'a pas un format valide +Erase_JFFS2 => Effacer la partition JFFS2 +Options => Options +Firmware_image => Fichier firmware +Upgrade => Mettre à jour +Upgrading... => Mise à jour en cours... + +# 'LAN Settings' page +LAN Settings => Paramètres LAN +LAN Configuration => Configuration LAN +Netmask => Masque réseau +Default Gateway => Passerelle par défaut +DNS Servers => Serveur DNS +DNS Address => Addresse DNS + +Note => Note + + +# 'WAN Settings' page +WAN Settings => Paramètres Internet +WAN Configuration => Configuration Internet +PPTP Server IP => Adresse IP du serveur PPTP +Connection Type => Type de connexion +No WAN => Pas de configuration WAN +DHCP => DHCP +Static IP => IP statique +IP Settings => Paramètres IP +PPP Settings => Paramètres PPP +Redial Policy => Options de renumérotation +Connect on Demand => Sur demande +Keep Alive => Toujours connecté +Maximum Idle Time => Délai maximal d'inactivté +Redial Timeout => Délai avant renumérotation +MTU => Taille maximale des paquets +Username => Nom d'utilisateur + + +# 'Wireless Configuration' page +Wireless Configuration => Configuration Wi-Fi +Wireless Interface => Interface Wi-Fi +WEP Key => Clé WEP +Selected WEP Key => Choix de la clé WEP +WPA PSK => WPA clé pré-partagée +ESSID => ESSID +Channel => Canal +RADIUS IP Address => Adresse IP du serveur RADIUS +RADIUS Server Key => Secret partagé avec le serveur RADIUS +Enabled => Activé +Disabled => Désactivé +ESSID Broadcast => Diffusion du SSID +Show => Montrer +Hide => Cacher +WLAN Mode => Mode de fonctionnement Wi-Fi +Access Point => Point d'accès +Client => Client +Bridge => Pont-réseau +Ad-Hoc => Ad-Hoc +Encryption Settings => Paramètres de chiffrement +Encryption Type => Type de chiffrement +PSK => Clé pré-partagée +WPA Mode => Mode WPA +WPA Algorithms => Algorithmes WPA +WEP Keys => Clés WEP + + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Configuration Wi-Fi avancée +WDS Connections => Connexions WDS +MAC Filter List => Filtre par adresses MAC +Filter Mode => Mode de filtrage +Allow => Autoriser +Deny => Refuser +Set => Paramètrer +Settings => Paramètres +Automatic WDS => WDS automatique +WDS watchdog timeout => Délai d'inactivité WDS +Antenna selection => Sélection de l'antenne + +# "Hosts" page + +MAC Address => Adresse MAC +Configured Hosts => Hôtes configurés +DHCP Static => Entrées DHCP statiques +Host Names => Noms d'hôtes + +Up => Monter +Down => Descendre +Edit => Editer +Delete => Effacer +Save => Sauvegarder +Cancel => Annuler + +Forward => Transférer +Accept => Accepter +Drop => Ignorer + +Firewall => Pare-feu +Firewall Rules => Règles du pare-feu +Firewall Configuration => Configuration du pare-feu + +New Rule => Nouvelle règle +Match => Concordance +Target => Destination +Port => Port + +Protocol => Protocole +Source IP => IP source +Destination IP => IP de destination +Source Ports => Ports source +Destination Ports => Ports de destination + +Forward to => Transférer vers +Port => Port + + +Helptext ESSID => Nom du réseau sans-fil +Helptext DNS save => Il est recommandé de sauvegarder vos paramètres avant d'ajouter/enlever des serveurs DNS + + +Helptext Operation mode => Configure le mode de fonctionnement de votre +réseau sans-fil. Le mode Client (Pont réseau sans-fil) ne changera pas les paramètres de votre interface. Certains paramètres de la carte Wi-Fi seront modifiés de manière à pouvoir fonctionner en mode réseau sans-fil. +Helptext Encryption Type => 'WPA (RADIUS)' ne fonctionne qu'en mode point d'accès. <br /> 'WPA (PSK)' ne fonctionne pas en mode Ad-hoc. +Helptext IP Settings => Les paramètres IP sont optionnels pour DHCP et PPTP. Si vous les configurez, ils seront utilisé comme paramètres par défaut dans le cas oú le serveur DHCP ne répond< pas. +Helptext Idle Time => Nombre de secondes sans traffic internet à attendre avant que le routeur déconnecte d'Internet (Connexion à la demande) +Helptext Redial Timeout => Nombre de secondes à attendre après n'avoir recu aucune réponse du fournisseur avant un nouvel éssai de connexion. + + +Available packages => Paquetages disponibles + diff --git a/package/webif/files/usr/lib/webif/lang/hr/common.txt b/package/webif/files/usr/lib/webif/lang/hr/common.txt new file mode 100644 index 000000000..a6291a26a --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/hr/common.txt @@ -0,0 +1,199 @@ +lang => Hrvatski
+Encoding => UTF-8
+# Common
+Settings saved => Postavke Spremljene
+Settings not saved => Postavke Nisu Spremljene
+Save Changes => Spremi Postavke
+Apply Changes => Primijeni Postavke
+Clear Changes => Obriši Postavke
+Review Changes => Pregledaj Izmjene
+Host Name => Naziv Hosta
+Uptime => U Pogonu Od
+Load => Optereæenje
+Version => Verzija
+Categories => Kategorije
+Subcategories => Podkategorije
+more... => nastavak...
+Add => Dodaj
+Remove => Makni
+Warning => Upozorenje
+Password_warning => Niste postavili lozinku za Web suèelje i SSH pristup
+Molimo vas unesite lozinku (korisnièko ime u vašem pregledniku æ biti 'root').
+# Categories
+Info => Informacije
+About => Opis
+Router Info => O ureðaju
+Status => Status
+Connections => Veze
+DHCP => DHCP
+Wireless => Wireless
+System => Sustav
+Password => Lozinka
+Settings => Postavke
+Installed Software => Instalirani Softver
+Firmware Upgrade => Nadogradnja Firmware-a
+Network => Mreža
+LAN => LAN
+WAN => WAN
+Wireless => Wireless
+Advanced Wireless => Napredne Wireless Postavke
+Hosts => Konfigurirani Hostovi
+
+# 'About' page
+Copyright => Copyright
+GPL_Text => This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+Contributions by => Contributions by SL SOLUCIJE d.o.o.
+Layout based on => Layout based on SmartHop webif
+by => by Silvije Filipovic - silvije.filipovic@slsolucije.hr
+
+No config change. => Nema nikakvih promjena konfiguracije.
+Config discarded. => Vaše promjene konfiguracije su opozvane.
+Config changes: => Trenutne promjene konfiguracije:
+Updating config... => Konfiguracija se nadograðuje...
+
+# 'Router Info' page
+Firmware Version => Firmware Verzija
+Kernel Version => Kernel Verzija
+Current Date/Time => Trenutni Datum/ Vrijeme
+MAC Address => Mac Adresa
+
+# 'Connections' page
+Connection Status => Status Veza
+Physical Connections => Fizièke Veze
+Router Connections => Usmjeravanje
+
+# 'DHCP' page
+DHCP leases => DHCP dodjela
+IP Address => IP Adresa
+Name => Naziv
+Expires in => Rok istjecanja
+
+# 'Wireless Status' page
+Wireless Status => Wireless Status
+# 'Password' page
+Password Change => Promjena Lozinke
+New Password => Nova Lozinka
+Confirm Password => Potvrdi Lozinku
+# 'System Settings' page
+System Settings => Postavke Sustava
+Host Name => Naziv Hosta
+Language => Jezik
+# 'Installed Software' page
+Installed Packages => Instalirani Paketi
+Update package lists => Ažuriraj listu paketa
+Uninstall => Deinstaliraj
+Install => Instaliraj
+
+# 'Firmware Upgrade' page
+Firmware format => Firmware format
+Error => Greška
+done => gotovo
+Invalid_formt => Neispravan Firmware Format
+Erase_JFFS2 => Izbriši JFFS2 particiju
+Options => Opcije
+Firmware_image => Firmware image za upload
+Upgrade => Nadogradi
+Upgrading... => Nadogradnja u tijeku...
+# 'LAN Settings' page
+LAN Settings => LAN Postavke
+LAN Configuration => LAN Konfiguracija
+Netmask => Netmask
+Default Gateway => Default Gateway
+DNS Servers => DNS Serveri
+DNS Address => DNS Adresa
+Note => Bilješke
+# 'WAN Settings' page
+WAN Settings => WAN Postavke
+WAN Configuration => WAN Konfiguracija
+PPTP Server IP => PPTP Server IP
+Connection Type => Tip Konekcije
+No WAN => Bez WAN Konekcije
+DHCP => DHCP
+Static IP => Statièki IP
+IP Settings => IP Postavke
+PPP Settings => PPP Postavke
+Redial Policy => Redial Policy
+Connect on Demand => Spajanje na Zahtjev
+Keep Alive => Keep Alive
+Maximum Idle Time => Dozvoljeni Max. Idle Time
+Redial Timeout => Redial Timeout
+MTU => MTU
+Username => Korisnièko Ime
+
+# 'Wireless Configuration' page
+Wireless Configuration => Wireless Konfiguracija
+Wireless Interface => Wireless Interface
+WEP Key => WEP Key
+Selected WEP Key => Odabrani WEP Key
+WPA PSK => WPA PSK
+ESSID => ESSID
+Channel => Kanal
+RADIUS IP Address => RADIUS IP Adresa
+RADIUS Server Key => RADIUS Server Key
+Enabled => Omoguæeno
+Disabled => Onemoguæeno
+ESSID Broadcast => ESSID Broadcast
+Show => Neskriveni
+Hide => Skriveni
+WLAN Mode => WLAN Mod
+Access Point => Access Point
+Client => Client
+Bridge => Bridge
+Ad-Hoc => Ad-Hoc
+Operation mode => Operaativni mod
+Encryption Settings => Postavke Enkripcije
+Encryption Type => Tip Enkripcije
+PSK => PSK
+WPA Mode => WPA Mod
+WPA Algorithms => WPA Algoritmi
+WEP Keys => WEP Keys
+# 'Advanced Wireless Configuration' page
+Advanced Wireless Configuration => Napredne Wireless Postavke
+WDS Connections => WDS Veze
+MAC Filter List => MAC Filter Lista
+Filter Mode => Filter Mod
+Allow => Dozvoli
+Deny => Zabrani
+Set => Postavi
+Settings => Postavke
+Automatic WDS => Automatski WDS
+# "Hosts" page
+MAC Address => MAC Adresa
+Configured Hosts => Konfigurirani Hostovi
+DHCP Static => Statièki DHCP
+Host Names => Nazivi Hostova
+Up => Gore
+Down => Dolje
+Edit => Uredi
+Delete => Briši
+Save => Spremi
+Cancel => Odustani
+Forward => Naprijed
+Accept => Prihvati
+Drop => Otkaži
+Firewall => Firewall
+Firewall Rules => Firewall Pravila
+Firewall Configuration => Firewall Konfiguracija
+New Rule => Novo Pravilo
+Match => Uvjet
+Target => Cilj
+Port => Port
+Protocol => Protokol
+Source IP => Ishodišni IP
+Destination IP => Odredišni IP
+Source Ports => Ishodišni Portovi
+Destination Ports => Odredišni Portovi
+Forward to => Preusmjeravanje na
+Port => Port
+Helptext ESSID => Naziv Wireless Mreže
+Helptext DNS save => Trebali biste spremiti vaše postavke na ovoj stranici prije dodavanja/brisanja DNS posljužitelja
+Helptext Operation mode => Ova opcija odreðuje operativni mod rada vaše wireless mreže. Odabir 'Client (Bridge)' neæe promijeniti postavke mrežnog suèelja. Samo æe biti dodani parametri u pogonski program koji omoguæavaju ogranièene bridging funkcije suèelja.
+Helptext Encryption Type => 'WPA (RADIUS)' je podržan samo u Access Point modu.
+'WPA (PSK)' ne radi u Ad-Hoc modu.
+Helptext IP Settings => IP Postavke su opcionalne za DHCP i PPTP. Ukoliko su postavljene, koriste se kao pretpostavljene, u sluèaju kada DHCP poslužitelj nije dostupan.
+Helptext Idle Time => Vrijeme u sekundama bez internet prometa do kojeg ureðaj treba èekati prije prekida veze (samo kod Spajanja na Zahtjev)
+Helptext Redial Timeout => Vrijeme u sekundama za prijem odgovora od prividera prije ponovnog spajanja
diff --git a/package/webif/files/usr/lib/webif/lang/hu/common.txt b/package/webif/files/usr/lib/webif/lang/hu/common.txt new file mode 100644 index 000000000..a8a08e658 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/hu/common.txt @@ -0,0 +1,227 @@ +lang => Magyar +# Common +Settings saved => Beállítások elmentve +Settings not saved => Beállítások mentésének mellőzése +Save Changes => Változatások mentése +Apply Changes => Változtatások alkalmazása +Clear Changes => Változtatások eldobása +Review Changes => Változtatások megtekintése +Host Name => Host név +Uptime => Üzemidő +Load => Rendszer terhelés +Version => Verzió +Categories => Kategoriák +Subcategories => Alkategóriák +more... => További információk... +Add => Hozzáad +Remove => Eltávolít +Warning => Vigyázat +Password_warning => A Web-Adminisztrátoenak és az SSH hozzáféréshez még nincs jelszó beállítva.<br />Adjon meg most egy új jelszót (felhasználónév a böngészőben: 'root'). + +# Categories +Info => Információ +About => Rólunk +Router Info => Router információ + +Status => Állapot +Connections => Hálózati kapcsolatok +DHCP => DHCP +Wireless => WLAN + +System => Rendszer +Password => Jelszó +Settings => Beállítások +Installed Software => Telepítés +Firmware Upgrade => Firmware frissítés + +Network => Hálózat +LAN => LAN +WAN => Internet +Wireless => WLAN +Advanced Wireless => WLAN (haladó) +Hosts => Host konfiguráció + + +# 'About' page +Copyright => Copyright + +GPL_Text => This program is free software; you can redistribute it and/or <br >modify it under the terms of the GNU General Public License <br >as published by the Free Software Foundation; either version 2 <br > of the License, or (at your option) any later version. +Contributions by => Contributions by +Layout based on => Layout based on +by => by + +No config change. => A konfigurációban nincs változás. +Config discarded. => Konfiguráció változtatások eldobva. +Config changes: => Konfiguráció módodítások: +Updating config... => Konfiguráció frissítése... + + +# 'Router Info' page +Firmware Version => Firmware verzió +Kernel Version => Kernel verzió +Current Date/Time => Aktuális dátum/idő +MAC Address => MAC Address + + +# 'Connections' page +Connection Status => Kapcsolatok +Physical Connections => Fizikai kapcsolatok +Router Connections => Router kapcsolatok + + +# 'DHCP' page +DHCP leases => DHCP bérletek +IP Address => IP cím +Name => Név +Expires in => Lejár + + +# 'Wireless Status' page +Wireless Status => WLAN állapot + +# 'Password' page +Password Change => Jelszó csere +New Password => Új jelszó +Confirm Password => Jelszó mégegyszer + +# 'System Settings' page +System Settings => Rendszer beállítások +Host Name => Host név +Language => Nyelv + +# 'Installed Software' page +Installed Packages => Telepített csomagok +Update package lists => Csomaglista frissítése +Uninstall => Eltávolítás +Install => Telepítés + + +# 'Firmware Upgrade' page +Firmware format => Firmware format +Error => Hiba +done => Kész +Invalid_format => Érvénytelen Firmware +Erase_JFFS2 => JFFS2 partíció törlése +Options => Opciók +Firmware_image => Firmware +Upgrade => Frissítés +Upgrading... => Frissítés folyamatban... + +# 'LAN Settings' page +LAN Settings => Hálózat beállítások +LAN Configuration => Hálózat konfiguráció +Netmask => Hálózati maszk +Default Gateway => Alapértelmezett átjáró +DNS Servers => DNS szerverek +DNS Address => DNS szerver cím + +Note => Megjegyzés + + +# 'WAN Settings' page +WAN Settings => Internet beállítások +WAN Configuration => Internet konfiguráció +PPTP Server IP => PPTP szerver cím +Connection Type => Kapcsolat típusa +No WAN => Nincs internet +DHCP => DHCP +Static IP => Statikus IP konfiguráció +IP Settings => IP beállítások +PPP Settings => PPP beállítások +Redial Policy => Újratárcsázás szabálya +Connect on Demand => Csatlakozás kérés esetén +Keep Alive => Tartsd életben +Maximum Idle Time => Maximum inaktív ídő +Redial Timeout => Újratárcsázási idő +MTU => Maximal Transfer Unit +Username => Felhasználó + + +# 'Wireless Configuration' page +Wireless Configuration => WLAN konfiguráció +Wireless Interface => WLAN interfész +WEP Key => WEP kulcs +Selected WEP Key => Választott WEP kulcs +WPA PSK => WPA PSK +ESSID => ESSID +Channel => Csatorna +RADIUS IP Address => RADIUS szerver cím +RADIUS Server Key => RADIUS szerver kulcs +Enabled => Engedélyezve +Disabled => Tiltva +ESSID Broadcast => ESSID hirdetése (szórása) +Show => Engedélyezve +Hide => Tiltva +WLAN Mode => WLAN mód +Access Point => Access Point +Client => Client +Bridge => Bridge +Ad-Hoc => Ad-Hoc +Encryption Settings => Titkosítás beállítások +Encryption Type => Titkosítás típusa +PSK => PSK +WPA Mode => WPA mód +WPA Algorithms => WPA algoritmus +WEP Keys => WEP kulcsok + + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => WLAN konfiguráció (haladó) +WDS Connections => WDS kapcsolatok +MAC Filter List => MAC Address szürés +Filter Mode => Szürő mód +Allow => Engedélyező +Deny => Tiltó +Set => Beállítás +Settings => Beállítások +Automatic WDS => Automatikus WDS + +# "Hosts" page + +MAC Address => MAC-Address +Configured Hosts => Konfigurált gépek +DHCP Static => Statikus DHCP beállítások +Host Names => Host nevek + + +Up => Fel +Down => Le +Edit => Szerkesztés +Delete => Törlés +Save => Mentés +Cancel => Mégse + +Forward => Továbbít +Accept => Elfogad +Drop => Eldob + +Firewall => Tűzfal +Firewall Rules => Tűzfal szabályok +Firewall Configuration => Tűzfal konfiguráció + +New Rule => Új szabály +Match => Illeszt +Target => Cél +Port => Port + +Protocol => Protokoll +Source IP => Forrás-IP +Destination IP => Cél-IP +Source Ports => Forrás-Portok +Destination Ports => Cél-Portok + +Forward to => Továbbít +Port => Port + +Helptext ESSID => A vezeték nélküli hálózat neve. +Helptext DNS save => Mentsd el a beállításokat, mielőtt ezen az oldalon hozzáadsz ill. eltávolítasz DNS szervert. + +Helptext Operation mode => Ezek a beállítsok a vezeték nélküli hálozat működését határozzák meg. A 'Client (Bridge)' mód a hálózati csatoló beállításait nem módosítja. Csak néhány paramétert állít a vezetéknélküli eszközmeghajtóban, a korlátozott áthidaláshoz. +Helptext Encryption Type => 'WPA (RADIUS)' csak Access-Pont módban támogatott. <br /> 'WPA (PSK)' nem működik Ad-Hoc módban. +Helptext IP Settings => IP beállítások opcionálisak a DHCP-hez és a PPTP-hez. Az itt beállított értékek lesznek az alapértelmezettek, ha a DHCP szerver nem elérhető. +Helptext Idle Time => Maximális idő másodpercben internet forgalom nélkül, amennyit a router vár mielőtt bontja a kapcsolatot (csak 'Csatlakozás kérés esetén' módban). +Helptext Redial Timeout => Maximális idő másodpercben az újratárcsázás előtt, ha a szolgáltató nem válaszol. + +# untranslated: +Available packages => Használható csomagok + diff --git a/package/webif/files/usr/lib/webif/lang/it/common.txt b/package/webif/files/usr/lib/webif/lang/it/common.txt new file mode 100644 index 000000000..8607facf2 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/it/common.txt @@ -0,0 +1,226 @@ +lang => Italiano +# Common +Settings saved => Cambiamenti salvati +Settings not saved => Cambiamenti non salvati +Save Changes => Salva cambiamenti +Apply Changes => Applica cambiamenti +Clear Changes => Elimina cambiamenti +Review Changes => Controlla cambiamenti +Host Name => Nome Host +Uptime => Uptime +Load => Caricamento del sistema +Version => Versione +Categories => Categoria +Subcategories => Sottocategoria +more... => altro... +Add => Aggiungi +Remove => Elimina +Warning => Attenzione +Password_warning => non e' stata ancora impostata una password di protezione per il router (accesso web o ssh). Per favore, inseriscine una ora (il nome utente sara': 'root') + +# Categories +Info => Info +About => Ringraziamenti +Router Info => Informazioni del router + +Status => Stato +Connections => Connessioni +DHCP => DHCP +Wireless => Wireless + +System => Sistema +Password => Password +Settings => Configurazione +Installed Software => Programmi installati +Firmware Upgrade => Aggiornamento Firmware + +Network => Rete +LAN => LAN +WAN => Internet +Wireless => Wireless +Advanced Wireless => Wireless (avanzato) +Hosts => Configurazione Host + + +# 'About' page +Copyright => Copyright + +GPL_Text => Questo programma software libero; lecito ridistribuirlo e/o <br />modificarlo secondo i termini della Licenza Pubblica Generica GNU <br />come pubblicata dalla Free Software Foundation; o la versione 2 della licenza o (a scelta) una versione successiva. +Contributions by => Contributi +Layout based on => Interfaccia basata su +by => da + + +No config change. => Nessun cambiamento della configurazione. +Config discarded. => I cambiamenti non sono stati accettati. +Config changes: => Cambiamenti configurazione: +Updating config... => Aggiornamento configurazione... + + +# 'Router Info' page +Firmware Version => Versione del firmware +Kernel Version => Versione del Kernel +Current Date/Time => Data/Ora +MAC Address => Indirizzo MAC + + +# 'Connections' page +Connection Status => Stato della connessione +Physical Connections => Connessioni fisiche +Router Connections => Connessioni del router + + +# 'DHCP' page +DHCP leases => lease DHCP +IP Address => Indirizzo IP +Name => Nome +Expires in => Scade il + + +# 'Wireless Status' page +Wireless Status => Stato Wireless + +# 'Password' page +Password Change => Cambio password +New Password => Nuova password +Confirm Password => Confema password + +# 'System Settings' page +System Settings => Parametri di sistema +Host Name => Nome dell'host +Language => Linguaggio + +# 'Installed Software' page +Installed Packages => Pacchetti installati +Update package lists => Aggiorna la lista dei pacchetti +Uninstall => Disinstalla +Install => Installa + + +# 'Firmware Upgrade' page +Firmware format => Formato del firmware +Error => Errore +done => eseguito +Invalid_formt => Formato del firmware invalido +Erase_JFFS2 => Cancella la partizione JFFS2 +Options => Opzioni +Firmware_image => Immagine del firmware +Upgrade => Aggiorna +Upgrading... => Aggiornamento in corso... + +# 'LAN Settings' page +LAN Settings => Parametri LAN +LAN Configuration => Configuzione LAN +Netmask => Netmask +Default Gateway => Default Gateway +DNS Servers => Server DNS +DNS Address => Indirizzo IP del DNS + +Note => Nota + +# 'WAN Settings' page +WAN Settings => Parametri Internet +WAN Configuration => Configurazione Internet +PPTP Server IP => Indirizzo IP del server PPTP +Connection Type => Tipo di connessione +No WAN => No WAN +DHCP => DHCP +Static IP => IP statico +IP Settings => Paramentri IP +PPP Settings => Parametri PPP +Redial Policy => Opzioni di riconnessione +Connect on Demand => Connessione su richiesta +Keep Alive => Connessione permanente +Maximum Idle Time => Tempo di inattivita' massimo +Redial Timeout => Tempo di riconnessione +MTU => MTU (grandezza pacchetti) +Username => Nome utente + + +# 'Wireless Configuration' page +Wireless Configuration => Parametri Wireless +Wireless Interface => Interfaccia Wireless +WEP Key => Chiave WEP +Selected WEP Key => Chiave WEP selezionata +WPA PSK => WPA-PSK +ESSID => ESSID +Channel => Canale +RADIUS IP Address => Indirizzo IP del server RADIUS +RADIUS Server Key => Server Key RADIUS +Enabled => Attivato +Disabled => Disattivato +ESSID Broadcast => SSID Broadcast +Show => Mostra +Hide => Nascondi +WLAN Mode => Modo WLAN +Access Point => Punto di accesso +Client => Client +Bridge => Bridge +Ad-Hoc => Ad-Hoc +Operation mode => Modo di funzionamento +Encryption Settings => Parametri di encryption +Encryption Type => Tipo di encryption +PSK => PSK +WPA Mode => Modo WPA +WPA Algorithms => Algoritmo WPA +WEP Keys => Chiave WEP + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Configurazione Wireless avanzata +WDS Connections => Connessioni WDS +MAC Filter List => Filtro per indirizzo MAC +Filter Mode => Metodo di filtraggio +Allow => Autorizza +Deny => Nega +Set => Setta +Settings => Parametri +Automatic WDS => WDS Automatico + +# "Hosts" page + +MAC Address => Indirizzo MAC +Configured Hosts => Host configurati +DHCP Static => DHCP Statico +Host Names => Nome Host + +Up => Su +Down => Giu' +Edit => Edita +Delete => Elimina +Save => Salva +Cancel => Cancella + +Forward => Ridirigi +Accept => Accetta +Drop => Scarta + +Firewall => Firewall +Firewall Rules => Regole del Firewall +Firewall Configuration => Configurazione del Firewall + +New Rule => Nuova regola +Match => Filtro +Target => Obiettivo +Port => Porta + +Protocol => Protocollo +Source IP => IP di origine +Destination IP => IP di destinazione +Source Ports => Porta di origine +Destination Ports => Porta di destinazione + +Forward to => Redirigi su +Port => Porta + +Helptext ESSID => SSID +Helptext DNS save => E' consigliabile salvare i cambiamenti prima di aggiungere o eliminare server DNS dalla lista + +Helptext Operation mode => Imposta il metodo di utilizzo della rete wireless. Scegliendo 'Client (bridge)' non cambiera' la configurazione dell'interfaccia di rete. +Helptext Encryption Type => 'WPA (RADIUS)' puo' essere usato solo nel modo Access Point.<br /> 'WPA (PSK)' non funziona nel modo Ad-Hoc. +Helptext IP Settings => Le opzioni IP sono opzioni per DHCP e PPTP. +Helptext Idle Time => Numero di secondi che deve aspettare il router prima di disconnettersi. (Solo nel metodo ' Connessione su richiesta'). +Helptext Redial Timeout => Numero di secondi che il router deve aspettare per effettuare una nuova riconnessione. + +# untranslated: +Available packages => Available packages + diff --git a/package/webif/files/usr/lib/webif/lang/nl/common.txt b/package/webif/files/usr/lib/webif/lang/nl/common.txt new file mode 100644 index 000000000..875ba6c0c --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/nl/common.txt @@ -0,0 +1,224 @@ +lang => Nederlands +# Common +Settings saved => Instellingen bewaard +Settings not saved => Instellingen niet bewaard +Save Changes => Bewaar wijzigingen +Apply Changes => Gebruik wijzigingen +Clear Changes => Wis wijzigingen +Review Changes => Bekijk wijzigingen +Host Name => Host naam +Uptime => Uptime +Load => Laad +Version => Versie +Categories => Categorie +Subcategories => Subcategorie +more... => meer... +Add => Bijvoegen +Remove => Verwijder +Warning => Waarschuwing +Password_warning => U hebt nog geen wachtwoord ingesteld voor de Web interface en SSH toegang. Gelieve er nu een in te geven (de gebruikersnaam in uw browser zal 'root' zijn). + +# Categories +Info => Info +About => Over +Router Info => Router Info + +Status => Status +Connections => Connecties +DHCP => DHCP +Wireless => Draadloos + +System => Systeem +Password => Wachtwoord +Settings => Instellingen +Installed Software => Geinstalleerde Software +Firmware Upgrade => Firmware Upgrade + +Network => Netwerk +LAN => LAN +WAN => WAN +Wireless => Draadloos +Advanced Wireless => Geavanceerd Draadloos +Hosts => Geconfigureerde Hosts + + +# 'About' page +Copyright => Copyright + +GPL_Text => Dit programma is vrije software; u mag het verdelen en/of wijzigen onder de voorwaarden van GNU General Public License zoals gepubliceerd door de Free Software Foundation; ofwel versie 2 van de licentie, of (volgens Uw keuze) iedere latere versie. + +Contributions by => Bijdragen door +Layout based on => Layout gebasseerd op +by => door + + +No config change. => Er werden geen configuratie wijzigingen aangebracht. +Config discarded. => Uw configuratie wijzigingen werden verworpen. +Config changes: => Huidige configuratie wijzigingen: +Updating config... => Uw configuratie wordt aangepast... + + +# 'Router Info' page +Firmware Version => Firmware Versie +Kernel Version => Kernel Versie +Current Date/Time => Huidige Datum/Tijd +MAC Address => MAC Adres + + +# 'Connections' page +Connection Status => Verbindings Status +Physical Connections => Fysieke Verbindingen +Router Connections => Router Verbindingen + + +# 'DHCP' page +DHCP leases => DHCP leases +IP Address => IP Adres +Name => Naam +Expires in => Vervalt binnen + + +# 'Wireless Status' page +Wireless Status => Draadloos Status + +# 'Password' page +Password Change => Wachtwoord Wijzigen +New Password => Nieuw Wachtwoord +Confirm Password => Bevestig Wachtwoord + +# 'System Settings' page +System Settings => Systeem Instellingen +Host Name => Host naam +Language => Taal + +# 'Installed Software' page +Installed Packages => Geinstalleerde Pakketten +Available packages => Beschikbare pakketten +Update package lists => Aanpassen Pakketlijst +Uninstall => Deinstalleren +Install => Installeren + + +# 'Firmware Upgrade' page +Firmware format => Firmware Formaat +Error => Fout +done => voltooid +Erase_JFFS2 => Wis JFFS2 partitie +Options => Opties +Firmware_image => Firmware image om te laden +Upgrade => Upgrade +Upgrading... => Upgrading... + +# 'LAN Settings' page +LAN Settings => LAN Instellingen +LAN Configuration => LAN Configuratie +Netmask => Netmask +Default Gateway => Standaard Gateway +DNS Servers => DNS Servers +DNS Address => DNS Adres + +Note => Nota + +# 'WAN Settings' page +WAN Settings => WAN Instellingen +WAN Configuration => WAN configuratie +PPTP Server IP => PPTP Server IP +Connection Type => Connectie Type +No WAN => Geen WAN +DHCP => DHCP +Static IP => Statisch IP +IP Settings => IP Instellingen +PPP Settings => PPP Instellingen +Redial Policy => Opnieuw bel beleid +Redial Timeout => Bel vertraging +Connect on Demand => Verbinden op Aanvraag +Keep Alive => Hou actief +Maximum Idle Time => Maximale Idle Time +MTU => MTU +Username => Gebruikersnaam + + +# 'Wireless Configuration' page +Wireless Configuration => Draadloos Configuratie +Wireless Interface => Draadloos Interface +WEP Key => WEP Sleutel +Selected WEP Key => Geselecteerde WEP sleutely +WPA PSK => WPA PSK +ESSID => ESSID +Channel => Kanaal +RADIUS IP Address => RADIUS IP Adres +RADIUS Server Key => RADIUS Server Sleutel +Enabled => Ingeschakeld +Disabled => Uitgeschakeld +ESSID Broadcast => ESSID Broadcast +Show => Toon +Hide => Verberg +WLAN Mode => WLAN Mode +Access Point => Toegangs Punt +# Was "Klant" first which can only be translated as an economical client, i.e. a customer. AFAIK Dutch doesn't provide any true translation for Client in this context +Client => Client +Bridge => Brug +Ad-Hoc => Ad-Hoc +Operation mode => Operation mode +Encryption Settings => Encryptie Instelligen +Encryption Type => Encryptie Type +PSK => PSK +WPA Mode => WPA Mode +WPA Algorithms => WPA Algoritmen +WEP Keys => WEP Sleutels + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Geavanceerde Draadloze Configuratie +WDS Connections => WDS Verbindingen +MAC Filter List => MAC Filter Lijst +Filter Mode => Filter Mode +Allow => Toelaten +Deny => Weigeren +Set => Stel +Settings => Instellingen +Automatic WDS => Automatische WDS + +# "Hosts" page + +MAC Address => MAC Adres +Configured Hosts => Geconfigureerde Hosts +DHCP Static => DHCP Statisch +Host Names => Host Namen + +Up => Op +Down => Neer +Edit => Wijzig +Delete => Wis +Save => Bewaar +Cancel => Afbreken + +Forward => Doorsturen +Accept => Accepteren +Drop => Negeren + +Firewall => Firewall +Firewall Rules => Firewall Regels +Firewall Configuration => Firewall Configuratie + +New Rule => Nieuwe Regel +Match => Overeenstemmen +Target => Doel +Port => Poort + +Protocol => Protocol +Source IP => Bron IP +Destination IP => Bestemmings IP +Source Ports => Bron Poorten +Destination Ports => Bestemmings Poorten + +Forward to => Doorsturen naar +Port => Poort + +Helptext ESSID => Naam van uw Draadloos Netwerk +Helptext DNS save => U moet de instellingen op deze pagina bewaren alvorens DNS servers te wijzigen/verwijderen + +Helptext Operation mode => Dit stelt de Operatie Mode voor uw draadloos netwerk in. Door 'Client (Brug)' te kiezen zullen uw network interface instellingen niet wijzigen. Er zullen alleen enkele parameters ingesteld worden in de draadloze driver die gelimiteerde overbrugging van de interface mogelijk maakt. +Helptext Encryption Type => 'WPA (RADIUS)' wordt enkel ondersteund in de Toegangs Punt mode.<br />'WPA (PSK)' werkt niet in Ad-Hoc mode. +Helptext IP Settings => IP instellingen zijn optioneel voor DHCP en PPTP. Indien U ze instelt dan worden ze als standaardwaarden gebruikt indien de DHCP server onbeschikbaar is. +Helptext Idle Time => Het aantal seconden zonder internet verkeer dat de router zou moeten wachten alvorens zich af te sluiten van het Internet (Alleen bij Verbinden op Aanvraag) +Helptext Redial Timeout => Het aantal seconden dat gewacht moet worden alvorens opnieuw een verbinding wordt gemaakt indien deze geweigerd werd door uw ISP. diff --git a/package/webif/files/usr/lib/webif/lang/no/common.txt b/package/webif/files/usr/lib/webif/lang/no/common.txt new file mode 100644 index 000000000..f94684fa5 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/no/common.txt @@ -0,0 +1,230 @@ +lang => Norsk +# Common +Settings saved => Innstillingene ble lagret +Settings not saved => Innstillingene ble ikke lagret +Save Changes => Lagre endringer +Apply Changes => Aktiver endringer +Clear Changes => Glem endringer +Review Changes => Se endringer +Host Name => Vertsnavn +Uptime => Oppetid +Load => Systembelastning +Version => Versjon +Categories => Kategorier +Subcategories => Underkategorier +more... => mer... +Add => Legg til +Remove => Fjern +Warning => Advarsel +Password_warning => Det er ikke satt et passord på hverken Webadministrasjon eller SSH.<br />Vennligst velg eller tast inn ditt passord (Brukernavn er 'root' med små bokstaver). + +# Categories +Info => Info +About => Om +Router Info => Routerinformasjon + +Status => Status +Connections => Nettverksforbindelser +DHCP => DHCP +Wireless => Trådløs + +System => System +Password => Passord +Settings => Innstillinger +Installed Software => Installerte programmer +Firmware Upgrade => Firmwareoppgradering + +Network => Nettverk +LAN => Lokalnett +WAN => Internett +Wireless => Trådløs +Advanced Wireless => Avansert trådløs +Hosts => Vertsnavn + + +# 'About' page +Copyright => Opphavsrett + +GPL_Text => Dette programmet er fri programvare. Du må bruke, endre og videredistribuere det under betingelsene i "GNU General Public License",<br /> som offentliggjort av "Free Software Foundation" (Den frie programbevegelse), enten i versjon 2 av lisensen eller (etter ditt valg), en hvilkensomhelst senere versjon. + +Contributions by => Bidrag fra +Layout based on => Layout er basert på +by => av + + +No config change. => Ingen konfigurasjonsendring foretatt +Config discarded. => Konfigurasjonsendringerne ble forkastet +Config changes: => Foreløpige endringer +Updating config... => Oppdaterer konfigurasjonen + +# 'Router Info' page +Firmware Version => Firmwareversjon +Kernel Version => Kjerneversjon +Current Date/Time => Nåværende tid/dato +MAC Address => MAC adresse + + +# 'Connections' page +Connection Status => Forbindelsesstatus +Physical Connections => Fysiske forbindelser +Router Connections => Routerens forbindelser + + +# 'DHCP' page +DHCP leases => DHCP leasinger +IP Address => IP adresse +Name => Navn +Expires in => Utløpstid + + +# 'Wireless Status' page +Wireless Status => Trådløs status + +# 'Password' page +Password Change => Endre passord +New Password => Nytt passord +Confirm Password => Nytt passord igjen + +# 'System Settings' page +System Settings => Systeminnstillinger +Host Name => Vertsnavn +Language => Språk + +# 'Installed Software' page +Installed Packages => Installerte pakker +Update package lists => Oppdater pakkelisten +Uninstall => Avinstaller +Install => Installer +Available packages => Tilgjengelige pakker + + +# 'Firmware Upgrade' page +Firmware format => Firmwareformat +Error => Feil +done => ferdig +Invalid_format => Ugyldig_format +Erase_JFFS2 => Slett_JFFS2_partisjonen +Options => Alternativer +Firmware_image => Firmwarefil +Upgrade => Oppgrader +Upgrading... => Oppgraderer... + +# 'LAN Settings' page +LAN Settings => Lokale nettinnstillinger +LAN Configuration => Lokal nettverkskonfigurasjon +Netmask => Undernettmaske +Default Gateway => Standard gateway +DNS Servers => DNS-tjenere +DNS Address => DNS-tjeneradresse + +Note => Merk + + +# 'WAN Settings' page +WAN Settings => WAN-innstillinger +WAN Configuration => WAN-konfigurasjon +PPTP Server IP => PPTP-tjeneradresse +Connection Type => Forbindelsestype +No WAN => Ingen WAN +DHCP => DHCP +Static IP => Statisk IP +IP Settings => IP-innstillinger +PPP Settings => PPP-innstillinger +Redial Policy => Gjenoppringingspolise +Connect on Demand => Ring opp når behovet er der +Keep Alive => Hold forbindelsen i live (keep alive) +Maximum Idle Time => Maksimal tid i tomgang (max idle) +Redial Timeout => Gjenoppringningsavbrekkstid +MTU => MTU +Username => Brukernavn + + +# 'Wireless Configuration' page +Wireless Configuration => Trådløs konfigurasjon +Wireless Interface => Trådløst nettkort +WEP Key => WEP nøkler +Selected WEP Key => Valgt WEP nøkkel +WPA PSK => WPA nøkler +ESSID => ESSID +Channel => Kanal +RADIUS IP Address => IP adressen på RADIUS server +RADIUS Server Key => Passord til RADIUS server +Enabled => Aktivert +Disabled => Deaktivert +ESSID Broadcast => ESSID-Kringkasting +Show => Vis +Hide => Skjul +WLAN Mode => Trådløs tilstand +Access Point => Tilgangspunkt +Client => Klient +Bridge => Bro +Ad-Hoc => Ad-Hoc +Encryption Settings => Krypteringsinnstillinger +Encryption Type => Krypteringstype +PSK => PSK-kode +WPA Mode => WPA tilstand +WPA Algorithms => WPA krypteringsalgoritme +WEP Keys => WEP nøkler + + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Avansert oppsett av trådløs +WDS Connections => WDS forbindelser (WDS repeater) +MAC Filter List => Filteringsliste (MAC-nummer) +Filter Mode => Filtreringstilstand +Allow => Tillat +Deny => Forby +Set => Sett +Settings => Innstillinger +Automatic WDS => Automatisk WDS-forbindelse + +# "Hosts" page + +MAC Address => MAC-adresse +Configured Hosts => Vertsnavn +DHCP Static => Statiske IP adresser til DHCP +Host Names => Vertsnavn + + +Up => Opp +Down => Ned +Edit => Endre +Delete => Slette +Save => Lagre +Cancel => Annuller + +Forward => Forward (videresend) +Accept => Accept (tillat) +Drop => Drop (kast) + +Firewall => Brannmur +Firewall Rules => Brannmurregler +Firewall Configuration => Brannmurkonfigurasjon + +New Rule => Ny regel +Match => Match (sammenlign) +Target => Target (Gå til) +Port => Port + +Protocol => Protokoll +Source IP => Avsenders IP +Destination IP => Mottakers IP +Source Ports => Avsenders porter +Destination Ports => Mottakers porter + +Forward to => Send videre til +Port => Port + +Helptext ESSID => Navn på trådløs nettverk +Helptext DNS save => Lagre endringer på denne siden før du legger til eller fjerner DNS-tjenere (Hvis du ikke vil miste dem.) + +Helptext Operation mode => Setter driftstilstanden for den trådløse delen av routeren. 'Klient' og 'Klient (bro)' brukes for å koble 2 trådløse routere. I mange tilfeller er WDS en bedre (men mer avansert) løning. 'Klient' utnytter dog båndbredden best, hvis du kun har en maskin tilkoblet. <br /> Innstillingen 'Klient (bro)' endrer ikke direkte ved nettverksinnstillingene. Det er et lite 'hack' som få routeren til å tro at kun en maskin (en MAC-adresse) er tilkoblet. Det er gjort for å overvinne begrensninger i 802.11-protokollen, som forhindrer at man problemfritt (i vanlig 'Klient'-tilstand) kan bruke den trådløse forbindelsen fra flere maskiner samtidig. <br /> AP brukes til en standalone router, hvor f.eks bærbare pc'er skal ha tilgang til Internett og/eller lokalt nettverk. <br /> Hvis du ikke vet hva 'Ad Hoc'-tilstanden gjø, har du sannsynligvis ikke bruk for den. + +Helptext Encryption Type => 'WPA (RADIUS)' er kun støttet i AP (Tilgangspunkt)-tilstand. <br /> 'WPA (PSK)' fungerer ikke i 'Ad-Hoc' tilstand. + +Helptext IP Settings => IP-innstillinger er frivillig for DHCP og PPTP. Nå de er satt, blir de brukt som standardverdier hvis en DHCP-tjener ikke er tilgjengelig. + +Helptext Idle Time => Ventetid med inaktivitet før routeren kobler ned forbindelesen. + +Helptext Redial Timeout => Ventetid før routeren forsøker å ringe opp igjen. + diff --git a/package/webif/files/usr/lib/webif/lang/pl/common.txt b/package/webif/files/usr/lib/webif/lang/pl/common.txt new file mode 100644 index 000000000..c01b20c83 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/pl/common.txt @@ -0,0 +1,228 @@ +lang => Polski +# Common +Settings saved => Ustawienia zostały zapisane +Settings not saved => Ustawienia niezostały zapisane +Save Changes => Zapisz zmiany +Apply Changes => Zastosuj zmiany +Clear Changes => Czyść zmiany +Review Changes => Przejżyj zmiany +Host Name => Hostname +Uptime => Czas pracy +Load => Obciążenie +Version => Wersja +Categories => Kategorie +Subcategories => Podkategorie +more... => Więcej Informacji... +Add => Dodaj +Remove => Usuń +Warning => Uwaga +Password_warning => Niemasz ustawionego hasła dostępu do WWW oraz SSH<br />Prosze wpisz je teraz(nazwa użytkownika to 'root') + +# Categories +Info => Info +About => O Autorze +Router Info => Info o WRT + +Status => Status +Connections => Połaczenia +DHCP => DHCP +Wireless => WLAN + +System => System +Password => Hasło +Settings => Ustawienia +Installed Software => Zainstalowane pakiety +Firmware Upgrade => Aktualizacja opr. + +Network => Sieć +LAN => LAN +WAN => Internet(WAN) +Wireless => WLAN +Advanced Wireless => Zaawansowane WLAN +Hosts => Konfiguracja Hostów + + +# 'About' page +Copyright => Copyright + +GPL_Text => This program is free software; you can redistribute it and/or <br >modify it under the terms of the GNU General Public License <br >as published by the Free Software Foundation; either version 2 <br > of the License, or (at your option) any later version. +Contributions by => Wspólpracownicy +Layout based on => Layout bazuje na +by => by + + +No config change. => Nie dokonano zmian. +Config discarded. => Zmiany zostały anulowane. +Config changes: => Aktualna konfiguracja: +Updating config... => Aktualizacja konfiguracji... + + +# 'Router Info' page +Firmware Version => Wersja Opr. +Kernel Version => Wersja kernela +Current Date/Time => Aktualna Data/Czas +MAC Address => Adres MAC + + +# 'Connections' page +Connection Status => Stan połaczeń +Physical Connections => Połączenia fizyczne +Router Connections => Połączenia do routera + + +# 'DHCP' page +DHCP leases => Dzierżawa DHCP +IP Address => Adres IP +Name => Nazwa +Expires in => Wygasa za + + +# 'Wireless Status' page +Wireless Status => Status WLAN + +# 'Password' page +Password Change => Zmien hasło +New Password => Nowe hasło +Confirm Password => Potwierdz hasło + +# 'System Settings' page +System Settings => Ustawienia Systemu +Host Name => Hostname +Language => Język + +# 'Installed Software' page +Installed Packages => Zainstalowane pakiety +Update package lists => Aktualizuj liste pakietów +Uninstall => Usuń +Install => Instaluj + + +# 'Firmware Upgrade' page +Firmware format => Format pliku firmware +Error => Błąd +done => Gotowe +Invalid_format => Błędny format firmware +Erase_JFFS2 => Formatuj JFFS2 +Options => Opcje +Firmware_image => Obraz FW: +Upgrade => Aktualizuj +Upgrading... => Aktualizuje... + +# 'LAN Settings' page +LAN Settings => Ustawienia LAN +LAN Configuration => Konfiguracja LAN +Netmask => Maska sieci +Default Gateway => Brama domyślna +DNS Servers => Serwer DNS +DNS Address => Adres DNS + +Note => Notatka + + +# 'WAN Settings' page +WAN Settings => Ustawienia WAN +WAN Configuration => Konfiguracja WAN +PPTP Server IP => Adres serwera PPTP +Connection Type => Połaczenie +No WAN => Bez WAN +DHCP => DHCP +Static IP => Statyczne IP +IP Settings => Ustawienia IP +PPP Settings => Ustawienia PPP +Redial Policy => Rodzaj wydzwaniania +Connect on Demand => Połączenia na żadanie +Keep Alive => Trzymaj połączenie +Maximum Idle Time => Max. czas bezczynności + +MTU => MTU +Username => Nazwa uzyt. + + +# 'Wireless Configuration' page +Wireless Configuration => WLAN-Konfiguracja +Wireless Interface => Intefejs WLAN +WEP Key => Klucz WEP +Selected WEP Key => Wybrany klucz WEP +WPA PSK => WPA PSK +ESSID => ESSID +Channel => Kanał +RADIUS IP Address => Adres IP RADIUS +RADIUS Server Key => Klucz RADIUS +Enabled => Właczone +Disabled => Wyłączone +ESSID Broadcast => Rozsyłanie ESSID +Show => Pokaż +Hide => Ukryj +WLAN Mode => Tryb Radiowy +Access Point => Punkt Dostępowy +Client => Klient +Bridge => Most +Ad-Hoc => Ad-Hoc +Encryption Settings => Ustawienia kodowania +Encryption Type => Rodzaj kodowania +PSK => PSK +WPA Mode => Tryb WPA +WPA Algorithms => Algorytm WPA +WEP Keys => Klucze WEP + + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Zaawansowane WLAN +WDS Connections => Połączenie WDS +MAC Filter List => Filtrowanie MAC +Filter Mode => Rodzaj filtra +Allow => Udzielaj dostępu +Deny => Odrzucaj dostęp +Set => Ustaw +Settings => Ustawienia +Automatic WDS => Automatyczny WDS + +# "Hosts" page + +MAC Address => Adres MAC +Configured Hosts => Konfiguracja Hostów +DHCP Static => Statyczne DHCP +Host Names => Lista Hostów + + +Up => W górę +Down => W dół +Edit => Edytuj +Delete => Kasuj +Save => Zapisz +Cancel => Anuluj + +Forward => Przekieruj +Accept => Akceptuj +Drop => Odrzuć + +Firewall => Firewall +Firewall Rules => Reguły Firewalla +Firewall Configuration => Konfiguracja Firewalla + +New Rule => Nowa reguła +Match => Dotyczy +Target => Cel +Port => Port + +Protocol => Protokół +Source IP => IP żródłowe +Destination IP => IP docelowe +Source Ports => Port żródłowy +Destination Ports => Port docelowy + +Forward to => Przekieruj do +Port => Port + +Helptext ESSID => Nazwa sieci radiowej +Helptext DNS save => Musisz zapisać ustawienia przed dodaniem/usunięciem serwera DNS + +Helptext Operation mode => Umożliwia wybór pracy urządzenia. +Helptext Encryption Type => 'WPA (RADIUS)' działa tylko w trybie Access Point <br /> 'WPA (PSK)' nie działa w trybie Ad-Hoc. +Helptext IP Settings => Ustawienia numeru IP dla DHCP i PPTP jest niekonieczne. Jeżeli je ustawisz, będa używane jako domyślnje w przypadku , gdy serwer DHCP bedzie niedostępny. +Helptext Idle Time => Czas w sekundach bezruchu internetowego, po upływie których następuje rozłaczenie (tylko Połączenie na ządanie) +Helptext Redial Timeout => Liczba sekund, które trzeba odczekac po tym, jak nie otrzymales odpowiedzi od providera (przed ponowna proba podlaczenia) + +# untranslated: +Available packages => Available packages + diff --git a/package/webif/files/usr/lib/webif/lang/pt/common.txt b/package/webif/files/usr/lib/webif/lang/pt/common.txt new file mode 100644 index 000000000..2fb4693a0 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/pt/common.txt @@ -0,0 +1,454 @@ +lang => Português + +# Common + +Settings saved => Alterações guardadas + +Settings not saved => Alterações não foram guardadas + +Save Changes => Guardar alterações + +Apply Changes => Aplicar alterações + +Clear Changes => Eliminar alterações + +Review Changes => Verificar alterações + +Host Name => Nome do sistema + +Uptime => Uptime + +Load => Carga do sistema + +Version => Versão + +Categories => Categorias + +Subcategories => Subcategorias + +more... => mais + +Add => Adicionar + +Remove => Eliminar + +Warning => Atenção + +Password_warning => Não foi estabelecida uma palavra-chave para o acesso ao router (acesso web e ssh). Por favor, estabeleça uma palavra-chave agora (o nome de utilizador será ‘root’) + + + +# Categories + +Info => Informação + +About => Acerca de + +Router Info => Informações do router + + + +Status => Estado + +Connections => Ligações + +DHCP => DHCP + +Wireless => Wi-Fi + + + +System => Sistema + +Password => Palavra-chave + +Settings => Configurações + +Installed Software => Software instalado + +Firmware Upgrade => Actualizar Firmware + + + +Network => Rede + +LAN => LAN + +WAN => Internet + +Wireless => Rede sem fios + +Advanced Wireless => Rede sem fios (avançado) + +Hosts => Configuração de sistemas (hosts) + + + + + +# 'About' page + +Copyright => Copyright + + + +GPL_Text => Este programa é livre e poderá ser distribuído e/ou <br>modificado segundo os termos da licença GPL (General Public License)<br>tal como publicada pela Free Software Foundation como está publicada por la Free Sofware Foundation; quer pela versão 2<br> quer por qualquer versão posterior (à sua escolha). + +Contributions by => Contribuidores + +Layout based on => Layout baseado em + +by => por + + + + + +No config change. => Não existem alterações de configurações. + +Config discarded. => As alterações foram ignoradas. + +Config changes: => Configuração actual: + +Updating config... => Actualizando as alterações... + + + + + +# 'Router Info' page + +Firmware Version => Versão do firmware + +Kernel Version => Versão do Kernel + +Current Date/Time => Data/Hora + +MAC Address => Endereço MAC + + + + + +# 'Connections' page + +Connection Status => Estado das ligações + +Physical Connections => Ligações físicas + +Router Connections => Ligações do router + + + + + +# 'DHCP' page + +DHCP leases => Préstimos de DHCP + +IP Address => Endereço IP + +Name => Nome + +Expires in => Expira em + + + + + +# 'Wireless Status' page + +Wireless Status => Estado da rede sem fios + + + +# 'Password' page + +Password Change => Alteração da palavra-chave + +New Password => Nova palavra-chave + +Confirm Password => Confirme a palavra-chave + + + +# 'System Settings' page + +System Settings => Parâmetros do sistema + +Host Name => Nome do sistema + +Language => Idioma + + + +# 'Installed Software' page + +Installed Packages => Pacotes (packages) instalados + +Update package lists => Actualização da lista de pacotes + +Uninstall => Remover + +Install => Instalar + +Available packages => Pacotes disponíveis + + + + + +# 'Firmware Upgrade' page + +Firmware format => Formato do firmware + +Error => Erro + +done => terminado + +Invalid_formt => Formato de firmware inválido + +Erase_JFFS2 => Apagar partição JFFS2 + +Options => Opções + +Firmware_image => Ficheiro de firmware + +Upgrade => Actualizar + +Upgrading... => Actualizando... + + + +# 'LAN Settings' page + +LAN Settings => Configurações da LAN (rede local) + +LAN Configuration => Parâmetros LAN + +Netmask => Máscara da sub rede (netmask) + +Default Gateway => Gateway + +DNS Servers => Servidor DNS + +DNS Address => Endereço IP do DNS + + + +Note => Nota + + + +# 'WAN Settings' page + +WAN Settings => Configurações Internet + +WAN Configuration => Parâmetros de Internet + +PPTP Server IP => Endereço IP do servidor PPTP + +Connection Type => Tipo de ligação + +No WAN => Sem ligação à Internet + +DHCP => DHCP + +Static IP => IP estático + +IP Settings => Configurações IP + +PPP Settings => Configurações PPP + +Redial Policy => Opções de restabelecimento da ligação + +Connect on Demand => Ligar quando necessário + +Keep Alive => Manter ligação sempre activa + +Maximum Idle Time => Tempo máximo de inactividade + +Redial Timeout => Tempo de restabelecimento da ligação + +MTU => MTU (tamanho dos pacotes) + +Username => Nome do utilizador + + + + + +# 'Wireless Configuration' page + +Wireless Configuration => Configurações rede sem fios + +Wireless Interface => Interface rede sem fios + +WEP Key => Chave WEP + +Selected WEP Key => Palavra-chave WEP seleccionada + +WPA PSK => WPA-PSK + +ESSID => ESSID + +Channel => Canal + +RADIUS IP Address => Endereço IP do servidor RADIUS + +RADIUS Server Key => Palavra-chave RADIUS + +Enabled => Activo + +Disabled => Inactivo + +ESSID Broadcast => Difusão do SSID + +Show => Mostrar + +Hide => Ocultar + +WLAN Mode => Modo rede sem fios + +Access Point => Ponto de acesso + +Client => Cliente + +Bridge => Ponte (Bridge) + +Ad-Hoc => Ad-Hoc + +Operation mode => Modo de funcionamento + +Encryption Settings => Parâmetros de encriptação + +Encryption Type => Tipo de encriptação + +PSK => PSK + +WPA Mode => Modo WPA + +WPA Algorithms => Algoritmos WPA + +WEP Keys => Palavra-chave WEP + + + +# 'Advanced Wireless Configuration' page + +Advanced Wireless Configuration => Configurações rede sem fios (avançadas) + +WDS Connections => Ligações WDS + +MAC Filter List => Filtrar por endereço MAC + +Filter Mode => Tipo de filtro + +Allow => Autorizar + +Deny => Negar + +Set => Estabelecer + +Settings => Parâmetros + +Automatic WDS => WDS automático + + + +# "Hosts" page + + + +MAC Address => Endereço MAC + +Configured Hosts => Sistemas configurados + +DHCP Static => DHCP estático + +Host Names => Nome dos sistemas + + + +Up => Subir + +Down => Baixar + +Edit => Editar + +Delete => eliminar + +Save => Guardar + +Cancel => Cancelar + + + +Forward => Redireccionar + +Accept => Aceitar + +Drop => Descartar + + + +Firewall => Firewall + +Firewall Rules => Regras da Firewall + +Firewall Configuration => Configurações da Firewall + + + +New Rule => Nova regra + +Match => Filtrar + +Target => Destino + +Port => Porta + + + +Protocol => Protocolo + +Source IP => IP de origem + +Destination IP => IP de destino + +Source Ports => Portas de origem + +Destination Ports => Portas de destino + + + +Forward to => Redireccionar para + +Port => Porta + + + +Helptext ESSID => SSID + +Helptext DNS save => É recomendável guardar as alterações antes de adicionar ou eliminar servidores DNS + + + +Helptext Operation mode => Estabelece o modo de operação da rede sem fios. Escolhendo ‘Client (bridge)’ não altera a configuração da interface de rede. Irá simplesmente configurar alguns parâmetros da rede sem fios para operar em modo ponte (bridge). + + + +Helptext Encryption Type => 'WPA (RADIUS)' só pode ser usado em modo ‘Ponto de acesso’.<br /> 'WPA (PSK)' não funciona em modo Ad-Hoc. + + + +Helptext IP Settings => As opções IP são opcionais para os modos DHCP e PPTP. Apenas serão usadas caso alguma das configurações automática falhe + +. + +Helptext Idle Time => Número de segundos sem actividade na Internet que o router deve esperar antes de se desligar da Internet. + +(Apenas para o modo ‘Ligar quando necessário’ (connect on demand)) + + +Helptext Redial Timeout => Número de segundo sem receber resposta que o router deve esperar para voltar a estabelecer ligação à Internet.
\ No newline at end of file diff --git a/package/webif/files/usr/lib/webif/lang/ru/common.txt b/package/webif/files/usr/lib/webif/lang/ru/common.txt new file mode 100644 index 000000000..1d490bdfb --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/ru/common.txt @@ -0,0 +1,223 @@ +lang => Русский +# Common +Settings saved => Настройки сохранены +Settings not saved => Настройки не сохранены +Save Changes => Сохранить настройки +Apply Changes => Применить изменения +Clear Changes => Отменить изменения +Review Changes => Пересмотреть изменения +Host Name => Имя узла +Uptime => Время работы +Load => Загрузка +Version => Версия +Categories => Категории +Subcategories => Подкатегории +more... => далее... +Add => Добавить +Remove => Удалить +Warning => Предупреждение +Password_warning => Пароль для веб-интерфейса и доступа по SSH не задан<br/>Введите новый пароль (имя пользователя в web-интерфейсе: 'root'). + +# Categories +Info => Информация +About => О системе +Router Info => Маршрутизатор + +Status => Статус +Connections => Соединения +DHCP => DHCP +Wireless => Беспроводная сеть + +System => Система +Password => Пароль +Settings => Настройки +Installed Software => Установленные пакеты +Firmware Upgrade => Обновление прошивки + +Network => Сеть +LAN => Локальная +WAN => Внешняя +Wireless => Беспроводная +Advanced Wireless => Беспроводная (подробнее) +Hosts => Узлы + + +# 'About' page +Copyright => Copyright + +GPL_Text => Это свободное программное обеспечение. Оно распространяется и модифицируется в соответствии с лицензией GNU General Public License,<br/> опубликованной Free Software Foundation; версии 2 или по усмотрению пользователя любой более поздней версии. +Contributions by => Помощники +Layout based on => Дизайнер +by => от + + +No config change. => Конфигурация не изменялась. +Config discarded. => Конфигурация отклонена. +Config changes: => Изменение конфигурации: +Updating config... => Обновление конфигурации... + + +# 'Router Info' page +Firmware Version => Версия прошивки +Kernel Version => Версия ядра +Current Date/Time => Время и дата +MAC Address => MAC-адрес + +# 'Connections' page +Connection Status => Соединение +Physical Connections => Аппаратные соединения +Router Connections => Программные соединения маршрутизатора + + +# 'DHCP' page +DHCP leases => DHCP клиенты +IP Address => IP адрес +Name => Имя +Expires in => Истекает + + +# 'Wireless Status' page +Wireless Status => Беспроводная сеть + +# 'Password' page +Password Change => Изменить пароль +New Password => Новый пароль +Confirm Password => Подтверждение пароля + +# 'System Settings' page +System Settings => Настройки системы +Host Name => Имя узла +Language => Язык + +# 'Installed Software' page +Installed Packages => Установленные пакеты +Update package lists => Обновить список пакетов +Available packages => Доступные пакеты +Uninstall => Удалить +Install => Установить + + +# 'Firmware Upgrade' page +Firmware format => Формат прошивки +Error => Ошибка +done => готово +Invalid_format => Неизвестный формат прошивки +Erase_JFFS2 => Очистить раздел jffs2 +Options => Параметры +Firmware_image => Образ прошивки: +Upgrade => Обновить +Upgrading... => Обновление... + +# 'LAN Settings' page +LAN Settings => Настройки сети +LAN Configuration => Конфигурация сети +Netmask => Маска подсети +Default Gateway => Шлюз по умолчанию +DNS Servers => сервера DNS +DNS Address => адрес DNS + +Note => Заметка + + +# 'WAN Settings' page +WAN Settings => Настройки внешней сети +WAN Configuration => Конфигурация внешней сети +PPTP Server IP => адрес IP сервера PPTP +Connection Type => Тип соединения +No WAN => Нет внешней сети +DHCP => DHCP +Static IP => Статический IP +IP Settings => Настройки IP +PPP Settings => Настройки PPP +Redial Policy => Разрыв соединения +Connect on Demand => Соединяться по требованию +Keep Alive => Поддерживать связь +Maximum Idle Time => Наибольшее время простоя +Redial Timeout => Задержка перед повторным соединением +MTU => MTU +Username => Имя пользователя + + +# 'Wireless Configuration' page +Wireless Configuration => Конфигурация беспроводной сети +Wireless Interface => Беспроводной интерфейс +WEP Key => Ключ WEP +Selected WEP Key => Выбранный ключ WEP +WPA PSK => WPA разделяемый ключ +ESSID => ESSID +Channel => Канал +RADIUS IP Address => Адрес IP сервера RADIUS +RADIUS Server Key => Ключ сервера RADIUS +Enabled => Включён +Disabled => Выключен +ESSID Broadcast => Вещание ESSID +Show => Показать +Hide => Спрятать +WLAN Mode => Режим беспроводной сети +Access Point => Точка доступа +Client => Клиент +Bridge => Мост +Ad-Hoc => По запросу +Encryption Settings => Настройки безопасности +Encryption Type => Тип шифрования +PSK => Пароль +WPA Mode => Режим WPA +WPA Algorithms => Алгоритм WPA +WEP Keys => WEP ключи + + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Расширенная конфигурация беспроводной сети +WDS Connections => Соединение WDS +MAC Filter List => Фильтр MAC-адресов +Filter Mode => режим фильтра +Allow => Пропустить +Deny => Отклонить +Set => Установить +Settings => Настройки +Automatic WDS => Автоматический WDS + +# "Hosts" page + +MAC Address => MAC-адрес +Configured Hosts => Настроенные узлы +DHCP Static => Статический DHCP +Host Names => Имена узлов + + +Up => Вверх +Down => Вниз +Edit => Правка +Delete => Удалить +Save => Сохранить +Cancel => Отменить + +Forward => Перенаправить +Accept => Принять +Drop => Отклонить + +Firewall => Сетевой экран +Firewall Rules => Правила сетевого экрана +Firewall Configuration => Настройки сетевого экрана + +New Rule => Новое правило +Match => Фильтр +Target => Цель +Port => Порт + +Protocol => Протокол +Source IP => IP отправителя +Destination IP => IP получателя +Source Ports => Порты отправителя +Destination Ports => Порты получателя + +Forward to => Перенаправить на +Port => Порт + +Helptext ESSID => Имя беспроводной сети +Helptext DNS save => Нужно сохранить настройки на этой странице перед правкой DNS серверов. +Helptext Operation mode => Эта настройка задаёт режим работы беспроводной сети. Выбор 'Клиент или Мост' неповлияет на настройки сетевого интерфейса. Будут обновлены только некоторые параметры драйвера беспроводной сети, который позволят маршрутизацию пакетов с этого интерфейса. +Helptext Encryption Type => 'WPA (RADIUS)' поддерживается только в режиме точки доступа<br/> 'WPA (PSK)' не работает в режиме по запросу. +Helptext IP Settings => Настройки IP могут не задаваться в режимах DHCP и PPTP. Если DHCP сервер будет недоступен, будут использоваться заданные настройки. +Helptext Idle Time => Промежуток времени в секундах по истечению которого соединение будет разорвано, если данные не передовались по внешнему интерфейсу (используется только в режиме соединения по запросу). +Helptext Redial Timeout => Задержка в секундах перед попыткой установки повторного соединения с провайдером. diff --git a/package/webif/files/usr/lib/webif/lang/se/common.txt b/package/webif/files/usr/lib/webif/lang/se/common.txt new file mode 100644 index 000000000..1c019f501 --- /dev/null +++ b/package/webif/files/usr/lib/webif/lang/se/common.txt @@ -0,0 +1,223 @@ +lang => Svenska +# Common +Settings saved => Inställningar sparade +Settings not saved => Inställningar inte sparade +Save Changes => Spara förändringar +Apply Changes => Applicera förändringar +Clear Changes => Ta bort förändringar +Review Changes => Se gjorda förändringar +Host Name => Värdnamn +Uptime => Tid uppe +Load => Ladda +Version => Version +Categories => Kategorier +Subcategories => Underkategorier +more... => mer... +Add => Lägg till +Remove => Ta bort +Warning => Varning +Password_warning => Du har inte satt något lösenord för Web-gränssnittet och SSH accessen <br />Var vänlig och gör detta nu (användarnamnet i din browser kommer vara 'root'). +# Categories +Info => Info +About => Om +Router Info => Router Info + +Status => Status +Connections => Anslutningar +DHCP => DHCP +Wireless => Trådlös + +System => System +Password => Lösenord +Settings => Inställningar +Installed Software => Installerad mjukvara +Firmware Upgrade => Firmware uppgradering + +Network => Nätverk +LAN => LAN +WAN => WAN +Wireless => Trådlös +Advanced Wireless => Avancerad Trådlös +Hosts => Konfigurerade Värdar + + +# 'About' page +Copyright => Copyright + +GPL_Text => Detta program är öppen programvara; du kan återdistribuera den och/eller <br /> modifiera den under villkoren av bestämmelserna i GNU General Public License <br /> publicerad av Free Software Foundation; antingen version 2 <br /> av licensen eller senare. <br /> +Contributions by => Bidrag av +Layout based on => Layout baserad på +by => av + + +No config change. => Inga ändringar i inställningarna gjordes. +Config discarded. => Dina ändringar i inställningarna har avbrutits. +Config changes: => Nuvarande ändringar i inställningarna: +Updating config... => Uppdaterar dina inställningar... + +# 'Router Info' page +Firmware Version => Firmware Version +Kernel Version => Kernel Version +Current Date/Time => Nuvarande Datum/Tid +MAC Address => Mac Adress + + +# 'Connections' page +Connection Status => Anslutningsstatus +Physical Connections => Fysiska anslutningar +Router Connections => Router anslutningar + + +# 'DHCP' page +DHCP leases => DHCP leases +IP Address => IP Adress +Name => Namn +Expires in => Utgår om + + +# 'Wireless Status' page +Wireless Status => Trådlös Status + +# 'Password' page +Password Change => Byt lösenord +New Password => Nytt lösenord +Confirm Password => Bekräfta nytt lösenord + +# 'System Settings' page +System Settings => System Inställningar +Host Name => Värdnamn +Language => Språk + +# 'Installed Software' page +Installed Packages => Installerade mjukvaror +Update package lists => Uppdatera mjukvarulista +Uninstall => Avinstallera +Install => Installera + + +# 'Firmware Upgrade' page +Firmware format => Firmware format +Error => Fel +done => utförd +Invalid_formt => Felaktigt Firmware Format +Erase_JFFS2 => Ta bort JFFS2 partition +Options => Möjligheter +Firmware_image => Firmware att ladda upp +Upgrade => Uppgradering +Upgrading... => Uppgradering... + +# 'LAN Settings' page +LAN Settings => LAN Inställningar +LAN Configuration => LAN Inställningar +Netmask => Netmask +Default Gateway => Default Gateway +DNS Servers => DNS Servrar +DNS Address => DNS Adress + +Note => Noteringar + +# 'WAN Settings' page +WAN Settings => WAN Inställningar +WAN Configuration => WAN Inställningar +PPTP Server IP => PPTP Server IP +Connection Type => Anslutningstyp +No WAN => Ingen +DHCP => DHCP +Static IP => Statisk IP +IP Settings => IP Inställningar +PPP Settings => PPP Inställningar +Redial Policy => Återuppringsnings Policy +Connect on Demand => Anslut på begäran +Keep Alive => Håll levande +Maximum Idle Time => Maximum tid i vila +Redial Timeout => Timeout för återuppringning +MTU => MTU +Username => Användarnamn + +# 'Wireless Configuration' page +Wireless Configuration => Trådlösa Inställningar +Wireless Interface => Trådlöst Gränssnitt +WEP Key => WEP Nyckel +Selected WEP Key => Vald WEP Nyckel +WPA PSK => WPA PSK +ESSID => ESSID +Channel => Kanal +RADIUS IP Address => RADIUS IP Adress +RADIUS Server Key => RADIUS Server Nyckel +Enabled => Påsatt +Disabled => Avstängd +ESSID Broadcast => ESSID Broadcast +Show => Visa +Hide => Göm +WLAN Mode => WLAN Läge +Access Point => Accesspunkt +Client => Klient +Bridge => Brygga +Ad-Hoc => Ad-Hoc +Operation mode => Tillståndsläge +Encryption Settings => Krypteringsinställningar +Encryption Type => Krypteringstyp +PSK => PSK +WPA Mode => WPA Läge +WPA Algorithms => WPA Algoritmer +WEP Keys => WEP Nyckel + +# 'Advanced Wireless Configuration' page +Advanced Wireless Configuration => Avancerad Trådlös Inställning +WDS Connections => WDS Anslutningar +MAC Filter List => MAC Filter Lista +Filter Mode => Filterläge +Allow => Tillåt +Deny => Neka +Set => Sätt +Settings => Settings +Automatic WDS => Automatisk WDS + +# "Hosts" page + +MAC Address => MAC Adress +Configured Hosts => Konfigurerade Värdar +DHCP Static => Statisk DHCP +Host Names => Värdnamn + +Up => Upp +Down => Ned +Edit => Editera +Delete => Ta bort +Save => Spara +Cancel => Avbryt + +Forward => Framåt +Accept => Acceptera +Drop => Tappa + +Firewall => Brandvägg +Firewall Rules => Brandväggsregler +Firewall Configuration => Brandväggsinställningar + +New Rule => Ny Regel +Match => Match +Target => Mål +Port => Port + +Protocol => Protokoll +Source IP => Käll IP +Destination IP => Destinations IP +Source Ports => Källport +Destination Ports => Destinationsport + +Forward to => Skicka till +Port => Port + +Helptext ESSID => Namn på ditt trådlösa Nätverk +Helptext DNS save => Du bör spara dina inställningar på denna sida före du lägger till/tar bort DNS servrar + +Helptext Operation mode => Detta sätter lägesinställningen för ditt trådlösa nätverk. Att välja 'Klient (Brygga)' kommer inte ändra ditt nätverks gränssnittsinställningar. Det kommer endast att sätta några parametrar i drivrutinerna som tillåter en begränsad bryggning av gränssnittet. +Helptext Encryption Type => 'WPA (RADIUS)' stödjs endast i Accesspunktsläge. <br /> 'WPA (PSK)' fungerar inte i Ad-Hoc läge. +Helptext IP Settings => IP inställningar är inte obligatoriska för DHCP och PPTP. Om du sätter dem så används de som standard om DHCP-servern inte är tillgänlig. +Helptext Idle Time => Antalet sekunder utan internet trafik som routern skall vänta på innan den frånkopplar sig från Internet. (Anslut endast på begäran) +Helptext Redial Timeout => Antalet sekunder att vänta i innan försök till ny uppkoppling görs. (om ingen kontakt kunnat upprättas med tillhandahållaren) + +# untranslated: +Available packages => Available packages + diff --git a/package/webif/files/usr/lib/webif/languages.awk b/package/webif/files/usr/lib/webif/languages.awk new file mode 100644 index 000000000..f0111dd26 --- /dev/null +++ b/package/webif/files/usr/lib/webif/languages.awk @@ -0,0 +1,12 @@ +BEGIN { + print "option|en|English" +} + +/webif\/lang\/[a-zA-Z][a-zA-Z]*/ { + gsub(/^.*webif\/lang\//, "") + shortname = $0 + gsub(/\/.*$/, "", shortname) + gsub(/^.*=>[ \t]*/, "") + longname = $0 + print "option|" shortname "|" longname +} diff --git a/package/webif/files/usr/lib/webif/subcategories.awk b/package/webif/files/usr/lib/webif/subcategories.awk new file mode 100644 index 000000000..8891ce44d --- /dev/null +++ b/package/webif/files/usr/lib/webif/subcategories.awk @@ -0,0 +1,12 @@ +BEGIN { + FS=":" + print "<div id=\"submenu\"><h3><strong>@TR<<Subcategories>>:</strong></h3><ul>" +} +{ + if ($5 ~ "^" selected "$") print "<li class=\"selected-maincat\"><a href=\"" rootdir "/" $6 "\">»@TR<<" $5 ">>«</a></li>" + else print "<li><a href=\"" rootdir "/" $6 "\"> @TR<<" $5 ">> </a></li>" +} +END { + print "</ul></div>" +} + diff --git a/package/webif/files/usr/lib/webif/validate.awk b/package/webif/files/usr/lib/webif/validate.awk new file mode 100644 index 000000000..60b5915e2 --- /dev/null +++ b/package/webif/files/usr/lib/webif/validate.awk @@ -0,0 +1,151 @@ +# $1 = type +# $2 = variable name +# $3 = field name +# $4 = options +# $5 = value +BEGIN { + FS="|" + output="" +} + +{ + valid_type = 0 + valid = 1 + # XXX: weird hack, but it works... + n = split($0, param, "|") + value = param[5] + for (i = 6; i <= n; i++) value = value FS param[i] + verr = "" +} + +$1 == "int" { + valid_type = 1 + if (value !~ /^[0-9]*$/) { valid = 0; verr = "@TR<<Invalid value>>" } +} + +# FIXME: add proper netmask validation +($1 == "ip") || ($1 == "netmask") { + valid_type = 1 + if ((value != "") && (value !~ /^[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$/)) valid = 0 + else { + split(value, ipaddr, "\\.") + for (i = 1; i <= 4; i++) { + if ((ipaddr[i] < 0) || (ipaddr[i] > 255)) valid = 0 + } + } + if (valid == 0) verr = "@TR<<Invalid value>>" +} + +$1 == "wep" { + valid_type = 1 + if (value !~ /^[0-9A-Fa-f]*$/) { + valid = 0 + verr = "@TR<<Invalid value>>" + } else if ((length(value) != 0) && (length(value) != 10) && (length(value) != 26)) { + valid = 0 + verr = "Invalid key length" + } else if (value ~ /0$/) { + valid = 0 + verr = "Key must not end with '0'" + } +} + +$1 == "hostname" { + valid_type = 1 + if (value !~ /^[0-9a-zA-z\.\-]*$/) { + valid = 0 + verr = "@TR<<Invalid value>>" + } +} + +$1 == "string" { + valid_type = 1 +} + +$1 == "mac" { + valid_type = 1 + if ((value != "") && (value !~ /^[0-9a-fA-F][0-9a-fA-F]:[0-9a-fA-F][0-9a-fA-F]:[0-9a-fA-F][0-9a-fA-F]:[0-9a-fA-F][0-9a-fA-F]:[0-9a-fA-F][0-9a-fA-F]:[0-9a-fA-F][0-9a-fA-F]$/)) { + valid = 0 + verr = "@TR<<Invalid value>>" + } +} + +$1 == "port" { + valid_type = 1 + if (value !~ /^[0-9]*$/) { + valid = 0 + verr = "@TR<<Invalid value>>" + } +} + +$1 == "ports" { + valid_type = 1 + n = split(value ",", ports, ",") + for (i = 1; i <= n; i++) { + if ((ports[i] !~ /^[0-9]*$/) && (ports[i] !~ /^[0-9][0-9]*-[0-9][0-9]*$/)) { + valid = 0 + verr = "@TR<<Invalid value>>" + } + } +} + +$1 == "wpapsk" { + valid_type = 1 + if (length(value) > 64) { + valid = 0 + verr = "String too long" + } + if ((length(value) != 0) && (length(value) < 8)) { + valid = 0 + verr = "String too short" + } + if ((length(value) == 64) && (value ~ /[^0-9a-fA-F]/)) { + valid = 0 + verr = "Invalid hex key" + } +} + +valid_type != 1 { valid = 0 } + +valid == 1 { + n = split($4, options, " ") + for (i = 1; (valid == 1) && (i <= n); i++) { + if (options[i] == "required") { + if (value == "") { valid = 0; verr = "No value entered" } + } else if ((options[i] ~ /^min=/) && (value != "")) { + min = options[i] + sub(/^min=/, "", min) + min = int(min) + if ($1 == "int") { + if (value < min) { valid = 0; verr = "Value too small (minimum: " min ")" } + } else if ($1 == "string") { + if (length(value) < min) { valid = 0; verr = "Value too small (minimum length: " min ")"} + } + } else if ((options[i] ~ /^max=/) && (value != "")) { + max = options[i] + sub(/^max=/, "", max) + max = int(max) + if ($1 == "int") { + if (value > max) { valid = 0; verr = "@TR<<Value too large>> (@TR<<maximum>>: " max ")" } + } else if ($1 == "string") { + if (length(value) > max) { valid = 0; verr = "@TR<<String too short>> (@TR<<maximum>>: " max ")" } + } + } else if ((options[i] == "nodots") && ($1 == "hostname")) { + if (value ~ /\./) { + valid = 0 + verr = "@TR<<Invalid value>>" + } + } + } +} + +valid_type == 1 { + if (valid == 1) output = output $2 "=\"" value "\";\n" + else error = error "Error in " $3 ": " verr "<br />" +} + +END { + print output "ERROR=\"" error "\";\n" + if (error == "") print "return 0" + else print "return 255" +} diff --git a/package/webif/files/usr/lib/webif/webif.sh b/package/webif/files/usr/lib/webif/webif.sh new file mode 100755 index 000000000..e6147fd6d --- /dev/null +++ b/package/webif/files/usr/lib/webif/webif.sh @@ -0,0 +1,286 @@ +libdir=/usr/lib/webif +wwwdir=/www +cgidir=/www/cgi-bin/webif +rootdir=/cgi-bin/webif +indexpage=index.sh + +# workarounds for stupid busybox slowness on [ ] +empty() { + case "$1" in + "") return 0 ;; + *) return 255 ;; + esac +} +equal() { + case "$1" in + "$2") return 0 ;; + *) return 255 ;; + esac +} +neq() { + case "$1" in + "$2") return 255 ;; + *) return 0 ;; + esac +} +# very crazy, but also very fast :-) +exists() { + ( < $1 ) 2>&- +} + +categories() { + grep '##WEBIF:' $cgidir/.categories $cgidir/*.sh 2>/dev/null | \ + awk -v "selected=$1" \ + -v "rootdir=$rootdir" \ + -v "indexpage=$indexpage" \ + -f /usr/lib/webif/categories.awk - +} + +subcategories() { + grep -H "##WEBIF:name:$1:" $cgidir/*.sh 2>/dev/null | \ + sed -e 's,^.*/\([a-zA-Z0-9_\.\-]*\):\(.*\)$,\2:\1,' | \ + sort -n | \ + awk -v "selected=$2" \ + -v "rootdir=$rootdir" \ + -f /usr/lib/webif/subcategories.awk - +} + +update_changes() { + CHANGES=$(($( (cat /tmp/.webif/config-* ; ls /tmp/.webif/file-*) 2>&- | wc -l))) +} + +header() { + empty "$ERROR" && { + _saved_title="${SAVED:+: @TR<<Settings saved>>}" + } || { + FORM_submit=""; + ERROR="<h3>$ERROR</h3><br /><br />" + _saved_title=": @TR<<Settings not saved>>" + } + + _category="$1" + _uptime="$(uptime)" + _loadavg="${_uptime#*load average: }" + _uptime="${_uptime#*up }" + _uptime="${_uptime%%,*}" + _hostname=$(cat /proc/sys/kernel/hostname) + _version=$( grep "(" /etc/banner ) + _version="${_version%% ---*}" + _head="${3:+<div class=\"settings-block-title\"><h2>$3$_saved_title</h2></div>}" + _form="${5:+<form enctype=\"multipart/form-data\" action=\"$5\" method=\"post\"><input type=\"hidden\" name=\"submit\" value=\"1\" />}" + _savebutton="${5:+<p><input type=\"submit\" name=\"action\" value=\"@TR<<Save Changes>>\" /></p>}" + _categories=$(categories $1) + _subcategories=${2:+$(subcategories "$1" "$2")} + + empty "$REMOTE_USER" && neq "${SCRIPT_NAME#/cgi-bin/}" "webif.sh" && grep 'root:!' /etc/passwd >&- 2>&- && { + _nopasswd=1 + _form="" + _savebutton="" + } + + update_changes + cat <<EOF +Content-Type: text/html +Pragma: no-cache + +<?xml version="1.0" encoding="@TR<<Encoding|ISO-8859-1>>"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + <head> + <title>@TR<<Web Status Console>></title> + <link rel="stylesheet" type="text/css" href="/webif.css" /> + <!--[if IE]> <style> #container { height: 100%; }</style> <![endif]--> + <meta http-equiv="Content-Type" content="text/html; charset=@TR<<Encoding|ISO-8859-1>>" /> + </head> + <body $4><div id="container"> + <div id="header"> + <div id="header-title"> + <div id="openwrt-title"><h1>Web Status Console</h1></div> + <div id="short-status"> + <h3><strong>Status:</strong></h3> + <ul> + <li><strong>@TR<<Host Name>>:</strong> $_hostname</li> + <li><strong>@TR<<Uptime>>:</strong> $_uptime</li> + <li><strong>@TR<<Load>>:</strong> $_loadavg</li> + <li><strong>@TR<<Version>>:</strong> $_version</li> + </ul> + </div> + </div> + $_categories + $_subcategories + </div> + $_form + <div id="content"> + <div class="settings-block"> + $_head + $ERROR +EOF + empty "$REMOTE_USER" && neq "${SCRIPT_NAME#/cgi-bin/}" "webif.sh" && { + empty "$FORM_passwd1" || { + echo '<pre>' + ( + echo "$FORM_passwd1" + sleep 1 + echo "$FORM_passwd2" + ) | passwd root 2>&1 && apply_passwd + echo '</pre>' + footer + exit + } + + equal "$_nopasswd" 1 && { + cat <<EOF +<br /> +<br /> +<br /> +<h3>@TR<<Warning>>: @TR<<Password_warning|you haven't set a password for the Web interface and SSH access<br />Please enter one now (the user name in your browser will be 'root').>></h3> +<br /> +<br /> +EOF + empty "$NOINPUT" && cat <<EOF +<form enctype="multipart/form-data" action="$SCRIPT_NAME" method="POST"> +<table> + <tr> + <td>@TR<<New Password>>:</td> + <td><input type="password" name="passwd1" /></td> + </tr> + <tr> + <td>@TR<<Confirm Password>>: </td> + <td><input type="password" name="passwd2" /></td> + </tr> + <tr> + <td /> + <td><input type="submit" name="action" value="@TR<<Set>>" /></td> + </tr> +</table> +</form> +EOF + footer + exit + } || { + apply_passwd + } + } +} + +footer() { + _changes=${CHANGES#0} + _changes=${_changes:+(${_changes})} + _endform=${_savebutton:+</form>} + cat <<EOF + </div> + <hr width="40%" /> + </div> + <br /> + <div id="save"> + <div class="page-save"> + <div> </div> + </div> + <div class="apply"> + <div> </div> + </div> + </div> + $_endform + </div></body> +</html> +EOF +} + +apply_passwd() { + case ${SERVER_SOFTWARE%% *} in + mini_httpd/*) + grep '^root:' /etc/passwd | cut -d: -f1,2 > $cgidir/.htpasswd + killall -HUP mini_httpd + ;; + esac +} + +display_form() { + if empty "$1"; then + awk -F'|' -f /usr/lib/webif/common.awk -f /usr/lib/webif/form.awk + else + echo "$1" | awk -F'|' -f /usr/lib/webif/common.awk -f /usr/lib/webif/form.awk + fi +} + +list_remove() { + echo "$1 " | awk ' +BEGIN { + RS=" " + FS=":" +} +($0 !~ /^'"$2"'/) && ($0 != "") { + printf " " $0 + first = 0 +}' +} + +handle_list() { + # $1 - remove + # $2 - add + # $3 - submit + # $4 - validate + + empty "$1" || { + LISTVAL="$(list_remove "$LISTVAL" "$1") " + LISTVAL="${LISTVAL# }" + LISTVAL="${LISTVAL%% }" + _changed=1 + } + + empty "$3" || { + validate "${4:-none}|$2" && { + if empty "$LISTVAL"; then + LISTVAL="$2" + else + LISTVAL="$LISTVAL $2" + fi + _changed=1 + } + } + + LISTVAL="${LISTVAL# }" + LISTVAL="${LISTVAL%% }" + LISTVAL="${LISTVAL:- }" + + if empty "$_changed"; then + return 255 + else + return 0 + fi +} + +load_settings() { + equal "$1" "nvram" || { + exists /etc/config/$1 && . /etc/config/$1 + } + exists /tmp/.webif/config-$1 && . /tmp/.webif/config-$1 +} + +validate() { + if empty "$1"; then + eval "$(awk -f /usr/lib/webif/validate.awk)" + else + eval "$(echo "$1" | awk -f /usr/lib/webif/validate.awk)" + fi +} + + +save_setting() { + exists /tmp/.webif/* || mkdir -p /tmp/.webif + oldval=$(eval "echo \${$2}") + oldval=${oldval:-$(nvram get "$2")} + grep "^$2=" /tmp/.webif/config-$1 >&- 2>&- && { + grep -v "^$2=" /tmp/.webif/config-$1 > /tmp/.webif/config-$1-new 2>&- + mv /tmp/.webif/config-$1-new /tmp/.webif/config-$1 2>&- >&- + oldval="" + } + equal "$oldval" "$3" || echo "$2=\"$3\"" >> /tmp/.webif/config-$1 +} + + +is_bcm947xx() { + read _systype < /proc/cpuinfo + equal "${_systype##* }" "BCM947XX" +} + diff --git a/package/webif/files/www/cgi-bin/webif.sh b/package/webif/files/www/cgi-bin/webif.sh new file mode 100755 index 000000000..63ed48f5c --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./webif/info.sh diff --git a/package/webif/files/www/cgi-bin/webif/.categories b/package/webif/files/www/cgi-bin/webif/.categories new file mode 100644 index 000000000..331d4dfd1 --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/.categories @@ -0,0 +1,2 @@ +##WEBIF:category:Info +##WEBIF:category:Status diff --git a/package/webif/files/www/cgi-bin/webif/about.sh b/package/webif/files/www/cgi-bin/webif/about.sh new file mode 100755 index 000000000..a0049c226 --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/about.sh @@ -0,0 +1,31 @@ +#!/usr/bin/webif-page +<? +. /usr/lib/webif/webif.sh +header "Info" "About" "@TR<<About>>..." +?> + +<h3>webif - @TR<<OpenWrt Administrative Console>></h3> +<br /> +@TR<<GPL_Text|This program is free software; you can redistribute it and/or <br />modify it under the terms of the GNU General Public License <br />as published by the Free Software Foundation; either version 2 <br />of the License, or (at your option) any later version. <br /> >> +<br /> +@TR<<Copyright>> © 2005-2006 OpenWrt.org <br /> +<br /> +@TR<<Contributions by>>: +<ul class="about"> + <li class="about">Philipp Kewisch <<a href="mailto:openwrt@kewis.ch">openwrt@kewis.ch</a>></li> + <li class="about">Spectra <<a href="mailto:spectra@gmx.ch">spectra@gmx.ch</a>></li> + <li class="about">Jeremy Collake <<a href="mailto:jeremy.collake@gmail.com">jeremy.collake@gmail.com</a>></li> + <li class="about">Travis Kemen <<a href="mailto:kemen04@gmail.com">kemen04@gmail.com</a>></li> + <li class="about">Markus Wigge</li> + <li class="about">SeDkY</li> + <li class="about">Ivoshiee</li> + <li class="about">arteqw</li> + <li class="about">silver71</li> + <li class="about">@TR<<Layout based on>> <a href="http://www.openwebdesign.org/design/1773/prosimii/">"Prosimii"</a> @TR<<by>> haran</li> +</ul> + + +<? footer ?> +<!-- +##WEBIF:name:Info:20:About +--> diff --git a/package/webif/files/www/cgi-bin/webif/config.sh b/package/webif/files/www/cgi-bin/webif/config.sh new file mode 100755 index 000000000..0259537aa --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/config.sh @@ -0,0 +1,46 @@ +#!/usr/bin/webif-page +<? +. /usr/lib/webif/webif.sh + +update_changes + +case "$CHANGES" in + ""|0)FORM_mode=nochange +esac +case "$FORM_mode" in + nochange) header $FORM_cat . "@TR<<No config change.|No configuration changes were made.>>";; + clear) + rm -rf /tmp/.webif >&- 2>&- + header $FORM_cat . "@TR<<Config discarded.|Your configuration changes have been discarded.>>" + CHANGES="" + echo "${FORM_prev:+<meta http-equiv=\"refresh\" content=\"2; URL=$FORM_prev\" />}" + ;; + review) + header $FORM_cat . "@TR<<Config changes:|Current configuration changes:>>" + cd /tmp/.webif + for configname in config-*; do + grep = $configname >&- 2>&- && { + echo -n "<h3>${configname#config-}</h3><br /><pre>" + cat $configname + echo '</pre><br />' + } + done + CONFIGFILES="" + for configname in file-*; do + exists "$configname" && CONFIGFILES="$CONFIGFILES ${configname#file-}" + done + CONFIGFILES="${CONFIGFILES:+<h3 style="display:inline">Config files: </h3>$CONFIGFILES<br />}" + echo $CONFIGFILES + ;; + save) + header $FORM_cat . "@TR<<Updating config...|Updating your configuration...>>" + CHANGES="" + echo "<pre>" + sh /usr/lib/webif/apply.sh 2>&1 + echo "</pre>${FORM_prev:+<meta http-equiv=\"refresh\" content=\"2; URL=$FORM_prev\" />}" + ;; +esac + +footer + +?> diff --git a/package/webif/files/www/cgi-bin/webif/index.sh b/package/webif/files/www/cgi-bin/webif/index.sh new file mode 100755 index 000000000..466b34d20 --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/index.sh @@ -0,0 +1,8 @@ +#!/usr/bin/webif-page +<? +. /usr/lib/webif/webif.sh +category=$FORM_cat +empty "$category" && category=Info +header $category 1 + +footer ?> diff --git a/package/webif/files/www/cgi-bin/webif/info.sh b/package/webif/files/www/cgi-bin/webif/info.sh new file mode 100755 index 000000000..cc7639702 --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/info.sh @@ -0,0 +1,44 @@ +#!/usr/bin/webif-page +<? +. /usr/lib/webif/webif.sh +header "Info" "Router Info" "@TR<<Router Info>>" + +?> +<pre><? +_version=$( grep "(" /etc/banner ) +_version="${_version%% ---*}" +_kversion="$( cat /proc/version )" +_date="$(date)" +_mac="$(/sbin/ifconfig eth0 | grep HWaddr | cut -b39-)" +sed -e 's/&/&/g' < /etc/banner +cat <<EOF +</pre> +<br /> +<br /> +<table style="width: 90%; text-align: left;" border="0" cellpadding="2" cellspacing="2" align="center"> +<tbody> + <tr> + <td>@TR<<Firmware Version>></td> + <td>$_version</td> + </tr> + <tr> + <td>@TR<<Kernel Version>></td> + <td>$_kversion</td> + </tr> + <tr> + <td>@TR<<Current Date/Time>></td> + <td>$_date</td> + </tr> + <tr> + <td>@TR<<MAC Address>></td> + <td>$_mac</td> + </tr> +</tbody> +</table> +EOF + +footer +?> +<!-- +##WEBIF:name:Info:10:Router Info +--> diff --git a/package/webif/files/www/cgi-bin/webif/ipkg.sh b/package/webif/files/www/cgi-bin/webif/ipkg.sh new file mode 100755 index 000000000..62c0fae90 --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/ipkg.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./system-ipkg.sh diff --git a/package/webif/files/www/cgi-bin/webif/status-connection.sh b/package/webif/files/www/cgi-bin/webif/status-connection.sh new file mode 100755 index 000000000..fbf329b1b --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/status-connection.sh @@ -0,0 +1,29 @@ +#!/usr/bin/webif-page +<? +. /usr/lib/webif/webif.sh +header "Status" "Connections" "@TR<<Connection Status>>" +?> +<table style="width: 90%; text-align: left;" border="0" cellpadding="2" cellspacing="2" align="center"> +<tbody> + <tr> + <th><b>@TR<<Physical Connections|Ethernet/Wireless Physical Connections>></b></th> + </tr> + <tr> + <td><pre><? cat /proc/net/arp ?></pre></td> + </tr> + + <tr><td><br /><br /></td></tr> + + <tr> + <th><b>@TR<<Router Connections|Connections to the Router>></b></th> + </tr> + <tr> + <td><pre><? netstat -n 2>&- | awk '$0 ~ /^Active UNIX/ {ignore = 1}; ignore != 1 { print $0 }' ?></pre></td> + </tr> +</tbody> +</table> + +<? footer ?> +<!-- +##WEBIF:name:Status:100:Connections +--> diff --git a/package/webif/files/www/cgi-bin/webif/status-dhcp.sh b/package/webif/files/www/cgi-bin/webif/status-dhcp.sh new file mode 100755 index 000000000..5517b781f --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/status-dhcp.sh @@ -0,0 +1,38 @@ +#!/usr/bin/webif-page +<? +. /usr/lib/webif/webif.sh +header "Status" "DHCP" "@TR<<DHCP leases>>" +?> +<table style="width: 90%; text-align: left;" border="0" cellpadding="2" cellspacing="2" align="center"> +<tbody> + <tr> + <th>@TR<<MAC Address>></th> + <th>@TR<<IP Address>></th> + <th>@TR<<Name>></th> + <th>@TR<<Expires in>></th> + </tr> +<? [ -e /tmp/dhcp.leases ] && awk -vdate="$(date +%s)" ' +$1 > 0 { + print "<tr>" + print "<td>" $2 "</td>" + print "<td>" $3 "</td>" + print "<td>" $4 "</td>" + print "<td>" + t = $1 - date + h = int(t / 60 / 60) + if (h > 0) printf h "h " + m = int(t / 60 % 60) + if (m > 0) printf m "min " + s = int(t % 60) + printf s "sec " + printf "</td>" + print "</tr>" +} +' /tmp/dhcp.leases ?> +</tbody> +</table> + +<? footer ?> +<!-- +##WEBIF:name:Status:150:DHCP +--> diff --git a/package/webif/files/www/cgi-bin/webif/status-wireless.sh b/package/webif/files/www/cgi-bin/webif/status-wireless.sh new file mode 100755 index 000000000..c7ad0a306 --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/status-wireless.sh @@ -0,0 +1,12 @@ +#!/usr/bin/webif-page +<? +. /usr/lib/webif/webif.sh +header "Status" "Wireless" "@TR<<Wireless Status>>" +?> + +<pre><? iwconfig 2>&1 | grep -v 'no wireless' | grep '\w' ?></pre> + +<? footer ?> +<!-- +##WEBIF:name:Status:200:Wireless +--> diff --git a/package/webif/files/www/index.html b/package/webif/files/www/index.html new file mode 100644 index 000000000..72a918726 --- /dev/null +++ b/package/webif/files/www/index.html @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <meta http-equiv="Pragma" CONTENT="no-cache"> + <meta http-equiv="Expires" CONTENT="-1"> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <meta http-equiv="refresh" content="0; URL=/cgi-bin/webif.sh" /> + <title>Web Administrative Console</title> + </head> + <body style="margin: 0pt auto; height:100%; color: #C3C4D2; background-color: #213242;"> + <div style="width: 100%; height: 100%; position: fixed; display: table;"> + <p style="display: table-cell; line-height: 4em; vertical-align: middle; text-align: center;">Web Administrative Console<br />Redirecting to : <a style="color: inherit;" href="/cgi-bin/webif.sh">main page</a></p> + </div> + </body> +</html> diff --git a/package/webif/files/www/webif.css b/package/webif/files/www/webif.css new file mode 100644 index 000000000..86c5a62f9 --- /dev/null +++ b/package/webif/files/www/webif.css @@ -0,0 +1,296 @@ +/* layout */ + +* { + margin: 0; + padding: 0; +} + +html, body { + width: inherit; + height: 100%; +} + +dd { + margin-left: 1em; + margin-bottom: 0.2em; +} + +ul { + display: inline; + list-style-type: none; +} + +ul.about { + list-style-type: disc; +} + +li.about { + margin-left: 2em; +} + +hr, +#submenu h3, +#short-status h3, +#content .settings-block .settings .settings-help h3 { + display: none; +} + +ul.about, +hr.separator { + display: block; +} + +option { + padding-right: 1em; +} + +#container { + position: relative; + min-height: 100%; +} + +#header { + position: relative; + width: 100%; +} + +#header-title { + padding-top: 2em; + padding-bottom: 0.2em; +} + +#openwrt-title { + position: relative; + float: left; + left: 1em; + top: 0.7em; +} + +#short-status { + position: relative; + right: 1em; + line-height: 1.2em; + padding-bottom: 0.2em; +} + +#mainmenu, +#submenu { + position: absolute; + width: 100%; + padding-top: 0.2em; + padding-bottom: 0.2em; +} + +#mainmenu +{ + top: 0; + left: 0; +} + +#mainmenu h3 { + padding-left: 1em; + float: left; +} + +#mainmenu li { + font-size: 0.9em; + float: left; + margin-left: 1.5em; +} + +#submenu li { + float: left; + margin-left: 1em; +} + + +#content { + padding-top: 2em; + margin-left: 1em; + padding-bottom: 6em; +} + +#content .settings-block { + margin-bottom: 1.5em; +} + +#content .settings-block .settings-block-title { + margin-bottom: 10px; +} + +#content .settings-block .settings { + clear: both; + margin-left: 1.5em; + padding-right: 1em; +} + +#content .settings-block .settings-block-title, +#content .settings-block .settings .settings-title { + padding: 0.2em; +} + +#content .settings-block .settings .settings-content { + padding-top: 1em; + margin-left: 1em; + float: left; + width: 58%; + padding-bottom: 0.5em; +} + +#content .settings-block .settings .settings-content select, +#content .settings-block .settings .settings-content input { + margin-top: 0.8em; +} + +#content .settings-block .settings .settings-help { + padding: 0.4em; + padding-top: 1.4em; + margin-left: 42%; +} + +#content .settings-block .settings .settings-help .more-help { + margin-right: 10%; + text-align: right; +} + +#save { + position: absolute; + bottom: 0; + width: 100%; +} + +#save .page-save div { + float: right; + width: 15em; + height: 1.5em; + padding-right: 1em; + padding-top: 0.5em; + padding-bottom: 0.4em; +} + +#save .apply { + clear: both; + width: 100%; + height: 5em; +} + +#save .apply div { + float: right; + width: 15em; + height: 4em; + padding-right: 1em; + padding-top: 0.5em; + padding-bottom: 0.5em; +} + +th { + text-align: left; +} + +#content .settings-block .settings .settings-help .more-help, +#save, +#short-status { + text-align: right; +} + +/* font */ +body { + font-family: Verdana, Helvetica, sans-serif; + font-size: 1.0em; +} + +dt, +.selected-maincat, +#mainmenu a:active, +#submenu a { + font-weight: bold; +} + + + +#openwrt-title h1 { + font-size: 2.8em; +} + + +#short-status ul { + font-size: 0.8em; +} + +#mainmenu h3, +#mainmenu li, +#short-status h3 { + font-size: 0.9em; +} + +#mainmenu a, +#submenu a, +#save a { + text-decoration: none; +} + +#save a:hover { + text-decoration: underline; +} + +#mainmenu h3 { + text-transform: uppercase; +} + +#save a { + font-weight: normal; + font-size: 1.1em; +} + + +/* color */ + +#header-title, +#submenu, +#submenu a, +#save a, +#save .page-save +{ + color: #fff; +} + +#header-title, +#save .apply div { + background-color: #3D5C7A; +} + +#mainmenu { + color: #C3C4D2; + background-color: #213242; +} + +#mainmenu a { + color: #C3C4D2; +} + +#mainmenu a:hover { + color: rgb(193,102,90); +} + +#submenu, +#save div { + background-color: #7590AE; +} + +#content .settings-block .settings-block-title h2 { + color: #7590AE; +} + +#submenu a:hover { + color: #FB0; +} + +#content .settings-block .settings .settings-title { + color: #000; + background-color: #CCC; +} + +#save .page-save { + background-color: #FFF; +} + diff --git a/package/webif/files/www/webif.js b/package/webif/files/www/webif.js new file mode 100644 index 000000000..64d26cd8b --- /dev/null +++ b/package/webif/files/www/webif.js @@ -0,0 +1,33 @@ +function value(name) +{ + var item = document.getElementById(name); + return (item ? item.value : ""); +} +function isset(name, val) +{ + return (value(name) == val); +} +function checked(name) +{ + var item = document.getElementById(name); + return ((item) && item.checked); +} +function hide(name) +{ + var item = document.getElementById(name); + if (item) + item.style.display = 'none'; +} +function show(name) +{ + var item = document.getElementById(name); + if (item) + item.style.display = ''; +} +function set_visible(name, value) +{ + if (value) + show(name) + else + hide(name) +} diff --git a/package/webif/src/bstrip.c b/package/webif/src/bstrip.c new file mode 100644 index 000000000..1e17d4e00 --- /dev/null +++ b/package/webif/src/bstrip.c @@ -0,0 +1,75 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#define BUF_SIZE 1024 +#define READ_LEN 14 + +static int read_len = READ_LEN; +static char rbuf[32]; +static char rbuflen = 0; + +int do_gets(char *buf) +{ + int r = 0, c = 0; + char *m; + + if (rbuflen > 0) + memcpy(buf, rbuf, rbuflen); + c += rbuflen; + + while ((c + read_len < BUF_SIZE) && ((r = read(0, &buf[c], read_len)) > 0)) { + m = NULL; + + if ((m = memchr(&buf[c], '\n', r)) != NULL) { + rbuflen = r - (m - &buf[c] + 1); + if (rbuflen > 0) + memcpy(rbuf, m + 1, rbuflen); + c += m - &buf[c] + 1; + } else { + rbuflen = 0; + c += r; + } + + if ((c > 3) && (memcmp(&buf[c - 3], "---", 3) == 0)) + read_len = 1; + + if (m != NULL) + return c; + } + + return c; +} + +int main(int argc, char **argv) +{ + char buf[BUF_SIZE]; + char buf1[BUF_SIZE]; + char *tmp; + int len, r = 0, r1 = 0; + + if (argc != 2) { + fprintf(stderr, "Syntax: %s (name|data <boundary>)\n", argv[0]); + exit(1); + } + while (tmp = strchr(argv[1], '\r')) + *tmp = 0; + + len = strlen(argv[1]); + + *buf = 0; + while ((strncmp(buf, argv[1], len) != 0) && + (strncmp(buf + 2, argv[1], len) != 0)) { + if (r > 0) { + if (r1 > 0) + write (1, buf1, r1); + r1 = r; + memcpy(buf1, buf, r); + } + if ((r = do_gets(buf)) <= 0) + exit(1); + } + + if (r1 > 2) + write(1, buf1, r1 - 2); +} diff --git a/package/webif/src/webif-page.c b/package/webif/src/webif-page.c new file mode 100644 index 000000000..13e70937e --- /dev/null +++ b/package/webif/src/webif-page.c @@ -0,0 +1,289 @@ +/* + * Webif page translator + * + * Copyright (C) 2005 Felix Fietkau <nbd@openwrt.org> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <glob.h> +#include <ctype.h> +#ifdef NVRAM +#include <bcmnvram.h> +#endif + +#define HASH_MAX 100 +#define LINE_BUF 1024 /* max. buffer allocated for one line */ +#define MAX_TR 32 /* max. translations done on one line */ +#define TR_START "@TR<<" +#define TR_END ">>" + +struct lstr { + char *name; + char *value; + struct lstr *next; +}; +typedef struct lstr lstr; + +static lstr *ltable[HASH_MAX]; +static char buf[LINE_BUF], buf2[LINE_BUF]; + +/* djb2 hash function */ +static inline unsigned long hash(char *str) +{ + unsigned long hash = 5381; + int c; + + while ((c = *str++)) + hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ + + return hash; +} + +static inline char *translate_lookup(char *str) +{ + char *name, *def, *p, *res = NULL; + lstr *i; + int h; + + def = name = str; + if (((p = strchr(str, '|')) != NULL) + || ((p = strchr(str, '#')) != NULL)) { + def = p + 1; + *p = 0; + } + + h = hash(name) % HASH_MAX; + i = ltable[h]; + while ((res == NULL) && (i != NULL)) { + if (strcmp(name, i->name) == 0) + res = i->value; + i = i->next; + } + + if (res == NULL) + res = def; + + return res; +} + +static inline void add_line(char *name, char *value) +{ + int h = hash(name) % HASH_MAX; + lstr *s = malloc(sizeof(lstr)); + lstr *p; + + s->name = strdup(name); + s->value = strdup(value); + s->next = NULL; + + if (ltable[h] == NULL) + ltable[h] = s; + else { + for(p = ltable[h]; p->next != NULL; p = p->next); + p->next = s; + } +} + +static char *translate_line(char *line) +{ + static char *tok[MAX_TR * 3]; + char *l, *p, *p2, *res; + int len = 0, pos = 0, i; + + l = line; + while (l != NULL) { + if ((p = strstr(l, TR_START)) == NULL) { + len += strlen((tok[pos++] = l)); + break; + } + + p2 = strstr(p, TR_END); + if (p2 == NULL) + break; + + *p = 0; + *p2 = 0; + len += strlen((tok[pos++] = l)); + len += strlen((tok[pos++] = translate_lookup(p + strlen(TR_START)))); + + l = p2; + l += strlen(TR_END); + } + len++; + + if (len > LINE_BUF) + p = malloc(len); + else + p = buf2; + + p[0] = 0; + res = p; + for (i = 0; i < pos; i++) { + strcat(p, tok[i]); + p += strlen(tok[i]); + } + + return res; +} + +/* load and parse language file */ +static void load_lang(char *file) +{ + FILE *f; + char *b, *name, *value; + + f = fopen(file, "r"); + while (!feof(f) && (fgets(buf, LINE_BUF - 1, f) != NULL)) { + b = buf; + while (isspace(*b)) + b++; /* skip leading spaces */ + if (!*b) + continue; + + name = b; + if ((b = strstr(name, "=>")) == NULL) + continue; /* separator not found */ + + value = b + 2; + if (!*value) + continue; + + *b = 0; + for (b--; isspace(*b); b--) + *b = 0; /* remove trailing spaces */ + + while (isspace(*value)) + value++; /* skip leading spaces */ + + for (b = value + strlen(value) - 1; isspace(*b); b--) + *b = 0; /* remove trailing spaces */ + + if (!*value) + continue; + + add_line(name, value); + } +} + +int main (int argc, char **argv) +{ + FILE *f; + int len, i, done; + char line[LINE_BUF], *tmp, *arg; + glob_t langfiles; + char *lang = NULL; + char *proc = "/usr/bin/haserl"; + + memset(ltable, 0, HASH_MAX * sizeof(lstr *)); +#ifdef NVRAM + if ((lang = nvram_get("language")) != NULL) { +#else + if ((f = fopen("/etc/config/webif", "r")) != NULL) { + int n, i; + + while (!feof(f) && (lang == NULL)) { + fgets(line, LINE_BUF - 1, f); + + if (strncasecmp(line, "lang", 4) != 0) + goto nomatch; + + lang = line + 4; + while (isspace(*lang)) + lang++; + + if (*lang != '=') + goto nomatch; + + lang++; + + while (isspace(*lang)) + lang++; + + for (i = 0; isalpha(lang[i]) && (i < 32); i++); + lang[i] = 0; + continue; +nomatch: + lang = NULL; + } + fclose(f); +#endif + + sprintf(buf, "/usr/lib/webif/lang/%s/*.txt", lang); + i = glob(buf, GLOB_ERR | GLOB_MARK, NULL, &langfiles); + if (i == GLOB_NOSPACE || i == GLOB_ABORTED || i == GLOB_NOMATCH) { + // no language files found + } else { + for (i = 0; i < langfiles.gl_pathc; i++) { + load_lang(langfiles.gl_pathv[i]); + } + } + } + + /* + * command line options for this parser are stored in argv[1] only. + * filename to be processed is in argv[2] + */ + done = 0; + i = 1; + while (!done) { + if (argv[1] == NULL) { + done = 1; + } else if (strncmp(argv[1], "-e", 2) == 0) { + argv[1] = strchr(argv[1], ' '); + argv[1]++; + if (argv[1] != NULL) { + arg = argv[1]; + if ((tmp = strchr(argv[1], ' ')) != NULL) { + *tmp = 0; + argv[1] = &tmp[1]; + } else { + argv[1] = NULL; + i++; + } + system(arg); + } + } else if (strncmp(argv[1], "-p", 2) == 0) { + argv[1] = strchr(argv[1], ' '); + argv[1]++; + if (argv[1] != NULL) { + arg = argv[1]; + if ((tmp = strchr(argv[1], ' ')) != NULL) { + *tmp = 0; + argv[1] = &tmp[1]; + } else { + argv[1] = NULL; + i++; + } + proc = strdup(arg); + } + } else { + done = 1; + } + } + + strcpy(buf, proc); + while (argv[i]) { + sprintf(buf + strlen(buf), " %s", argv[i++]); + } + f = popen(buf, "r"); + + while (!feof(f) && (fgets(buf, LINE_BUF - 1, f)) != NULL) { + fprintf(stdout, "%s", translate_line(buf)); + fflush(stdout); + } + + return 0; +} diff --git a/package/webif/webif.mk b/package/webif/webif.mk new file mode 100644 index 000000000..32dd3b360 --- /dev/null +++ b/package/webif/webif.mk @@ -0,0 +1,71 @@ +############################################################# +# +# webif +# +############################################################# +WEBIF_VERSION:=0.2 +WEBIF_SOURCE:=package/webif +WEBIF_SITE:=https://svn.openwrt.org/openwrt/tags/whiterussian_0.9/package/webif +WEBIF_DIR:=$(BUILD_DIR)/webif-$(WEBIF_VERSION) + +$(WEBIF_DIR)/.unpacked: + mkdir -p $(WEBIF_DIR) + touch $@ + +$(WEBIF_DIR)/.built: $(WEBIF_DIR)/.unpacked + $(TARGET_CC) $(TARGET_CFLAGS) -o $(WEBIF_DIR)/webif-page $(WEBIF_SOURCE)/src/webif-page.c + $(TARGET_CC) $(TARGET_CFLAGS) -o $(WEBIF_DIR)/bstrip $(WEBIF_SOURCE)/src/bstrip.c + $(STRIP) --strip-unneeded $(WEBIF_DIR)/webif-page $(WEBIF_DIR)/bstrip + touch $@ + +$(TARGET_DIR)/www/webif.css: $(WEBIF_DIR)/.built + mkdir -p $(TARGET_DIR)/etc + mkdir -p $(TARGET_DIR)/usr/bin + mkdir -p $(TARGET_DIR)/usr/lib + mkdir -p $(TARGET_DIR)/www + cat $(WEBIF_SOURCE)/files/etc/httpd.conf >> $(TARGET_DIR)/etc/httpd.conf + cp -dpfr $(WEBIF_SOURCE)/files/usr/lib/webif $(TARGET_DIR)/usr/lib/ +ifneq ($(strip $(BR2_PACKAGE_WEBIF_LANGUAGES)),y) + rm -rf $(TARGET_DIR)/usr/lib/webif/lang +endif + $(INSTALL) -m0755 $(WEBIF_DIR)/webif-page $(TARGET_DIR)/usr/bin/ + $(INSTALL) -m0755 $(WEBIF_DIR)/bstrip $(TARGET_DIR)/usr/bin/ +ifeq ($(strip $(BR2_PACKAGE_WEBIF_INSTALL_INDEX_HTML)),y) + @if [ -f "$(TARGET_DIR)/www/index.html" ]; then \ + echo; \ + echo "webif WARNING:"; \ + echo "There is already a $(TARGET_DIR)/www/index.html"; \ + echo "webif might be replacing another package;" \ + echo; \ + echo "Sleeping for 10 seconds"; \ + sleep 10; \ + fi + cp -dpf $(WEBIF_SOURCE)/files/www/index.html $(TARGET_DIR)/www/ +endif + cp -dpfr $(WEBIF_SOURCE)/files/www/cgi-bin $(TARGET_DIR)/www/ + cp -dpfr $(WEBIF_SOURCE)/files/www/webif.* $(TARGET_DIR)/www/ + @if [ ! -f $(TARGET_DIR)/etc/banner ]; then \ + ln -sf issue $(TARGET_DIR)/etc/banner; \ + fi + touch $@ + +webif: busybox $(TARGET_DIR)/www/webif.css + +webif-clean: + rm -f $(TARGET_DIR)/www/cgi-bin/webif* $(TARGET_DIR)/www/webif.* + rm -rf $(TARGET_DIR)/usr/lib/webif + rm -f $(TARGET_DIR)/usr/bin/bstrip $(TARGET_DIR)/usr/bin/webif-page + rm -r $(WEBIF_DIR)/bstrip $(WEBIF_DIR)/webif-page + +webif-source: + +webif-dirclean: + rm -rf $(WEBIF_DIR) +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_WEBIF)),y) +TARGETS+=webif +endif |