From 003fb6f60892cdecea9a094ee891a4ccddbc9987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Sat, 11 Apr 2020 11:02:26 +0200 Subject: [PATCH] system.cgi: correctly translate CPU frequency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CPU frequency diagram used the same "translation" as the CPU load, which was confusing. This patch introduces a dedicated translation for "CPU frequency", which makes things a little bit better but still does not solve a Deppenleerzeichen ("CPU-Frequenz Diagramm") in the German translation. Signed-off-by: Peter Müller Reviewed-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- html/cgi-bin/system.cgi | 2 +- langs/de/cgi-bin/de.pl | 1 + langs/en/cgi-bin/en.pl | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/system.cgi b/html/cgi-bin/system.cgi index 487ba996c..d7db9406a 100644 --- a/html/cgi-bin/system.cgi +++ b/html/cgi-bin/system.cgi @@ -61,7 +61,7 @@ if ( $querry[0] =~ "cpufreq"){ &Header::closebox(); if ( -e "$mainsettings{'RRDLOG'}/collectd/localhost/cpufreq/cpufreq-0.rrd"){ - &Header::openbox('100%', 'center', "CPU $Lang::tr{'graph'}"); + &Header::openbox('100%', 'center', "$Lang::tr{'cpu frequency'} $Lang::tr{'graph'}"); &Graphs::makegraphbox("system.cgi","cpufreq","day"); &Header::closebox(); } diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index c3702cc09..9f1768e78 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -662,6 +662,7 @@ 'country' => 'Land', 'country codes and flags' => 'Länder und Länderkennungen', 'countrycode' => 'Kennung', +'cpu frequency' => 'CPU-Frequenz', 'cpu frequency per' => 'CPU-Frequenz pro', 'cpu idle usage' => 'Leerlauf CPU-Nutzung', 'cpu interrupt usage' => 'Interrupt CPU-Nutzung', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index e14c7d825..fb911b914 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -678,6 +678,7 @@ 'country' => 'Country', 'country codes and flags' => 'Country Codes and Flags:', 'countrycode' => 'Code', +'cpu frequency' => 'CPU frequency', 'cpu frequency per' => 'CPU frequency per', 'cpu idle usage' => 'Idle CPU Usage', 'cpu interrupt usage' => 'Interrupt CPU Usage',