distroquery.php: support for Recommends
This commit is contained in:
parent
be955cc3b7
commit
dbec183488
@ -311,7 +311,8 @@ $url_prefix = home_url() . "/rpms/";
|
|||||||
// RPM provides, requires, obsoletes table
|
// RPM provides, requires, obsoletes table
|
||||||
echo "<table class=\"pkgpage\" width=\"100%\"><tr><th>" .
|
echo "<table class=\"pkgpage\" width=\"100%\"><tr><th>" .
|
||||||
_r("Brothers") . "</th><th>" . _r("Provides") . "</th><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>";
|
echo "<tr><td>";
|
||||||
if (isset($j["brothers"])) {
|
if (isset($j["brothers"])) {
|
||||||
foreach ($j["brothers"] as $brother) {
|
foreach ($j["brothers"] as $brother) {
|
||||||
@ -353,6 +354,24 @@ $url_prefix = home_url() . "/rpms/";
|
|||||||
echo "<br/>";
|
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>";
|
echo "</td></tr></table>";
|
||||||
|
|
||||||
// Package files list
|
// Package files list
|
||||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Responsive Theme\n"
|
"Project-Id-Version: Responsive Theme\n"
|
||||||
"Report-Msgid-Bugs-To: bugs@openmamba.org\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"
|
"PO-Revision-Date: 2014-12-08 16:25+0100\n"
|
||||||
"Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\n"
|
"Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\n"
|
||||||
"Language-Team: Italian, Italy\n"
|
"Language-Team: Italian, Italy\n"
|
||||||
@ -150,7 +150,7 @@ msgstr "RPM creati"
|
|||||||
msgid "Build requirements"
|
msgid "Build requirements"
|
||||||
msgstr "Dipendenze di compilazione"
|
msgstr "Dipendenze di compilazione"
|
||||||
|
|
||||||
#: ../distroquery.php:237 ../distroquery.php:352
|
#: ../distroquery.php:237 ../distroquery.php:353 ../distroquery.php:371
|
||||||
msgid "unresolved"
|
msgid "unresolved"
|
||||||
msgstr "non risolto"
|
msgstr "non risolto"
|
||||||
|
|
||||||
@ -194,7 +194,11 @@ msgstr "Rende obsoleti"
|
|||||||
msgid "Requires"
|
msgid "Requires"
|
||||||
msgstr "Richiede"
|
msgstr "Richiede"
|
||||||
|
|
||||||
#: ../distroquery.php:360
|
#: ../distroquery.php:315
|
||||||
|
msgid "Recommends"
|
||||||
|
msgstr "Raccomanda"
|
||||||
|
|
||||||
|
#: ../distroquery.php:379
|
||||||
msgid "Provided files"
|
msgid "Provided files"
|
||||||
msgstr "File forniti"
|
msgstr "File forniti"
|
||||||
|
|
||||||
@ -287,22 +291,22 @@ msgstr "Salve, %1$s"
|
|||||||
msgid "Logout"
|
msgid "Logout"
|
||||||
msgstr "Esci"
|
msgstr "Esci"
|
||||||
|
|
||||||
#~ msgid "©"
|
msgid "©"
|
||||||
#~ msgstr "©"
|
msgstr "©"
|
||||||
|
|
||||||
#~ msgid "scroll to top"
|
msgid "scroll to top"
|
||||||
#~ msgstr "scorri all'inizio"
|
msgstr "scorri all'inizio"
|
||||||
|
|
||||||
#~ msgid "Website provided by"
|
msgid "Website provided by"
|
||||||
#~ msgstr "Sito web fornito da"
|
msgstr "Sito web fornito da"
|
||||||
|
|
||||||
#~ msgid "WordPress"
|
msgid "WordPress"
|
||||||
#~ msgstr "WordPress"
|
msgstr "WordPress"
|
||||||
|
|
||||||
#~ msgid "This website uses cookies to improve user experience."
|
msgid "This website uses cookies to improve user experience."
|
||||||
#~ msgstr ""
|
msgstr ""
|
||||||
#~ "Questo sito utilizza i cookie per migliorare l'esperienza di navigazione "
|
"Questo sito utilizza i cookie per migliorare l'esperienza di navigazione "
|
||||||
#~ "dell'utente."
|
"dell'utente."
|
||||||
|
|
||||||
#~ msgid "Archive for %s"
|
msgid "Archive for %s"
|
||||||
#~ msgstr "Archivio per %s"
|
msgstr "Archivio per %s"
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: openmamba 1.0\n"
|
"Project-Id-Version: openmamba 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: bugs@openmamba.org\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"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -151,7 +151,7 @@ msgstr ""
|
|||||||
msgid "Build requirements"
|
msgid "Build requirements"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../distroquery.php:237 ../distroquery.php:352
|
#: ../distroquery.php:237 ../distroquery.php:353 ../distroquery.php:371
|
||||||
msgid "unresolved"
|
msgid "unresolved"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -195,7 +195,11 @@ msgstr ""
|
|||||||
msgid "Requires"
|
msgid "Requires"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../distroquery.php:360
|
#: ../distroquery.php:315
|
||||||
|
msgid "Recommends"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../distroquery.php:379
|
||||||
msgid "Provided files"
|
msgid "Provided files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user