distroquery: refine files search output and update translations

This commit is contained in:
Silvan Calarco 2013-10-22 10:31:23 +02:00
parent eca33e1e9e
commit 66862cc5f0
4 changed files with 128 additions and 83 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: distromatic 1.4.1\n" "Project-Id-Version: distromatic 1.4.1\n"
"Report-Msgid-Bugs-To: silvan.calarco@mambasoft.it\n" "Report-Msgid-Bugs-To: silvan.calarco@mambasoft.it\n"
"POT-Creation-Date: 2013-10-20 01:05+0200\n" "POT-Creation-Date: 2013-10-21 21:57+0200\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"
@ -17,140 +17,156 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: src/distroquery.c:184 #: src/distroquery.c:185
msgid "Source" msgid "Source"
msgstr "" msgstr ""
#: src/distroquery.c:249 #: src/distroquery.c:266
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: src/distroquery.c:283 #: src/distroquery.c:300
msgid "sources" msgid "sources"
msgstr "" msgstr ""
#: src/distroquery.c:287 #: src/distroquery.c:304
msgid "files" msgid "files"
msgstr "" msgstr ""
#: src/distroquery.c:299 #: src/distroquery.c:315
msgid "Search software packages" msgid "Search software packages"
msgstr "" msgstr ""
#: src/distroquery.c:404 src/distroquery.c:696 src/distroquery.c:918 #: src/distroquery.c:364
msgid "current path"
msgstr ""
#: src/distroquery.c:406
msgid "Provider(s)"
msgstr ""
#: src/distroquery.c:542 src/distroquery.c:861 src/distroquery.c:1085
msgid "Download" msgid "Download"
msgstr "" msgstr ""
#: src/distroquery.c:413 #: src/distroquery.c:551
msgid "Details" msgid "Details"
msgstr "" msgstr ""
#: src/distroquery.c:431 src/distroquery.c:467 #: src/distroquery.c:570 src/distroquery.c:620
#, c-format #, c-format
msgid "Other results in " msgid "Other results in "
msgstr "" msgstr ""
#: src/distroquery.c:432 src/distroquery.c:468 #: src/distroquery.c:571 src/distroquery.c:621
#, c-format #, c-format
msgid "Results in" msgid "Results in"
msgstr "" msgstr ""
#: src/distroquery.c:435 src/distroquery.c:471 #: src/distroquery.c:574 src/distroquery.c:624
msgid "for arch " msgid "for arch "
msgstr "" msgstr ""
#: src/distroquery.c:444 #: src/distroquery.c:587 src/distroquery.c:596
msgid "provides" msgid "provides"
msgstr "" msgstr ""
#: src/distroquery.c:480 #: src/distroquery.c:637
msgid "provides directory"
msgstr ""
#: src/distroquery.c:639
msgid "provides symbolic link"
msgstr ""
#: src/distroquery.c:641
msgid "provides file" msgid "provides file"
msgstr "" msgstr ""
#: src/distroquery.c:554 #: src/distroquery.c:729
msgid "result(s) shown" msgid "result(s) shown"
msgstr "" msgstr ""
#: src/distroquery.c:556 #: src/distroquery.c:731
msgid "result(s) found" msgid "result(s) found"
msgstr "" msgstr ""
#: src/distroquery.c:578 #: src/distroquery.c:753
msgid "Search results for" msgid "Search results for"
msgstr "" msgstr ""
#: src/distroquery.c:661 src/distroquery.c:880 #: src/distroquery.c:826 src/distroquery.c:1047
msgid "Version" msgid "Version"
msgstr "" msgstr ""
#: src/distroquery.c:666 #: src/distroquery.c:831
msgid "Size" msgid "Size"
msgstr "" msgstr ""
#: src/distroquery.c:669 #: src/distroquery.c:834
msgid "Related packages" msgid "Related packages"
msgstr "" msgstr ""
#: src/distroquery.c:698 src/distroquery.c:920 #: src/distroquery.c:863 src/distroquery.c:1087
msgid "Developers details" msgid "Developers details"
msgstr "" msgstr ""
#: src/distroquery.c:700 #: src/distroquery.c:865
msgid "Source package" msgid "Source package"
msgstr "" msgstr ""
#: src/distroquery.c:710 src/distroquery.c:712 #: src/distroquery.c:875 src/distroquery.c:877
msgid "Specfile" msgid "Specfile"
msgstr "" msgstr ""
#: src/distroquery.c:715 src/distroquery.c:922 #: src/distroquery.c:880 src/distroquery.c:1089
msgid "Maintainer" msgid "Maintainer"
msgstr "" msgstr ""
#: src/distroquery.c:716 src/distroquery.c:923 #: src/distroquery.c:881 src/distroquery.c:1090
msgid "Build date" msgid "Build date"
msgstr "" msgstr ""
#: src/distroquery.c:720 #: src/distroquery.c:891
msgid "Obsoletes" msgid "Obsoletes"
msgstr "" msgstr ""
#: src/distroquery.c:736 #: src/distroquery.c:909
msgid "Provides" msgid "Provides"
msgstr "" msgstr ""
#: src/distroquery.c:753 #: src/distroquery.c:927
msgid "Requires" msgid "Requires"
msgstr "" msgstr ""
#: src/distroquery.c:787 #: src/distroquery.c:955
msgid "Required in" msgid "Required in"
msgstr "" msgstr ""
#: src/distroquery.c:787 #: src/distroquery.c:955
msgid "by" msgid "by"
msgstr "" msgstr ""
#: src/distroquery.c:802 #: src/distroquery.c:970
msgid "Files list" msgid "Files list"
msgstr "" msgstr ""
#: src/distroquery.c:887 #: src/distroquery.c:1054
msgid "Built packages" msgid "Built packages"
msgstr "" msgstr ""
#: src/distroquery.c:926 #: src/distroquery.c:1093
msgid "Source files" msgid "Source files"
msgstr "" msgstr ""
#: src/distroquery.c:936 #: src/distroquery.c:1103
msgid "Patches" msgid "Patches"
msgstr "" msgstr ""
#: src/distroquery.c:947 #: src/distroquery.c:1114
msgid "Build requirements" msgid "Build requirements"
msgstr "" msgstr ""
#: src/distroquery.c:961 #: src/distroquery.c:1128
msgid "Changelog" msgid "Changelog"
msgstr "" msgstr ""

BIN
po/it.gmo

Binary file not shown.

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: distromatic 1.4.1\n" "Project-Id-Version: distromatic 1.4.1\n"
"Report-Msgid-Bugs-To: silvan.calarco@mambasoft.it\n" "Report-Msgid-Bugs-To: silvan.calarco@mambasoft.it\n"
"POT-Creation-Date: 2013-10-20 01:05+0200\n" "POT-Creation-Date: 2013-10-21 21:57+0200\n"
"PO-Revision-Date: 2013-10-14 01:19+0200\n" "PO-Revision-Date: 2013-10-14 01:19+0200\n"
"Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\n" "Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\n"
"Language-Team: Italian\n" "Language-Team: Italian\n"
@ -17,140 +17,156 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/distroquery.c:184 #: src/distroquery.c:185
msgid "Source" msgid "Source"
msgstr "Sorgente" msgstr "Sorgente"
#: src/distroquery.c:249 #: src/distroquery.c:266
msgid "Search" msgid "Search"
msgstr "Cerca" msgstr "Cerca"
#: src/distroquery.c:283 #: src/distroquery.c:300
msgid "sources" msgid "sources"
msgstr "sorgenti" msgstr "sorgenti"
#: src/distroquery.c:287 #: src/distroquery.c:304
msgid "files" msgid "files"
msgstr "file" msgstr "file"
#: src/distroquery.c:299 #: src/distroquery.c:315
msgid "Search software packages" msgid "Search software packages"
msgstr "Cerca pacchetti software" msgstr "Cerca pacchetti software"
#: src/distroquery.c:404 src/distroquery.c:696 src/distroquery.c:918 #: src/distroquery.c:364
msgid "current path"
msgstr "percorso corrente"
#: src/distroquery.c:406
msgid "Provider(s)"
msgstr "Fornito da"
#: src/distroquery.c:542 src/distroquery.c:861 src/distroquery.c:1085
msgid "Download" msgid "Download"
msgstr "Scarica" msgstr "Scarica"
#: src/distroquery.c:413 #: src/distroquery.c:551
msgid "Details" msgid "Details"
msgstr "Dettagli" msgstr "Dettagli"
#: src/distroquery.c:431 src/distroquery.c:467 #: src/distroquery.c:570 src/distroquery.c:620
#, c-format #, c-format
msgid "Other results in " msgid "Other results in "
msgstr "Altri risultati in " msgstr "Altri risultati in "
#: src/distroquery.c:432 src/distroquery.c:468 #: src/distroquery.c:571 src/distroquery.c:621
#, c-format #, c-format
msgid "Results in" msgid "Results in"
msgstr "Risultati in" msgstr "Risultati in"
#: src/distroquery.c:435 src/distroquery.c:471 #: src/distroquery.c:574 src/distroquery.c:624
msgid "for arch " msgid "for arch "
msgstr "per l'architettura " msgstr "per l'architettura "
#: src/distroquery.c:444 #: src/distroquery.c:587 src/distroquery.c:596
msgid "provides" msgid "provides"
msgstr "fornisce" msgstr "fornisce"
#: src/distroquery.c:480 #: src/distroquery.c:637
msgid "provides directory"
msgstr "fornisce la cartella"
#: src/distroquery.c:639
msgid "provides symbolic link"
msgstr "fornisce il link simbolico"
#: src/distroquery.c:641
msgid "provides file" msgid "provides file"
msgstr "fornisce il file" msgstr "fornisce il file"
#: src/distroquery.c:554 #: src/distroquery.c:729
msgid "result(s) shown" msgid "result(s) shown"
msgstr "risultati mostrati" msgstr "risultati mostrati"
#: src/distroquery.c:556 #: src/distroquery.c:731
msgid "result(s) found" msgid "result(s) found"
msgstr "risultati trovati" msgstr "risultati trovati"
#: src/distroquery.c:578 #: src/distroquery.c:753
msgid "Search results for" msgid "Search results for"
msgstr "Risultati della ricerca per" msgstr "Risultati della ricerca per"
#: src/distroquery.c:661 src/distroquery.c:880 #: src/distroquery.c:826 src/distroquery.c:1047
msgid "Version" msgid "Version"
msgstr "Versione" msgstr "Versione"
#: src/distroquery.c:666 #: src/distroquery.c:831
msgid "Size" msgid "Size"
msgstr "Dimensione" msgstr "Dimensione"
#: src/distroquery.c:669 #: src/distroquery.c:834
msgid "Related packages" msgid "Related packages"
msgstr "Pacchetti collegati" msgstr "Pacchetti collegati"
#: src/distroquery.c:698 src/distroquery.c:920 #: src/distroquery.c:863 src/distroquery.c:1087
msgid "Developers details" msgid "Developers details"
msgstr "Dettagli per gli sviluppatori" msgstr "Dettagli per gli sviluppatori"
#: src/distroquery.c:700 #: src/distroquery.c:865
msgid "Source package" msgid "Source package"
msgstr "Pacchetto sorgente" msgstr "Pacchetto sorgente"
#: src/distroquery.c:710 src/distroquery.c:712 #: src/distroquery.c:875 src/distroquery.c:877
msgid "Specfile" msgid "Specfile"
msgstr "Specfile" msgstr "Specfile"
#: src/distroquery.c:715 src/distroquery.c:922 #: src/distroquery.c:880 src/distroquery.c:1089
msgid "Maintainer" msgid "Maintainer"
msgstr "Manutentore" msgstr "Manutentore"
#: src/distroquery.c:716 src/distroquery.c:923 #: src/distroquery.c:881 src/distroquery.c:1090
msgid "Build date" msgid "Build date"
msgstr "Data di compilazione" msgstr "Data di compilazione"
#: src/distroquery.c:720 #: src/distroquery.c:891
msgid "Obsoletes" msgid "Obsoletes"
msgstr "Rende obsoleti" msgstr "Rende obsoleti"
#: src/distroquery.c:736 #: src/distroquery.c:909
msgid "Provides" msgid "Provides"
msgstr "Fornisce" msgstr "Fornisce"
#: src/distroquery.c:753 #: src/distroquery.c:927
msgid "Requires" msgid "Requires"
msgstr "Richiede" msgstr "Richiede"
#: src/distroquery.c:787 #: src/distroquery.c:955
msgid "Required in" msgid "Required in"
msgstr "Richiesto in" msgstr "Richiesto in"
#: src/distroquery.c:787 #: src/distroquery.c:955
msgid "by" msgid "by"
msgstr "da" msgstr "da"
#: src/distroquery.c:802 #: src/distroquery.c:970
msgid "Files list" msgid "Files list"
msgstr "Lista dei file" msgstr "Lista dei file"
#: src/distroquery.c:887 #: src/distroquery.c:1054
msgid "Built packages" msgid "Built packages"
msgstr "Pacchetti compilati" msgstr "Pacchetti compilati"
#: src/distroquery.c:926 #: src/distroquery.c:1093
msgid "Source files" msgid "Source files"
msgstr "File sorgenti" msgstr "File sorgenti"
#: src/distroquery.c:936 #: src/distroquery.c:1103
msgid "Patches" msgid "Patches"
msgstr "Patch" msgstr "Patch"
#: src/distroquery.c:947 #: src/distroquery.c:1114
msgid "Build requirements" msgid "Build requirements"
msgstr "Requisiti per la compilazione" msgstr "Requisiti per la compilazione"
#: src/distroquery.c:961 #: src/distroquery.c:1128
msgid "Changelog" msgid "Changelog"
msgstr "Modifiche" msgstr "Modifiche"

View File

@ -579,20 +579,24 @@ void printQueryResponse() {
if (query_compact) { if (query_compact) {
printf("<a href='http://www.openmamba.org/distribution/search.html?" printf("<a href='http://www.openmamba.org/distribution/search.html?"
"repository=%s&package=%s&arch=%s&searchbox=true' style=\"color:black\" target='distroquery'>" "repository=%s&package=%s&arch=%s&searchbox=true' style=\"color:black\" target='distroquery'>"
"%s</a> %s %s<br>", "%s</a> (%s-%s) %s %s<br>",
query_repositories[i]->tag, query_repositories[i]->tag,
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")),
query_repositories[i]->arch[a], query_repositories[i]->arch[a],
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "version")),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "release")),
_("provides"), _("provides"),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "provided", "name"))); sqlite3_column_text(statement,sqlite3_find_column_id(statement, "provided", "name")));
} else { } else {
printf("<a href=#reply onclick='distroquery_request(" printf("<a href=#reply onclick='distroquery_request("
"\"repository=%s&package=%s&arch=%s\")' style=\"color:black;background-color:lightblue\">%s</a> %s %s<br>", "\"repository=%s&package=%s&arch=%s\")' style=\"color:black;background-color:lightblue\">%s</a> (%s-%s) %s %s<br>",
query_repositories[i]->tag, query_repositories[i]->tag,
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")),
query_repositories[i]->arch[a], query_repositories[i]->arch[a],
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "version")),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "release")),
_("provides"), _("provides"),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "provided", "name"))); sqlite3_column_text(statement,sqlite3_find_column_id(statement, "provided", "name")));
} }
@ -625,12 +629,21 @@ void printQueryResponse() {
query_repositories[i]->arch[a]); query_repositories[i]->arch[a]);
} }
printf("<a href=#reply onclick='distroquery_request(" printf("<a href=#reply onclick='distroquery_request("
"\"repository=%s&package=%s&arch=%s\")' style=\"color:black;background-color:lightblue\">%s</a> %s %s<br>", "\"repository=%s&package=%s&arch=%s\")' style=\"color:black;background-color:lightblue\">%s</a> (%s-%s)",
query_repositories[i]->tag, query_repositories[i]->tag,
sqlite3_column_text(stmt1,sqlite3_find_column_id(stmt1, "packages_files_rel", "name")), sqlite3_column_text(stmt1,sqlite3_find_column_id(stmt1, "packages_files_rel", "name")),
query_repositories[i]->arch[a], query_repositories[i]->arch[a],
sqlite3_column_text(stmt1,sqlite3_find_column_id(stmt1, "packages_files_rel", "name")), sqlite3_column_text(stmt1,sqlite3_find_column_id(stmt1, "packages_files_rel", "name")),
_("provides file "), sqlite3_column_text(stmt1,sqlite3_find_column_id(stmt1, "packages_files_rel", "version")),
sqlite3_column_text(stmt1,sqlite3_find_column_id(stmt1, "packages_files_rel", "release")));
k = sqlite3_column_int(stmt1,sqlite3_find_column_id(stmt1, "packages_files_rel", "flags"));
if (k >> 12 & 4)
printf(" %s ",_("provides directory"));
else if (k >> 12 & 2)
printf(" %s ",_("provides symbolic link"));
else
printf(" %s ",_("provides file"));
printf("%s<br>",
resolveFilePath(dbf, sqlite3_column_int(stmt1,sqlite3_find_column_id(stmt1, NULL, "id_file")), buffer)); resolveFilePath(dbf, sqlite3_column_int(stmt1,sqlite3_find_column_id(stmt1, NULL, "id_file")), buffer));
} }
sqlite3_finalize(stmt1); sqlite3_finalize(stmt1);