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
|
||||
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.
@ -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 "©"
|
||||
#~ 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"
|
||||
|
@ -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 ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user