luci-app-pbr: additional error messages
authorStan Grishin <[email protected]>
Tue, 3 Jan 2023 19:56:08 +0000 (19:56 +0000)
committerStan Grishin <[email protected]>
Tue, 3 Jan 2023 19:56:08 +0000 (19:56 +0000)
Signed-off-by: Stan Grishin <[email protected]>
applications/luci-app-pbr/Makefile
applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js
applications/luci-app-pbr/po/templates/pbr.pot

index 9369bae9a97959717abf8ad25b81553565257778..1d7eeeddab9ed30db6cced7644cf4b9131e17242 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Stan Grishin <[email protected]>
-PKG_VERSION:=1.0.1-1
+PKG_VERSION:=1.0.1-10
 
 LUCI_TITLE:=Policy Based Routing Service Web UI
 LUCI_DESCRIPTION:=Provides Web UI for Policy Based Routing Service.
index fbe8696c2815b722c3467ba03edbddee372e9f46..dcb3c3ec509978c2fe11534fa89499f318763f91 100644 (file)
@@ -231,6 +231,8 @@ var status = baseclass.extend({
                                        errorPolicyProcessUnknownProtocol: _("Unknown protocol in policy %s"),
                                        errorPolicyProcessInsertionFailed: _("Insertion failed for both IPv4 and IPv6 for policy %s"),
                                        errorPolicyProcessInsertionFailedIpv4: _("Insertion failed for IPv4 for policy %s"),
+                                       errorInterfaceRoutingEmptyValues: _("Received empty tid/mark or interface name when setting up routing"),
+                                       errorFailedToResolve: _("Failed to resolve %s"),
                                };
                                var errorsTitle = E('label', { class: 'cbi-value-title' }, _("Service Errors"));
                                var text = "";
index 3f6f4e771b9193e8e45780e7dbeae2abe1003948..f8959174e81755089a94edcb23f558abab0472c8 100644 (file)
@@ -95,7 +95,7 @@ msgstr ""
 msgid "Default ICMP Interface"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:308
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:310
 msgid "Disable"
 msgstr ""
 
@@ -105,7 +105,7 @@ msgstr ""
 msgid "Disabled"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:304
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:306
 msgid "Disabling %s service"
 msgstr ""
 
@@ -127,7 +127,7 @@ msgstr ""
 msgid "Do not enforce policies when their gateway is down"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:297
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:299
 msgid "Enable"
 msgstr ""
 
@@ -138,7 +138,7 @@ msgstr ""
 msgid "Enabled"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:293
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:295
 msgid "Enabling %s service"
 msgstr ""
 
@@ -156,6 +156,10 @@ msgstr ""
 msgid "Failed to reload '%s'!"
 msgstr ""
 
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:235
+msgid "Failed to resolve %s"
+msgstr ""
+
 #: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:220
 msgid "Failed to set up '%s'!"
 msgstr ""
@@ -292,6 +296,10 @@ msgstr ""
 msgid "Protocol"
 msgstr ""
 
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:234
+msgid "Received empty tid/mark or interface name when setting up routing"
+msgstr ""
+
 #: applications/luci-app-pbr/htdocs/luci-static/resources/view/pbr/overview.js:206
 msgid "Remote addresses / domains"
 msgstr ""
@@ -322,11 +330,11 @@ msgid ""
 "Resolver set support (%s) requires nftables, but nft binary cannot be found!"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:275
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:277
 msgid "Restart"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:271
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:273
 msgid "Restarting %s service"
 msgstr ""
 
@@ -360,11 +368,11 @@ msgstr ""
 msgid "Select Add for -A/add and Insert for -I/Insert."
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:332
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:334
 msgid "Service Control"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:235
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:237
 msgid "Service Errors"
 msgstr ""
 
@@ -395,11 +403,11 @@ msgstr ""
 msgid "Skipping IPv6 policy '%s' as IPv6 support is disabled"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:264
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:266
 msgid "Start"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:260
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:262
 msgid "Starting %s service"
 msgstr ""
 
@@ -413,7 +421,7 @@ msgstr ""
 msgid "Starting (WAN) Table ID number for tables created by the service."
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:286
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:288
 msgid "Stop"
 msgstr ""
 
@@ -425,7 +433,7 @@ msgstr ""
 msgid "Stopped (version: %s)"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:282
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:284
 msgid "Stopping %s service"
 msgstr ""
 
@@ -489,7 +497,7 @@ msgstr ""
 msgid "Unexpected exit or service termination: '%s'!"
 msgstr ""
 
-#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:244
+#: applications/luci-app-pbr/htdocs/luci-static/resources/pbr/status.js:246
 msgid "Unknown Error!"
 msgstr ""