From 4f566ce903b5558ce01d2b8e0a407887d2959b1d Mon Sep 17 00:00:00 2001
From: Self-Hosting-Group
<155233284+Self-Hosting-Group@users.noreply.github.com>
Date: Mon, 30 Dec 2024 00:00:00 +0000
Subject: [PATCH] UPnP IGD: Improve wording and UI
Close #452
---
src/router/kromo/dd-wrt/UPnP.asp | 14 +++++------
src/router/kromo/dd-wrt/lang_pack/english.js | 26 ++++++++++----------
2 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/src/router/kromo/dd-wrt/UPnP.asp b/src/router/kromo/dd-wrt/UPnP.asp
index 5fe06b808b56..93f036141c3b 100644
--- a/src/router/kromo/dd-wrt/UPnP.asp
+++ b/src/router/kromo/dd-wrt/UPnP.asp
@@ -67,7 +67,7 @@ function setUPnPTable(forwards) {
//proto
var cell = row.insertCell(-1);
cell.innerHTML = data[i].proto;
- cell.align = "center";
+ cell.align = "left";
row.style.height = "15px";
row.className = (data[i].enabled ? '' : 'disabled');
@@ -84,7 +84,7 @@ function setUPnPTable(forwards) {
function deleteForward(x) {
if (x != 'all') {
var e = data[x];
- if (!confirm(share.del + " " + e.desc + "? [" + e.wanPorts + "->" + e.lanPorts + " " + e.lanIP + " " + e.proto + "]")) return;
+ if (!confirm(share.del + " " + e.lanIP + ":" + e.lanPorts + "/" + e.proto + " (" + e.desc + ")?")) return;
}
else {
if (!confirm(upnp.msg2)) return;
@@ -152,11 +152,11 @@ addEvent(window, "unload", function() {
- <% tran("share.ip"); %> |
- <% tran("share.from2"); %> (WAN) |
- <% tran("share.to2"); %> (LAN) |
- <% tran("share.proto"); %> |
- <% tran("share.descr"); %> |
+ <% tran("share.ip"); %> |
+ <% tran("pforward.from"); %> |
+ <% tran("pforward.to"); %> |
+ <% tran("share.proto"); %> |
+ <% tran("share.descr"); %> |
<% tran("share.del"); %> |
diff --git a/src/router/kromo/dd-wrt/lang_pack/english.js b/src/router/kromo/dd-wrt/lang_pack/english.js
index 819a4015290d..f68c4d93e368 100644
--- a/src/router/kromo/dd-wrt/lang_pack/english.js
+++ b/src/router/kromo/dd-wrt/lang_pack/english.js
@@ -523,7 +523,7 @@ bmenu.applicationsprforwarding="Port Range Forwarding";
bmenu.applicationspforwarding="Port Forwarding";
bmenu.applicationsipforwarding="IP Forwarding (1:1 NAT)";
bmenu.applicationsptriggering="Port Triggering";
-bmenu.applicationsUpnp="UPnP";
+bmenu.applicationsUpnp="UPnP IGD";
bmenu.applicationsDMZ="DMZ";
bmenu.applicationsQoS="QoS";
bmenu.applicationsP2P="P2P";
@@ -2574,24 +2574,24 @@ hupgrad.page1="New firmware versions are posted at Click the " + sbutton.delall + " button to remove all entries.";
-hupnp.right4="Allows applications to automatically configure port forwarding.";
+hupnp.right2="List of ports opened by clients.";
+hupnp.right4='Allows clients to autonomously configure port forwards using the UPnP IGD protocol.';
//help page
-hupnp.page1="Also known as UPnP it is a set of network protocols used for the automatic configuration of devices. The goals of UPnP are to allow devices to connect seamlessly and to simplify the implementation of home or corporate environment networks. UPnP achieves this by defining and publishing device control protocols built upon open, Internet-based communication standards.";
-hupnp.page2="The UPnP forwards table shows all open ports forwarded automatically by the UPnP process. You can delete forwards by clicking remove icon or the " + sbutton.delall + " button to clear the undesired entries.";
-hupnp.page3="Allows applications to automatically setup port forwarding rules.";
+hupnp.page1='The UPnP IGD protocol allow clients on the local network to configure port forwards on the router autonomously.';
+hupnp.page2="List of ports opened by clients.";
+hupnp.page3="Allows clients to autonomously configure port forwards.";
hupnp.page4="If enabled, all UPnP port forwarding rules are deleted when the router starts up.";
hupnp.page5="If enabled, a presentation URL tag is sent with the device description. This allows the router to show up in Windows's My Network Places.
div class=\"note\">Note:
When enabling this option you may need to reboot your computer.
Click the " + sbutton.save + " button to save your settings. Click the " + sbutton.cancel + " button to cancel your unsaved changes.";