From 9b39654d9e148f6c7546ff347e8d4b242570be32 Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Mon, 23 May 2016 15:55:13 +0200 Subject: [PATCH] log.dat: Added 'squid' and 'snort' plus translations Added 'squid' and 'snort' to section dropdown in LOGS / SYSTEM LOGS, added translations. Added translation string for 'web proxy' in '30-network.menu'. Signed-off-by: Matthias Fischer Signed-off-by: Michael Tremer --- config/menu/30-network.menu | 4 ++-- html/cgi-bin/logs.cgi/log.dat | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/menu/30-network.menu b/config/menu/30-network.menu index c50508f818..8e1336a3b6 100644 --- a/config/menu/30-network.menu +++ b/config/menu/30-network.menu @@ -3,9 +3,9 @@ 'title' => "$Lang::tr{'net config'}", 'enabled' => 0, }; - $subnetwork->{'20.proxy'} = {'caption' => 'Webproxy', + $subnetwork->{'20.proxy'} = {'caption' => "$Lang::tr{'web proxy'}", 'uri' => '/cgi-bin/proxy.cgi', - 'title' => "Webproxy", + 'title' => "$Lang::tr{'web proxy'}", 'enabled' => 1, }; $subnetwork->{'21.urlfilter'} = {'caption' => $Lang::tr{'url filter'}, diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat index 9f4d714593..8c3c37dcc4 100644 --- a/html/cgi-bin/logs.cgi/log.dat +++ b/html/cgi-bin/logs.cgi/log.dat @@ -65,7 +65,9 @@ my %sections = ( 'ipsec' => '(ipsec_[\w_]+: |pluto\[.*\]: |charon: |vpnwatch: )', 'openvpn' => '(openvpnserver\[.*\]: |.*n2n\[.*\]: )', 'pakfire' => '(pakfire:) ', - 'wireless' => '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:) ' + 'wireless' => '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:) ', + 'squid' => '(squid\[.*\]: |squid: )', + 'snort' => '(snort\[.*\]: )' ); # Translations for the %sections array. @@ -86,7 +88,9 @@ my %trsections = ( 'ipsec' => 'IPSec', 'openvpn' => 'OpenVPN', 'pakfire' => 'Pakfire', - 'wireless' => 'Wireless' + 'wireless' => 'Wireless', + 'squid' => "$Lang::tr{'web proxy'}", + 'snort' => "$Lang::tr{'intrusion detection'}" ); -- 2.39.2