From b34c9ae639493fc09988718695de6d0fa2f42b52 Mon Sep 17 00:00:00 2001 From: Luiz Angelo Daros de Luca Date: Fri, 16 Jan 2015 15:37:13 -0200 Subject: luci-proto-3g: add dialnumber option UCI network already permit dialnumber option for 3g interfaces. This adds dialnumber to luci protocol 3g. Also it introduces a new translation string "Dial number", added to template and updated on each language (all empty but pt-br). Signed-off-by: Luiz Angelo Daros de Luca --- modules/luci-base/po/ca/base.po | 3 +++ modules/luci-base/po/cs/base.po | 3 +++ modules/luci-base/po/de/base.po | 3 +++ modules/luci-base/po/el/base.po | 3 +++ modules/luci-base/po/en/base.po | 3 +++ modules/luci-base/po/es/base.po | 3 +++ modules/luci-base/po/fr/base.po | 3 +++ modules/luci-base/po/he/base.po | 3 +++ modules/luci-base/po/hu/base.po | 3 +++ modules/luci-base/po/it/base.po | 3 +++ modules/luci-base/po/ja/base.po | 3 +++ modules/luci-base/po/ms/base.po | 3 +++ modules/luci-base/po/no/base.po | 3 +++ modules/luci-base/po/pl/base.po | 3 +++ modules/luci-base/po/pt-br/base.po | 3 +++ modules/luci-base/po/pt/base.po | 3 +++ modules/luci-base/po/ro/base.po | 3 +++ modules/luci-base/po/ru/base.po | 3 +++ modules/luci-base/po/sk/base.po | 3 +++ modules/luci-base/po/sv/base.po | 3 +++ modules/luci-base/po/templates/base.pot | 3 +++ modules/luci-base/po/tr/base.po | 3 +++ modules/luci-base/po/uk/base.po | 3 +++ modules/luci-base/po/vi/base.po | 3 +++ modules/luci-base/po/zh-cn/base.po | 3 +++ modules/luci-base/po/zh-tw/base.po | 3 +++ protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua | 4 +++- 27 files changed, 81 insertions(+), 1 deletion(-) diff --git a/modules/luci-base/po/ca/base.po b/modules/luci-base/po/ca/base.po index 29e27cf8c..0e5919022 100644 --- a/modules/luci-base/po/ca/base.po +++ b/modules/luci-base/po/ca/base.po @@ -643,6 +643,9 @@ msgstr "Configuració de dispositiu" msgid "Diagnostics" msgstr "Diagnòstics" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Directori" diff --git a/modules/luci-base/po/cs/base.po b/modules/luci-base/po/cs/base.po index 709145a8f..a1e7c1709 100644 --- a/modules/luci-base/po/cs/base.po +++ b/modules/luci-base/po/cs/base.po @@ -649,6 +649,9 @@ msgstr "Nastavení zařízení" msgid "Diagnostics" msgstr "Diagnostika" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Adresář" diff --git a/modules/luci-base/po/de/base.po b/modules/luci-base/po/de/base.po index 4b33e320b..4f986f9b2 100644 --- a/modules/luci-base/po/de/base.po +++ b/modules/luci-base/po/de/base.po @@ -648,6 +648,9 @@ msgstr "Gerätekonfiguration" msgid "Diagnostics" msgstr "Diagnosen" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Verzeichnis" diff --git a/modules/luci-base/po/el/base.po b/modules/luci-base/po/el/base.po index e0ddba94e..1f3fe68b6 100644 --- a/modules/luci-base/po/el/base.po +++ b/modules/luci-base/po/el/base.po @@ -658,6 +658,9 @@ msgstr "Παραμετροποίηση Συσκευής" msgid "Diagnostics" msgstr "Διαγνωστικά" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Κατάλογος" diff --git a/modules/luci-base/po/en/base.po b/modules/luci-base/po/en/base.po index f2708181b..d81efbe09 100644 --- a/modules/luci-base/po/en/base.po +++ b/modules/luci-base/po/en/base.po @@ -644,6 +644,9 @@ msgstr "Device Configuration" msgid "Diagnostics" msgstr "Diagnostics" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Directory" diff --git a/modules/luci-base/po/es/base.po b/modules/luci-base/po/es/base.po index fb35d6470..4a52beea6 100644 --- a/modules/luci-base/po/es/base.po +++ b/modules/luci-base/po/es/base.po @@ -657,6 +657,9 @@ msgstr "Configuración del dispositivo" msgid "Diagnostics" msgstr "Diagnósticos" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Directorio" diff --git a/modules/luci-base/po/fr/base.po b/modules/luci-base/po/fr/base.po index 56a5c951b..849ba96da 100644 --- a/modules/luci-base/po/fr/base.po +++ b/modules/luci-base/po/fr/base.po @@ -665,6 +665,9 @@ msgstr "Configuration de l'équipement" msgid "Diagnostics" msgstr "Diagnostics" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Répertoire" diff --git a/modules/luci-base/po/he/base.po b/modules/luci-base/po/he/base.po index 56f81d0c9..0126089f2 100644 --- a/modules/luci-base/po/he/base.po +++ b/modules/luci-base/po/he/base.po @@ -637,6 +637,9 @@ msgstr "הגדרות מכשיר" msgid "Diagnostics" msgstr "אבחון" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "" diff --git a/modules/luci-base/po/hu/base.po b/modules/luci-base/po/hu/base.po index 6fb8e1857..8c00e4fb6 100644 --- a/modules/luci-base/po/hu/base.po +++ b/modules/luci-base/po/hu/base.po @@ -658,6 +658,9 @@ msgstr "Eszköz beállítások" msgid "Diagnostics" msgstr "Diagnosztika" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Könyvtár" diff --git a/modules/luci-base/po/it/base.po b/modules/luci-base/po/it/base.po index bab990d23..da8ac8e8f 100644 --- a/modules/luci-base/po/it/base.po +++ b/modules/luci-base/po/it/base.po @@ -662,6 +662,9 @@ msgstr "Configurazione del dispositivo" msgid "Diagnostics" msgstr "Diagnostica" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Cartella" diff --git a/modules/luci-base/po/ja/base.po b/modules/luci-base/po/ja/base.po index 0b625ed96..dc578859c 100644 --- a/modules/luci-base/po/ja/base.po +++ b/modules/luci-base/po/ja/base.po @@ -647,6 +647,9 @@ msgstr "デバイス設定" msgid "Diagnostics" msgstr "診断機能" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "ディレクトリ" diff --git a/modules/luci-base/po/ms/base.po b/modules/luci-base/po/ms/base.po index 30fac6b9e..31560c0d1 100644 --- a/modules/luci-base/po/ms/base.po +++ b/modules/luci-base/po/ms/base.po @@ -617,6 +617,9 @@ msgstr "" msgid "Diagnostics" msgstr "" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "" diff --git a/modules/luci-base/po/no/base.po b/modules/luci-base/po/no/base.po index 118c5c9ee..8abf60d15 100644 --- a/modules/luci-base/po/no/base.po +++ b/modules/luci-base/po/no/base.po @@ -647,6 +647,9 @@ msgstr "Enhet Konfigurasjon" msgid "Diagnostics" msgstr "Nettverksdiagnostikk" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Katalog" diff --git a/modules/luci-base/po/pl/base.po b/modules/luci-base/po/pl/base.po index 6e82be1f1..1aa05e118 100644 --- a/modules/luci-base/po/pl/base.po +++ b/modules/luci-base/po/pl/base.po @@ -668,6 +668,9 @@ msgstr "Konfiguracja urządzenia" msgid "Diagnostics" msgstr "Diagnostyka" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Katalog" diff --git a/modules/luci-base/po/pt-br/base.po b/modules/luci-base/po/pt-br/base.po index 0118b53ba..be3b62681 100644 --- a/modules/luci-base/po/pt-br/base.po +++ b/modules/luci-base/po/pt-br/base.po @@ -663,6 +663,9 @@ msgstr "Configuração do Dispositivo" msgid "Diagnostics" msgstr "Diagnóstico" +msgid "Dial number" +msgstr "Número de discagem" + msgid "Directory" msgstr "Diretório" diff --git a/modules/luci-base/po/pt/base.po b/modules/luci-base/po/pt/base.po index 48177c35a..58970f044 100644 --- a/modules/luci-base/po/pt/base.po +++ b/modules/luci-base/po/pt/base.po @@ -659,6 +659,9 @@ msgstr "Configuração do Dispositivo" msgid "Diagnostics" msgstr "Diagnósticos" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Directório" diff --git a/modules/luci-base/po/ro/base.po b/modules/luci-base/po/ro/base.po index 36a9b1ff4..45070df26 100644 --- a/modules/luci-base/po/ro/base.po +++ b/modules/luci-base/po/ro/base.po @@ -630,6 +630,9 @@ msgstr "Configurarea dispozitivului" msgid "Diagnostics" msgstr "Diagnosticuri" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Director" diff --git a/modules/luci-base/po/ru/base.po b/modules/luci-base/po/ru/base.po index 7a073f57c..1afa83bbc 100644 --- a/modules/luci-base/po/ru/base.po +++ b/modules/luci-base/po/ru/base.po @@ -660,6 +660,9 @@ msgstr "Конфигурация устройства" msgid "Diagnostics" msgstr "Диагностика" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Директория" diff --git a/modules/luci-base/po/sk/base.po b/modules/luci-base/po/sk/base.po index 6a724ed53..5d168d0ff 100644 --- a/modules/luci-base/po/sk/base.po +++ b/modules/luci-base/po/sk/base.po @@ -610,6 +610,9 @@ msgstr "" msgid "Diagnostics" msgstr "" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "" diff --git a/modules/luci-base/po/sv/base.po b/modules/luci-base/po/sv/base.po index f7d4ae6e9..a5566b34d 100644 --- a/modules/luci-base/po/sv/base.po +++ b/modules/luci-base/po/sv/base.po @@ -616,6 +616,9 @@ msgstr "" msgid "Diagnostics" msgstr "" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "" diff --git a/modules/luci-base/po/templates/base.pot b/modules/luci-base/po/templates/base.pot index f71e6d326..b781ed713 100644 --- a/modules/luci-base/po/templates/base.pot +++ b/modules/luci-base/po/templates/base.pot @@ -603,6 +603,9 @@ msgstr "" msgid "Diagnostics" msgstr "" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "" diff --git a/modules/luci-base/po/tr/base.po b/modules/luci-base/po/tr/base.po index fdf65fcbf..a06b7bedd 100644 --- a/modules/luci-base/po/tr/base.po +++ b/modules/luci-base/po/tr/base.po @@ -623,6 +623,9 @@ msgstr "" msgid "Diagnostics" msgstr "" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "" diff --git a/modules/luci-base/po/uk/base.po b/modules/luci-base/po/uk/base.po index 4fd1f6096..c253bfa14 100644 --- a/modules/luci-base/po/uk/base.po +++ b/modules/luci-base/po/uk/base.po @@ -669,6 +669,9 @@ msgstr "Конфігурація пристрою" msgid "Diagnostics" msgstr "Діагностика" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "Каталог" diff --git a/modules/luci-base/po/vi/base.po b/modules/luci-base/po/vi/base.po index e2b3a2353..7134034b7 100644 --- a/modules/luci-base/po/vi/base.po +++ b/modules/luci-base/po/vi/base.po @@ -619,6 +619,9 @@ msgstr "" msgid "Diagnostics" msgstr "" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "" diff --git a/modules/luci-base/po/zh-cn/base.po b/modules/luci-base/po/zh-cn/base.po index b66e2e9c5..ec8ccdf0e 100644 --- a/modules/luci-base/po/zh-cn/base.po +++ b/modules/luci-base/po/zh-cn/base.po @@ -625,6 +625,9 @@ msgstr "设备配置" msgid "Diagnostics" msgstr "网络诊断" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "目录" diff --git a/modules/luci-base/po/zh-tw/base.po b/modules/luci-base/po/zh-tw/base.po index a94be30f7..e580adfcd 100644 --- a/modules/luci-base/po/zh-tw/base.po +++ b/modules/luci-base/po/zh-tw/base.po @@ -632,6 +632,9 @@ msgstr "設定設備" msgid "Diagnostics" msgstr "診斷" +msgid "Dial number" +msgstr "" + msgid "Directory" msgstr "目錄" diff --git a/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua b/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua index 9c1a76282..5a73396be 100644 --- a/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua +++ b/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua @@ -12,7 +12,7 @@ You may obtain a copy of the License at local map, section, net = ... -local device, apn, service, pincode, username, password +local device, apn, service, pincode, username, password, dialnumber local ipv6, maxwait, defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand @@ -51,6 +51,8 @@ username = section:taboption("general", Value, "username", translate("PAP/CHAP u password = section:taboption("general", Value, "password", translate("PAP/CHAP password")) password.password = true +dialnumber = section:taboption("general", Value, "dialnumber", translate("Dial number")) +dialnumber.placeholder = "*99***1#" if luci.model.network:has_ipv6() then -- cgit v1.2.3