From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fischer To: development@lists.ipfire.org Subject: [PATCH] Update (and cosmetic fixes) for 'pakfire.cgi': Added GUI entry for existing, but unused translation string Date: Thu, 24 Dec 2020 01:09:04 +0100 Message-ID: <20201224000904.3477-1-matthias.fischer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4492807206103274004==" List-Id: --===============4492807206103274004== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable While preparing the Core153 update, I found by chance that a language string = had been added from Core152 to Core153 which I couldn't find in any CGI-file. The translation suggested that this string ('Available Updates') could belong= to 'pakfire.cgi'. And I thought that on the pakfire GUI something was actually missing: the hea= ding above the box listing the 'Available Updates'. Don't know why I didn't saw this before. So tried to add these missing heading. I hope I made it right... Some cosmetic fixes: I also added some space around the text for 'Available Addons' and 'Installed= Addons' because the text lines weren't separated. There is no seen wordwrapping. This= required deleting some unwanted '
' in the affected translation strings. I tried this about 4 years ago, but somehow this patch got lost. Signed-off-by: Matthias Fischer --- html/cgi-bin/pakfire.cgi | 17 ++++++++++------- langs/de/cgi-bin/de.pl | 2 +- langs/en/cgi-bin/en.pl | 7 +++---- langs/es/cgi-bin/es.pl | 4 ++-- langs/fr/cgi-bin/fr.pl | 6 +++--- langs/it/cgi-bin/it.pl | 7 +++---- langs/nl/cgi-bin/nl.pl | 6 +++--- langs/pl/cgi-bin/pl.pl | 6 +++--- langs/ru/cgi-bin/ru.pl | 6 +++--- langs/tr/cgi-bin/tr.pl | 6 +++--- 10 files changed, 34 insertions(+), 33 deletions(-) diff --git a/html/cgi-bin/pakfire.cgi b/html/cgi-bin/pakfire.cgi index 39389ad02..dd96a92e9 100644 --- a/html/cgi-bin/pakfire.cgi +++ b/html/cgi-bin/pakfire.cgi @@ -183,7 +183,7 @@ if ($return) { print < - 3D'$Lang::tr{'aktiv'}'  + 3D'$Lang::tr{'active'}'  $Lang::tr{'pakfire working'} @@ -217,7 +217,7 @@ my $packages_update_age =3D &General::age("/opt/pakfire/d= b/lists/packages_list.db" &Header::openbox("100%", "center", "Pakfire"); =20 print < + END if ( -e "/var/run/need_reboot") { print ""; @@ -225,18 +225,21 @@ if ( -e "/var/run/need_reboot") { } print < +
$Lang::tr= {'needreboot'}!
$L= ang::tr{'pakfire system state'}: - + + $Lang= ::tr{'available updates'}:
$Lang::tr{'pakfire core update level'}: $core_rel= ease
$Lang::tr{'pakfire last update'} $core_update_age $Lang::tr{'pakfire ag= o'}
$Lang::tr{'pakfire last serverlist update'} $server_update_age $Lang::t= r{'pakfire ago'}
$Lang::tr{'pakfire last core list update'} $corelist_update_age $Lang::= tr{'pakfire ago'}
$Lang::tr{'pakfire last package update'} $packages_update_age $Lang::tr= {'pakfire ago'}
- +

+
-
+
 
$Lang::tr{'pakfi= re available addons'} $Lang::tr{'pakfire= installed addons'} -
+

$Lang::tr{'pakfire install description'}

+

$Lang::tr{'pakfire uninstall description'}