Compare commits

...

3 Commits

Author SHA1 Message Date
NewUse
ad0c96e423
add translation 2024-09-27 18:39:47 +03:00
NewUse
3a0d87cabc
Update Makefile
changed packet version
2024-09-27 17:33:31 +03:00
NewUse
1b07047f63
Update zapret-tpws.lua
fixed validation function
2024-09-27 17:30:11 +03:00
5 changed files with 125 additions and 3 deletions

View File

@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_LICENSE:=GPL-2.0-or-later
PKG_MAINTAINER:=Zapret
PKG_VERSION:=0.1.7
PKG_VERSION:=0.2
LUCI_TITLE:=Zapret TPWS Web UI
LUCI_DESCRIPTION:=Provides Web UI for Zapret tpws transparent proxy

View File

@ -8,8 +8,8 @@ function opt.validate(self, value)
table.insert(words, word)
end
for _, word in ipairs(words) do
if not word:sub(1, 2) == "--" then
return nil
if word:sub(1, 2) ~= "--" then
return nil, translate("The field value \"TPWS Options\" has incorrect format")
end
end
return value

View File

@ -0,0 +1,44 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"
#: luasrc/model/cbi/zapret-tpws.lua:17
msgid "Block QUIC protocol to come outside"
msgstr "Block QUIC protocol to come outside"
#: luasrc/model/cbi/zapret-tpws.lua:2
msgid "Configuration"
msgstr "Configuration"
#: luasrc/model/cbi/zapret-tpws.lua:18
msgid "Listen Port"
msgstr "Listen Port"
#: luasrc/model/cbi/zapret-tpws.lua:21
msgid "Ports, forwarded to proxy"
msgstr "Ports, forwarded to proxy"
#: luasrc/controller/zapret-tpws.lua:4
msgid "TPWS Configuration"
msgstr "TPWS Configuration"
#: luasrc/model/cbi/zapret-tpws.lua:3
msgid "TPWS Options"
msgstr "TPWS Options"
#: luasrc/model/cbi/zapret-tpws.lua:1
msgid "TPWS Proxy Settings"
msgstr "TPWS Proxy Settings"
#: luasrc/model/cbi/zapret-tpws.lua:12
msgid "The field value \"TPWS Options\" has incorrect format"
msgstr "The field value \"TPWS Options\" has incorrect format"

View File

@ -0,0 +1,44 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"
#: luasrc/model/cbi/zapret-tpws.lua:17
msgid "Block QUIC protocol to come outside"
msgstr "Заблокировать прохождение протокола QUIC"
#: luasrc/model/cbi/zapret-tpws.lua:2
msgid "Configuration"
msgstr "Конфигурация"
#: luasrc/model/cbi/zapret-tpws.lua:18
msgid "Listen Port"
msgstr "Порт"
#: luasrc/model/cbi/zapret-tpws.lua:21
msgid "Ports, forwarded to proxy"
msgstr "Перенаправляемые порты"
#: luasrc/controller/zapret-tpws.lua:4
msgid "TPWS Configuration"
msgstr "Конфигурация TPWS"
#: luasrc/model/cbi/zapret-tpws.lua:3
msgid "TPWS Options"
msgstr "Опции TPWS"
#: luasrc/model/cbi/zapret-tpws.lua:1
msgid "TPWS Proxy Settings"
msgstr "Настройки прокси-сервера TPWS"
#: luasrc/model/cbi/zapret-tpws.lua:12
msgid "The field value \"TPWS Options\" has incorrect format"
msgstr "Значение поля \"Опции TPWS\" не соответствует формату"

View File

@ -0,0 +1,34 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: luasrc/model/cbi/zapret-tpws.lua:17
msgid "Block QUIC protocol to come outside"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:2
msgid "Configuration"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:18
msgid "Listen Port"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:21
msgid "Ports, forwarded to proxy"
msgstr ""
#: luasrc/controller/zapret-tpws.lua:4
msgid "TPWS Configuration"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:3
msgid "TPWS Options"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:1
msgid "TPWS Proxy Settings"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:12
msgid "The field value \"TPWS Options\" has incorrect format"
msgstr ""