log.dat: Added entry for 'guardian'
Message ID | 20160719181711.3096-1-matthias.fischer@ipfire.org |
---|---|
State | Accepted |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (hedwig.ipfire.org [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id A7CC861DF4 for <patchwork@ipfire.org>; Tue, 19 Jul 2016 20:17:43 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 351EE1D0E; Tue, 19 Jul 2016 20:17:21 +0200 (CEST) Received: from Devel.localdomain (p57905EB1.dip0.t-ipconnect.de [87.144.94.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 173AC178C for <development@lists.ipfire.org>; Tue, 19 Jul 2016 20:17:19 +0200 (CEST) From: Matthias Fischer <matthias.fischer@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] log.dat: Added entry for 'guardian' Date: Tue, 19 Jul 2016 20:17:11 +0200 Message-Id: <20160719181711.3096-1-matthias.fischer@ipfire.org> X-Mailer: git-send-email 2.9.2 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Matthias Fischer
July 20, 2016, 4:17 a.m. UTC
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
html/cgi-bin/logs.cgi/log.dat | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Comments
@Stevee: Could you merge this into your guardian branch? On Tue, 2016-07-19 at 20:17 +0200, Matthias Fischer wrote: > Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> > --- > html/cgi-bin/logs.cgi/log.dat | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat > index a8a7ba4..cf7d32d 100644 > --- a/html/cgi-bin/logs.cgi/log.dat > +++ b/html/cgi-bin/logs.cgi/log.dat > @@ -67,7 +67,8 @@ my %sections = ( > 'pakfire' => '(pakfire:) ', > 'wireless' => '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:) ', > 'squid' => '(squid\[.*\]: |squid: )', > - 'snort' => '(snort\[.*\]: )' > + 'snort' => '(snort\[.*\]: )', > + 'guardian' => '(guardian\[.*\]: )' > ); > > # Translations for the %sections array. > @@ -90,7 +91,8 @@ my %trsections = ( > 'pakfire' => 'Pakfire', > 'wireless' => 'Wireless', > 'squid' => "$Lang::tr{'web proxy'}", > - 'snort' => "$Lang::tr{'intrusion detection'}" > + 'snort' => "$Lang::tr{'intrusion detection'}", > + 'guardian' => 'Guardian' > ); > >
Thanks for sending this patch. Adjusted the entry on the translations section for using the translated string from the selected language file instead of an hardcoded string. Best regards, -Stefan > Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> > --- > html/cgi-bin/logs.cgi/log.dat | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi- > bin/logs.cgi/log.dat > index a8a7ba4..cf7d32d 100644 > --- a/html/cgi-bin/logs.cgi/log.dat > +++ b/html/cgi-bin/logs.cgi/log.dat > @@ -67,7 +67,8 @@ my %sections = ( > 'pakfire' => '(pakfire:) ', > 'wireless' => '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:) > ', > 'squid' => '(squid\[.*\]: |squid: )', > - 'snort' => '(snort\[.*\]: )' > + 'snort' => '(snort\[.*\]: )', > + 'guardian' => '(guardian\[.*\]: )' > ); > > # Translations for the %sections array. > @@ -90,7 +91,8 @@ my %trsections = ( > 'pakfire' => 'Pakfire', > 'wireless' => 'Wireless', > 'squid' => "$Lang::tr{'web proxy'}", > - 'snort' => "$Lang::tr{'intrusion detection'}" > + 'snort' => "$Lang::tr{'intrusion detection'}", > + 'guardian' => 'Guardian' > ); > >