wireguard.cgi: Fix translation variable

Message ID 20261109180854.86188-1-matthias.fischer@ipfire.org
State New
Headers
Series wireguard.cgi: Fix translation variable |

Commit Message

Matthias Fischer 9 Nov 2026, 6:08 p.m. UTC
This one just came my way - but with this new translation routine,
I'm not quite sure what to do next...

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 html/cgi-bin/wireguard.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/html/cgi-bin/wireguard.cgi b/html/cgi-bin/wireguard.cgi
index 0ffd6bd94..a6f1300d0 100644
--- a/html/cgi-bin/wireguard.cgi
+++ b/html/cgi-bin/wireguard.cgi
@@ -440,7 +440,7 @@  END
 
 	# If a port was given we check that it is valid
 	} elsif (!&Network::check_port($cgiparams{'PORT'})) {
-		push(@errormessages, $LANG::tr{'invalid port'});
+		push(@errormessages, _('Invalid Port'));
 	}
 
 	# Check the endpoint address