From dbec1834883cba8e73b0e63f8c8927f09855bb84 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 3 Nov 2024 12:29:43 +0100 Subject: [PATCH] distroquery.php: support for Recommends --- distroquery.php | 21 ++++++++++++++++++++- languages/it_IT.mo | Bin 3666 -> 4125 bytes languages/it_IT.po | 38 +++++++++++++++++++++----------------- languages/responsive.po | 10 +++++++--- 4 files changed, 48 insertions(+), 21 deletions(-) diff --git a/distroquery.php b/distroquery.php index 81a14d9..1cddfa8 100644 --- a/distroquery.php +++ b/distroquery.php @@ -311,7 +311,8 @@ $url_prefix = home_url() . "/rpms/"; // RPM provides, requires, obsoletes table echo ""; + _r("Obsoletes") . ""; echo "
" . _r("Brothers") . "" . _r("Provides") . "" . - _r("Obsoletes") . "" . _r("Requires") . "
" . _r("Requires") . "" . + _r("Recommends") . "
"; if (isset($j["brothers"])) { foreach ($j["brothers"] as $brother) { @@ -353,6 +354,24 @@ $url_prefix = home_url() . "/rpms/"; echo "
"; } } + echo "
"; + if (isset($j["recommends"])) { + foreach ($j["recommends"] as $require) { + echo $require["name"]; + if ($require["flags"] != "") echo " " . $require["flags"] . " " . $require["version"]; + + $cnt = 0; + if (isset($require["providers"])) { + foreach ($require["providers"] as $provider) { + $cnt++; + $provider_url = $url_prefix . $provider["repository"] . "/" . $provider["name"] . "/" . $arch; + echo " [" . $cnt . "]"; + } + } + if ($cnt == 0) echo " (" . _r("unresolved") . ")"; + echo "
"; + } + } echo "
"; // Package files list diff --git a/languages/it_IT.mo b/languages/it_IT.mo index 03be96c2399c049ee95f61e4456d3fecf5bdb871..1c3d112dcb0b4170d2e113a03a79f28cc55859b0 100644 GIT binary patch delta 2006 zcmZ9MTWB0r7{|}nq`9Xit*J3hJYLdN+r~!iC9PGXwrN9@q#9$@m(A|68M2uPGrO@_ zp^GmH7DR{_XvssV4^j#W+dfErvF(E*BHj=MD}wkS2BD}$6zlK5dj#=g{^xh*T)yv{ zZ_dnT>y~WkQhUv71{*=^P;P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E%5Q&3-@90X>B3kxYM5+4dDIuTC*# zottf_&b8~Nl*p;}T}vm^9+4?L^vw$oZtk=!2wbPjnz9&y(BS-P_mG z(SFI_e74EXb@cRhhPon4sb$fMv}2w~zqcj&(VG`Hk\n" "Language-Team: Italian, Italy\n" @@ -150,7 +150,7 @@ msgstr "RPM creati" msgid "Build requirements" msgstr "Dipendenze di compilazione" -#: ../distroquery.php:237 ../distroquery.php:352 +#: ../distroquery.php:237 ../distroquery.php:353 ../distroquery.php:371 msgid "unresolved" msgstr "non risolto" @@ -194,7 +194,11 @@ msgstr "Rende obsoleti" msgid "Requires" msgstr "Richiede" -#: ../distroquery.php:360 +#: ../distroquery.php:315 +msgid "Recommends" +msgstr "Raccomanda" + +#: ../distroquery.php:379 msgid "Provided files" msgstr "File forniti" @@ -287,22 +291,22 @@ msgstr "Salve, %1$s" msgid "Logout" msgstr "Esci" -#~ msgid "©" -#~ msgstr "©" +msgid "©" +msgstr "©" -#~ msgid "scroll to top" -#~ msgstr "scorri all'inizio" +msgid "scroll to top" +msgstr "scorri all'inizio" -#~ msgid "Website provided by" -#~ msgstr "Sito web fornito da" +msgid "Website provided by" +msgstr "Sito web fornito da" -#~ msgid "WordPress" -#~ msgstr "WordPress" +msgid "WordPress" +msgstr "WordPress" -#~ msgid "This website uses cookies to improve user experience." -#~ msgstr "" -#~ "Questo sito utilizza i cookie per migliorare l'esperienza di navigazione " -#~ "dell'utente." +msgid "This website uses cookies to improve user experience." +msgstr "" +"Questo sito utilizza i cookie per migliorare l'esperienza di navigazione " +"dell'utente." -#~ msgid "Archive for %s" -#~ msgstr "Archivio per %s" +msgid "Archive for %s" +msgstr "Archivio per %s" diff --git a/languages/responsive.po b/languages/responsive.po index a4de57c..ebefdfa 100644 --- a/languages/responsive.po +++ b/languages/responsive.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: openmamba 1.0\n" "Report-Msgid-Bugs-To: bugs@openmamba.org\n" -"POT-Creation-Date: 2024-08-11 17:54+0200\n" +"POT-Creation-Date: 2024-11-03 12:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -151,7 +151,7 @@ msgstr "" msgid "Build requirements" msgstr "" -#: ../distroquery.php:237 ../distroquery.php:352 +#: ../distroquery.php:237 ../distroquery.php:353 ../distroquery.php:371 msgid "unresolved" msgstr "" @@ -195,7 +195,11 @@ msgstr "" msgid "Requires" msgstr "" -#: ../distroquery.php:360 +#: ../distroquery.php:315 +msgid "Recommends" +msgstr "" + +#: ../distroquery.php:379 msgid "Provided files" msgstr ""