From: Peter Müller Date: Sat, 11 Apr 2020 09:02:26 +0000 (+0200) Subject: system.cgi: correctly translate CPU frequency X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=003fb6f60892cdecea9a094ee891a4ccddbc9987;p=people%2Fpmueller%2Fipfire-2.x.git system.cgi: correctly translate CPU frequency 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 --- diff --git a/html/cgi-bin/system.cgi b/html/cgi-bin/system.cgi index 487ba996c2..d7db9406a3 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 c3702cc098..9f1768e784 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 e14c7d8255..fb911b9146 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',