From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] system.cgi: correctly translate CPU frequency Date: Sat, 11 Apr 2020 11:02:26 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0232142437273342619==" List-Id: --===============0232142437273342619== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=C3=BCller --- 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] =3D~ "cpufreq"){ &Header::closebox(); =20 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' =3D> 'Land', 'country codes and flags' =3D> 'L=C3=A4nder und L=C3=A4nderkennungen', 'countrycode' =3D> 'Kennung', +'cpu frequency' =3D> 'CPU-Frequenz', 'cpu frequency per' =3D> 'CPU-Frequenz pro', 'cpu idle usage' =3D> 'Leerlauf CPU-Nutzung', 'cpu interrupt usage' =3D> 'Interrupt CPU-Nutzung', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 3f3e46641..3d8e3ceca 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -678,6 +678,7 @@ 'country' =3D> 'Country', 'country codes and flags' =3D> 'Country Codes and Flags:', 'countrycode' =3D> 'Code', +'cpu frequency' =3D> 'CPU frequency', 'cpu frequency per' =3D> 'CPU frequency per', 'cpu idle usage' =3D> 'Idle CPU Usage', 'cpu interrupt usage' =3D> 'Interrupt CPU Usage', --=20 2.16.4 --===============0232142437273342619==--