diff options
Diffstat (limited to 'applications/luci-app-firewall')
7 files changed, 29 insertions, 26 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js index 3c1bbaaa2a..015b8b7681 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js @@ -9,7 +9,7 @@ 'require tools.widgets as widgets'; function rule_proto_txt(s) { - var family = (uci.get('firewall', s, 'family') || '').toLowerCase().replace(/^(?:any|\*)$/, ''); + var family = (uci.get('firewall', s, 'family') || '').toLowerCase().replace(/^(?:all|\*)$/, 'any'); var sip = uci.get('firewall', s, 'src_ip') || ''; var dip = uci.get('firewall', s, 'dest_ip') || ''; var rwip = uci.get('firewall', s, 'snat_ip') || ''; @@ -125,7 +125,7 @@ function validate_opt_family(m, section_id, opt) { return true; if (fm == 'ipv4' && (sip.indexOf(':') == -1) && (dip.indexOf(':') == -1) && ((rwip.indexOf(':') == -1 && tg == 'SNAT') || rwip == '')) return true; - if (fm == '') { + if (fm == '' || fm == 'any') { if ((sip.indexOf(':') != -1 || sip == '') && (dip.indexOf(':') != -1 || dip == '') && ((rwip.indexOf(':') != -1 && tg == 'SNAT') || rwip == '')) return true; if ((sip.indexOf(':') == -1) && (dip.indexOf(':') == -1) && ((rwip.indexOf(':') == -1 && tg == 'SNAT') || rwip == '')) @@ -215,14 +215,17 @@ return view.extend({ o = s.taboption('general', form.ListValue, 'family', _('Restrict to address family')); o.modalonly = true; o.rmempty = true; + o.value('any', _('IPv4 and IPv6')); o.value('ipv4', _('IPv4 only')); o.value('ipv6', _('IPv6 only')); o.value('', _('automatic')); // infer from zone or used IP addresses o.cfgvalue = function(section_id) { var val = this.map.data.get(this.map.config, section_id, 'family'); - if (!val || val == 'any' || val == 'all' || val == '*') + if (!val) return ''; + else if (val == 'any' || val == 'all' || val == '*') + return 'any'; else if (val == 'inet' || String(val).indexOf('4') != -1) return 'ipv4'; else if (String(val).indexOf('6') != -1) diff --git a/applications/luci-app-firewall/po/ca/firewall.po b/applications/luci-app-firewall/po/ca/firewall.po index cf262c742a..42e27ea750 100644 --- a/applications/luci-app-firewall/po/ca/firewall.po +++ b/applications/luci-app-firewall/po/ca/firewall.po @@ -5,8 +5,8 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2010-03-30 17:00+0200\n" -"PO-Revision-Date: 2023-03-03 19:40+0000\n" -"Last-Translator: Roger Pueyo Centelles <weblate@rogerpueyo.com>\n" +"PO-Revision-Date: 2024-03-18 11:11+0000\n" +"Last-Translator: \"S. Barj.\" <sbarjola@proton.me>\n" "Language-Team: Catalan <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsfirewall/ca/>\n" "Language: ca\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.16.2-dev\n" +"X-Generator: Weblate 5.5-dev\n" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js:48 msgid "" @@ -510,7 +510,7 @@ msgstr "Només IPv4" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:68 msgid "IPv6" -msgstr "" +msgstr "IPv6" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js:236 msgid "IPv6 Masquerading" diff --git a/applications/luci-app-firewall/po/ja/firewall.po b/applications/luci-app-firewall/po/ja/firewall.po index 05ff6fd5cf..a6ba0d5f1d 100644 --- a/applications/luci-app-firewall/po/ja/firewall.po +++ b/applications/luci-app-firewall/po/ja/firewall.po @@ -3,8 +3,8 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2010-03-30 17:00+0200\n" -"PO-Revision-Date: 2021-02-06 08:29+0000\n" -"Last-Translator: Satoru Yoshida <ramat@ram.ne.jp>\n" +"PO-Revision-Date: 2024-03-28 23:40+0000\n" +"Last-Translator: Ioroi Kouhei <kouhei@ioroi.org>\n" "Language-Team: Japanese <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsfirewall/ja/>\n" "Language: ja\n" @@ -12,7 +12,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 4.5-dev\n" +"X-Generator: Weblate 5.5-dev\n" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js:48 msgid "" @@ -54,7 +54,7 @@ msgstr "-- MAC を追加 --" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:198 msgid "0" -msgstr "" +msgstr "0" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:181 msgid "1024" diff --git a/applications/luci-app-firewall/po/lt/firewall.po b/applications/luci-app-firewall/po/lt/firewall.po index 131b010b88..a72f98413a 100644 --- a/applications/luci-app-firewall/po/lt/firewall.po +++ b/applications/luci-app-firewall/po/lt/firewall.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"PO-Revision-Date: 2024-02-06 18:06+0000\n" +"PO-Revision-Date: 2024-03-20 03:44+0000\n" "Last-Translator: Džiugas J <dziugas1959@hotmail.com>\n" "Language-Team: Lithuanian <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsfirewall/lt/>\n" @@ -11,7 +11,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (" "n%100<10 || n%100>=20) ? 1 : 2);\n" -"X-Generator: Weblate 5.4-dev\n" +"X-Generator: Weblate 5.5-dev\n" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js:48 msgid "" @@ -377,7 +377,7 @@ msgstr "" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:210 msgid "Enabled" -msgstr "Įjungta/Įgalinta" +msgstr "Įjungta/Įgalinta (-as)" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:204 msgid "Enables packet and byte count tracking for the set." @@ -772,7 +772,7 @@ msgid "" "on this host" msgstr "" "Atitikti įeinantį srautą, nukreiptą į nurodytą paskirties prievadą arba " -"prievadų diapazoną ant šito vedėjo" +"prievadų diapazoną ant šito skleidėjo/p.k – vedėjo" #: applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js:316 msgid "Match mark" @@ -842,7 +842,7 @@ msgstr "" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js:188 #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js:123 msgid "Name" -msgstr "Pavadinimas" +msgstr "Vardas/Pavadinimas" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:165 msgid "Netmask" diff --git a/applications/luci-app-firewall/po/tr/firewall.po b/applications/luci-app-firewall/po/tr/firewall.po index edbb905be0..4bb09462ff 100644 --- a/applications/luci-app-firewall/po/tr/firewall.po +++ b/applications/luci-app-firewall/po/tr/firewall.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"PO-Revision-Date: 2023-10-29 19:41+0000\n" -"Last-Translator: semih <semiht@gmail.com>\n" +"PO-Revision-Date: 2024-03-31 19:53+0000\n" +"Last-Translator: Oğuz Han <h4n.3545@gmail.com>\n" "Language-Team: Turkish <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsfirewall/tr/>\n" "Language: tr\n" @@ -10,7 +10,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 5.2-dev\n" +"X-Generator: Weblate 5.5-dev\n" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js:48 msgid "" @@ -376,7 +376,7 @@ msgstr "" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:210 msgid "Enabled" -msgstr "Etkinleştirilmiş" +msgstr "Etkinleştirildi" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:204 msgid "Enables packet and byte count tracking for the set." @@ -657,7 +657,7 @@ msgstr "İç bölge" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js:147 msgid "Intra zone forward" -msgstr "" +msgstr "Bölge içi ileri" #: applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js:305 msgid "Invalid DSCP mark" diff --git a/applications/luci-app-firewall/po/uk/firewall.po b/applications/luci-app-firewall/po/uk/firewall.po index b79310cc96..0c29c2f570 100644 --- a/applications/luci-app-firewall/po/uk/firewall.po +++ b/applications/luci-app-firewall/po/uk/firewall.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"PO-Revision-Date: 2024-02-24 11:11+0000\n" -"Last-Translator: Костянтин Серьогін <seryoginki@gmail.com>\n" +"PO-Revision-Date: 2024-04-01 18:18+0000\n" +"Last-Translator: Ievgen Ievgen <jony057dev@gmail.com>\n" "Language-Team: Ukrainian <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsfirewall/uk/>\n" "Language: uk\n" @@ -379,7 +379,7 @@ msgstr "" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:210 msgid "Enabled" -msgstr "" +msgstr "Увімкнено" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js:204 msgid "Enables packet and byte count tracking for the set." diff --git a/applications/luci-app-firewall/po/zh_Hans/firewall.po b/applications/luci-app-firewall/po/zh_Hans/firewall.po index 767afa2ff4..7374271724 100644 --- a/applications/luci-app-firewall/po/zh_Hans/firewall.po +++ b/applications/luci-app-firewall/po/zh_Hans/firewall.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"PO-Revision-Date: 2024-02-24 04:43+0000\n" +"PO-Revision-Date: 2024-03-15 13:53+0000\n" "Last-Translator: try496 <pinghejk@gmail.com>\n" "Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/" "openwrt/luciapplicationsfirewall/zh_Hans/>\n" @@ -629,7 +629,7 @@ msgstr "内部区域" #: applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js:147 msgid "Intra zone forward" -msgstr "Intra zone 转发" +msgstr "区域内转发" #: applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js:305 msgid "Invalid DSCP mark" |