distroquery.php: support for Recommends

This commit is contained in:
Silvan Calarco 2024-11-03 12:29:43 +01:00
parent be955cc3b7
commit dbec183488
4 changed files with 48 additions and 21 deletions

View File

@ -311,7 +311,8 @@ $url_prefix = home_url() . "/rpms/";
// RPM provides, requires, obsoletes table
echo "<table class=\"pkgpage\" width=\"100%\"><tr><th>" .
_r("Brothers") . "</th><th>" . _r("Provides") . "</th><th>" .
_r("Obsoletes") . "</th><th>" . _r("Requires") . "</th></tr>";
_r("Obsoletes") . "</th><th>" . _r("Requires") . "</th><th>" .
_r("Recommends") . "</th></tr>";
echo "<tr><td>";
if (isset($j["brothers"])) {
foreach ($j["brothers"] as $brother) {
@ -353,6 +354,24 @@ $url_prefix = home_url() . "/rpms/";
echo "<br/>";
}
}
echo "</td><td>";
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 " <a href=\"" . $provider_url . "\">[" . $cnt . "]</a>";
}
}
if ($cnt == 0) echo " <font color=red>(" . _r("unresolved") . ")</font>";
echo "<br/>";
}
}
echo "</td></tr></table>";
// Package files list

Binary file not shown.

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Responsive Theme\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: 2014-12-08 16:25+0100\n"
"Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\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 "&copy;"
#~ msgstr "&copy;"
msgid "&copy;"
msgstr "&copy;"
#~ 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"

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""