mbox

log.dat: Added entry for 'guardian'

Message ID 20160719181711.3096-1-matthias.fischer@ipfire.org
State Accepted
Headers

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

Michael Tremer July 21, 2016, 1:31 a.m. UTC | #1
@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'
>  	);
>  
>
  
Stefan Schantl July 29, 2016, 3:49 a.m. UTC | #2
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'
>  	);
>  
>