From ceef0d9f9410d3c5a14614c3f7c12894455a259b Mon Sep 17 00:00:00 2001 From: sbwml Date: Sun, 13 Oct 2024 21:33:51 +0800 Subject: [PATCH] luci-app-upnp: support force_forwarding flag Signed-off-by: sbwml --- htdocs/luci-static/resources/view/upnp/upnp.js | 3 +++ po/en/upnp.po | 8 ++++++++ po/templates/upnp.pot | 8 ++++++++ po/zh_Hans/upnp.po | 8 ++++++++ po/zh_Hant/upnp.po | 8 ++++++++ 5 files changed, 35 insertions(+) diff --git a/htdocs/luci-static/resources/view/upnp/upnp.js b/htdocs/luci-static/resources/view/upnp/upnp.js index b457951..1053163 100644 --- a/htdocs/luci-static/resources/view/upnp/upnp.js +++ b/htdocs/luci-static/resources/view/upnp/upnp.js @@ -178,6 +178,9 @@ return view.extend({ o.datatype = 'port' o.placeholder = '0-65535' + s.taboption('advanced', form.Flag, 'force_forwarding', _('Force Forwarding'), + _('Force forwarding even there is no public IP (please try STUN first)')) + s = m.section(form.GridSection, 'perm_rule', _('Service ACLs'), _('ACLs specify which external ports can be forwarded to which client addresses and ports, IPv6 always allowed.')) diff --git a/po/en/upnp.po b/po/en/upnp.po index 41e2980..d8f54f0 100644 --- a/po/en/upnp.po +++ b/po/en/upnp.po @@ -226,3 +226,11 @@ msgstr "" #: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:140 msgid "Value in KByte/s, informational only" msgstr "" + +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:181 +msgid "Force Forwarding" +msgstr "" + +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:182 +msgid "Force forwarding even there is no public IP (please try STUN first)" +msgstr "" diff --git a/po/templates/upnp.pot b/po/templates/upnp.pot index be49dae..e40ca5b 100644 --- a/po/templates/upnp.pot +++ b/po/templates/upnp.pot @@ -213,3 +213,11 @@ msgstr "" #: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:140 msgid "Value in KByte/s, informational only" msgstr "" + +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:181 +msgid "Force Forwarding" +msgstr "" + +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:182 +msgid "Force forwarding even there is no public IP (please try STUN first)" +msgstr "" diff --git a/po/zh_Hans/upnp.po b/po/zh_Hans/upnp.po index 663b2da..9daf6b0 100644 --- a/po/zh_Hans/upnp.po +++ b/po/zh_Hans/upnp.po @@ -231,3 +231,11 @@ msgstr "使用 STUN" #: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:140 msgid "Value in KByte/s, informational only" msgstr "单位为 KByte/s,仅供参考" + +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:181 +msgid "Force Forwarding" +msgstr "强制转发" + +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:182 +msgid "Force forwarding even there is no public IP (please try STUN first)" +msgstr "即使没有公网 IP 也进行转发(请先尝试 STUN)" diff --git a/po/zh_Hant/upnp.po b/po/zh_Hant/upnp.po index 56d5172..cb7952b 100644 --- a/po/zh_Hant/upnp.po +++ b/po/zh_Hant/upnp.po @@ -230,3 +230,11 @@ msgstr "使用 STUN" #: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:140 msgid "Value in KByte/s, informational only" msgstr "值 (KByte/s) 僅供參考" + +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:181 +msgid "Force Forwarding" +msgstr "強制轉發" + +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:182 +msgid "Force forwarding even there is no public IP (please try STUN first)" +msgstr "即使沒有公網 IP 也進行轉發(請先嘗試 STUN)"