From patchwork Sat Apr 11 09:02:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 2931 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 48zpms1bMLz3yBy for ; Sat, 11 Apr 2020 09:02:37 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 48zpmr2GmLzRj; Sat, 11 Apr 2020 09:02:36 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 48zpmr0WP0z2y39; Sat, 11 Apr 2020 09:02:36 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 48zpmp69FDz2y39 for ; Sat, 11 Apr 2020 09:02:34 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 48zpmm6dR6zRj for ; Sat, 11 Apr 2020 09:02:32 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1586595754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ez5LHg6rj4eP5t5lr7J4dBgqXLhJ5I5Q8VAbot57Ifg=; b=fgekA7BPjPcHOoiNqc7qqSTbNokprtqIQYahIexZcCp5ZO/7EwTgSHv79DaMX/KrmSdmlW nnXnpkT1YzRf0eDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1586595754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ez5LHg6rj4eP5t5lr7J4dBgqXLhJ5I5Q8VAbot57Ifg=; b=RT2A8IRPu5whQixunHerE4Lsk7/KcbyFyJpcSPIXFGrqCsGnBLvWwcR84+9hOf1cvw53ko HwX7lHrro15giUwbuZEFsQFJIlO9VVi1WZL9vGSCKV9FUkKFy9/Qvp3lb5MfMrp9NQDbYJ Zwa8AwrVNtYHxcCnpNxJP7Ln0m3+sIoZIr/VTIhC9fG/LzZeYJ6Xk7GrJRmDP8GN9CgQ9x CxYYI0gyuRltTYMvsrftdTHbkfetN0CyKZ3+RgSf9Uy2W5SMccmvZHoQMhZzzT0puDfQXe K+gLs+8qCPDoPCZbAECYRr5HJqBr4eBWn6lXcX2hKcxAA5TcBuyfJN67RQMGmw== To: "IPFire: Development-List" From: =?utf-8?q?Peter_M=C3=BCller?= Subject: [PATCH] system.cgi: correctly translate CPU frequency Message-ID: Date: Sat, 11 Apr 2020 11:02:26 +0200 MIME-Version: 1.0 Content-Language: en-US Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=peter.mueller@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 --- 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 3f3e46641..3d8e3ceca 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',