luci-app-vpnbypass: cbi file fix for README and an unneeded section 1012/head
authorStan Grishin <stangri@melmac.net>
Wed, 15 Feb 2017 01:19:11 +0000 (17:19 -0800)
committerStan Grishin <stangri@melmac.net>
Wed, 15 Feb 2017 01:19:11 +0000 (17:19 -0800)
Signed-off-by: Stan Grishin <stangri@melmac.net>
applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua
applications/luci-app-vpnbypass/po/templates/vpnbypass.pot

index 2d500b96868a305ad4e1eb23f6ed230dc56cf317..6ed52ddba518662c2df0429c48a08f8c493fe44d 100644 (file)
@@ -27,13 +27,12 @@ r2.addremove = true
 r2.optional = true
 
 -- Domains
-d1 = s:option(DynamicList, "domain", translate("Domains to Bypass"), translate("Domains which will be accessed directly (outside of the VPN tunnel)"))
-d1.addremove = true
-d1.optional = true
-
 d = Map("dhcp")
 s4 = d:section(TypedSection, "dnsmasq")
 s4.anonymous = true
-di = s4:option(DynamicList, "ipset", translate("Domains to Bypass"), translate("Domains to be accessed directly (outside of the VPN tunnel), see <a href='https://github.com/openwrt/packages/tree/master/net/vpnbypass/files#bypass-domains-formatsyntax'>README</a> for syntax"))
+di = s4:option(DynamicList, "ipset", translate("Domains to Bypass"),
+    translate("Domains to be accessed directly (outside of the VPN tunnel), see ")
+    .. [[<a href="https://github.com/openwrt/packages/tree/master/net/vpnbypass/files#bypass-domains-formatsyntax" target="_blank">]]
+    .. translate("README") .. [[</a>]] .. translate(" for syntax"))
 
 return m, d
index 9463bc010c480cb530522f8c53a453bd11d31445..144adedc467022b0762b9cb958238c3b81742ee2 100644 (file)
@@ -4,13 +4,7 @@ msgstr "Content-Type: text/plain; charset=UTF-8"
 msgid "Domains to Bypass"
 msgstr ""
 
-msgid ""
-"Domains to be accessed directly (outside of the VPN tunnel), see <a "
-"href='https://github.com/openwrt/packages/tree/master/net/vpnbypass/"
-"files#bypass-domains-formatsyntax'>README</a> for syntax"
-msgstr ""
-
-msgid "Domains which will be accessed directly (outside of the VPN tunnel)"
+msgid "Domains to be accessed directly (outside of the VPN tunnel), see"
 msgstr ""
 
 msgid "Enable VPN Bypass"
@@ -28,6 +22,9 @@ msgstr ""
 msgid "Local ports to trigger VPN Bypass"
 msgstr ""
 
+msgid "README"
+msgstr ""
+
 msgid "Remote IP Subnets to Bypass"
 msgstr ""
 
@@ -46,3 +43,6 @@ msgstr ""
 
 msgid "VPN Bypass Settings"
 msgstr ""
+
+msgid "for syntax"
+msgstr ""