graphs.pl: Standardize localization strings for entropy graphs

Message ID 20200822220117.1613-1-matthias.fischer@ipfire.org
State Accepted
Commit 2bba65094799e87b2e04c543edd1b0dbd16d8578
Headers
Series graphs.pl: Standardize localization strings for entropy graphs |

Commit Message

Matthias Fischer Aug. 22, 2020, 10:01 p.m. UTC
  Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 config/cfgroot/graphs.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Michael Tremer Aug. 24, 2020, 2:08 p.m. UTC | #1
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>

> On 22 Aug 2020, at 23:01, Matthias Fischer <matthias.fischer@ipfire.org> wrote:
> 
> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
> ---
> config/cfgroot/graphs.pl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/config/cfgroot/graphs.pl b/config/cfgroot/graphs.pl
> index de306710e..9b310d458 100644
> --- a/config/cfgroot/graphs.pl
> +++ b/config/cfgroot/graphs.pl
> @@ -1142,7 +1142,7 @@ sub updateentropygraph {
> 		"-1".$period,
> 		"-r",
> 		"--lower-limit","0",
> -		"-t $Lang::tr{'entropy'}",
> +		"-t ".$Lang::tr{'entropy'}." ".$Lang::tr{'graph per'}." ".$Lang::tr{$period."-graph"},
> 		"-v $Lang::tr{'bit'}",
> 		"DEF:entropy=$mainsettings{'RRDLOG'}/collectd/localhost/entropy/entropy.rrd:entropy:AVERAGE",
> 		"LINE3:entropy#ff0000:" . sprintf("%-15s", $Lang::tr{'entropy'}),
> -- 
> 2.17.1
>
  

Patch

diff --git a/config/cfgroot/graphs.pl b/config/cfgroot/graphs.pl
index de306710e..9b310d458 100644
--- a/config/cfgroot/graphs.pl
+++ b/config/cfgroot/graphs.pl
@@ -1142,7 +1142,7 @@  sub updateentropygraph {
 		"-1".$period,
 		"-r",
 		"--lower-limit","0",
-		"-t $Lang::tr{'entropy'}",
+		"-t ".$Lang::tr{'entropy'}." ".$Lang::tr{'graph per'}." ".$Lang::tr{$period."-graph"},
 		"-v $Lang::tr{'bit'}",
 		"DEF:entropy=$mainsettings{'RRDLOG'}/collectd/localhost/entropy/entropy.rrd:entropy:AVERAGE",
 		"LINE3:entropy#ff0000:" . sprintf("%-15s", $Lang::tr{'entropy'}),