From 6666b93d11b3add035baaf5a41a1ef16f4da9e19 Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Thu, 24 Dec 2020 01:09:04 +0100 Subject: [PATCH] Update (and cosmetic fixes) for 'pakfire.cgi': Added GUI entry for existing, but unused translation string 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 heading 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 Signed-off-by: Michael Tremer --- 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 39389ad024..dd96a92e92 100644 --- a/html/cgi-bin/pakfire.cgi +++ b/html/cgi-bin/pakfire.cgi @@ -183,7 +183,7 @@ if ($return) { print < - $Lang::tr{  + $Lang::tr{  $Lang::tr{'pakfire working'} @@ -217,7 +217,7 @@ my $packages_update_age = &General::age("/opt/pakfire/db/lists/packages_list.db" &Header::openbox("100%", "center", "Pakfire"); print < + END if ( -e "/var/run/need_reboot") { print ""; @@ -225,18 +225,21 @@ if ( -e "/var/run/need_reboot") { } print < +
$Lang::tr{'needreboot'}!
$Lang::tr{'pakfire system state'}: - + + $Lang::tr{'available updates'}:
$Lang::tr{'pakfire core update level'}: $core_release
$Lang::tr{'pakfire last update'} $core_update_age $Lang::tr{'pakfire ago'}
$Lang::tr{'pakfire last serverlist update'} $server_update_age $Lang::tr{'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{'pakfire available addons'} $Lang::tr{'pakfire installed addons'} -
+

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

+

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