luci-app-travelmate: sync with update 1.4.8 2805/head
authorDirk Brenken <dev@brenken.org>
Sat, 29 Jun 2019 12:46:28 +0000 (14:46 +0200)
committerDirk Brenken <dev@brenken.org>
Sat, 29 Jun 2019 12:46:28 +0000 (14:46 +0200)
* add optional 'trm_scanbuffer' parm
* fix wrong lua escape character in wifi edit
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua
applications/luci-app-travelmate/po/pt-br/travelmate.po
applications/luci-app-travelmate/po/ru/travelmate.po
applications/luci-app-travelmate/po/templates/travelmate.pot
applications/luci-app-travelmate/po/zh-cn/travelmate.po
applications/luci-app-travelmate/po/zh-tw/travelmate.po

index 827a39b8cf3713c81884ab9b815c5943e93e7f8a..429d4357d69d704390541f4779cf5bed6203c983 100644 (file)
@@ -139,4 +139,10 @@ e8.default = 60
 e8.datatype = "range(30,300)"
 e8.rmempty = false
 
+e10 = e:option(Value, "trm_scanbuffer", translate("Scan Buffer Size"),
+  translate("Buffer size in bytes to prepare nearby scan results."))
+e10.default = 1024
+e10.datatype = "range(512,4096)"
+e10.optional = true
+
 return m
index f3ad762594b8fc8ba472ec37aa1cb3ced58caf88..dae358ae034b5c51e42c4518a130d0e1bf481ab2 100644 (file)
@@ -1,4 +1,4 @@
--- Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
+-- Copyright 2017-2019 Dirk Brenken (dev@brenken.org)
 -- This is free software, licensed under the Apache License, Version 2.0
 
 local fs   = require("nixio.fs")
@@ -29,8 +29,8 @@ if s ~= nil then
        bssid.default = s.bssid or ""
 
        s.cipher = "auto"
-       if string.match(s.encryption, '\+') and not string.match(s.encryption, '^wep') then
-               s.pos = string.find(s.encryption, '\+')
+       if string.match(s.encryption, '%+') and not string.match(s.encryption, '^wep') then
+               s.pos = string.find(s.encryption, '%+')
                s.cipher = string.sub(s.encryption, s.pos + 1)
                s.encryption = string.sub(s.encryption, 0, s.pos - 1)
        end
index 32e9f2500cf3807889858a31851fd658b76b5110..c95941639b7f6d693cbf81210d852f2104182602 100644 (file)
@@ -595,3 +595,11 @@ msgstr ""
 
 #~ msgid "Restrict travelmate to a dedicated radio, e.g. 'radio0'."
 #~ msgstr "Restringir o travelmate a um rádio dedicado (ex: 'radio0')."
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:142
+msgid "Scan Buffer Size"
+msgstr ""
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:143
+msgid "Buffer size in bytes to prepare nearby scan results."
+msgstr ""
index 127d0b00518fc5998b90d9499195b3b2e441d70f..79b1607db66b52493b19564860dc279859147838 100644 (file)
@@ -688,3 +688,11 @@ msgstr ""
 
 #~ msgid "running"
 #~ msgstr "работает"
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:142
+msgid "Scan Buffer Size"
+msgstr ""
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:143
+msgid "Buffer size in bytes to prepare nearby scan results."
+msgstr ""
index aa9e395332c6fe32964c5eeefee905da9c33f56b..766e55473efecbca1847d5bdc31459ed8377449c 100644 (file)
@@ -539,3 +539,11 @@ msgstr ""
 #: applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm:197
 msgid "with SSID"
 msgstr ""
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:142
+msgid "Scan Buffer Size"
+msgstr ""
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:143
+msgid "Buffer size in bytes to prepare nearby scan results."
+msgstr ""
index 1ac234c498bdc6c570509e081dc350d6a39eff30..299c9d95c95e526667be62a59a908f13c168bb67 100644 (file)
@@ -557,3 +557,11 @@ msgstr "隐藏"
 #: applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm:197
 msgid "with SSID"
 msgstr "带 SSID"
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:142
+msgid "Scan Buffer Size"
+msgstr ""
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:143
+msgid "Buffer size in bytes to prepare nearby scan results."
+msgstr ""
index 3b1d697e5c1f0b384af8dfd695ce8aa62074e2c7..0a8cb15f7c095ea13c5351a2e7f05c1cd2f174e1 100644 (file)
@@ -558,3 +558,11 @@ msgstr "隱藏"
 #: applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm:197
 msgid "with SSID"
 msgstr "帶 SSID"
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:142
+msgid "Scan Buffer Size"
+msgstr ""
+
+#: applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua:143
+msgid "Buffer size in bytes to prepare nearby scan results."
+msgstr ""