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 ""
"Project-Id-Version: distromatic 1.4.1\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,140 +17,156 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/distroquery.c:184
#: src/distroquery.c:185
msgid "Source"
msgstr ""
#: src/distroquery.c:249
#: src/distroquery.c:266
msgid "Search"
msgstr ""
#: src/distroquery.c:283
#: src/distroquery.c:300
msgid "sources"
msgstr ""
#: src/distroquery.c:287
#: src/distroquery.c:304
msgid "files"
msgstr ""
#: src/distroquery.c:299
#: src/distroquery.c:315
msgid "Search software packages"
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"
msgstr ""
#: src/distroquery.c:413
#: src/distroquery.c:551
msgid "Details"
msgstr ""
#: src/distroquery.c:431 src/distroquery.c:467
#: src/distroquery.c:570 src/distroquery.c:620
#, c-format
msgid "Other results in "
msgstr ""
#: src/distroquery.c:432 src/distroquery.c:468
#: src/distroquery.c:571 src/distroquery.c:621
#, c-format
msgid "Results in"
msgstr ""
#: src/distroquery.c:435 src/distroquery.c:471
#: src/distroquery.c:574 src/distroquery.c:624
msgid "for arch "
msgstr ""
#: src/distroquery.c:444
#: src/distroquery.c:587 src/distroquery.c:596
msgid "provides"
msgstr ""
#: src/distroquery.c:480
msgid "provides file "
#: src/distroquery.c:637
msgid "provides directory"
msgstr ""
#: src/distroquery.c:554
#: src/distroquery.c:639
msgid "provides symbolic link"
msgstr ""
#: src/distroquery.c:641
msgid "provides file"
msgstr ""
#: src/distroquery.c:729
msgid "result(s) shown"
msgstr ""
#: src/distroquery.c:556
#: src/distroquery.c:731
msgid "result(s) found"
msgstr ""
#: src/distroquery.c:578
#: src/distroquery.c:753
msgid "Search results for"
msgstr ""
#: src/distroquery.c:661 src/distroquery.c:880
#: src/distroquery.c:826 src/distroquery.c:1047
msgid "Version"
msgstr ""
#: src/distroquery.c:666
#: src/distroquery.c:831
msgid "Size"
msgstr ""
#: src/distroquery.c:669
#: src/distroquery.c:834
msgid "Related packages"
msgstr ""
#: src/distroquery.c:698 src/distroquery.c:920
#: src/distroquery.c:863 src/distroquery.c:1087
msgid "Developers details"
msgstr ""
#: src/distroquery.c:700
#: src/distroquery.c:865
msgid "Source package"
msgstr ""
#: src/distroquery.c:710 src/distroquery.c:712
#: src/distroquery.c:875 src/distroquery.c:877
msgid "Specfile"
msgstr ""
#: src/distroquery.c:715 src/distroquery.c:922
#: src/distroquery.c:880 src/distroquery.c:1089
msgid "Maintainer"
msgstr ""
#: src/distroquery.c:716 src/distroquery.c:923
#: src/distroquery.c:881 src/distroquery.c:1090
msgid "Build date"
msgstr ""
#: src/distroquery.c:720
#: src/distroquery.c:891
msgid "Obsoletes"
msgstr ""
#: src/distroquery.c:736
#: src/distroquery.c:909
msgid "Provides"
msgstr ""
#: src/distroquery.c:753
#: src/distroquery.c:927
msgid "Requires"
msgstr ""
#: src/distroquery.c:787
#: src/distroquery.c:955
msgid "Required in"
msgstr ""
#: src/distroquery.c:787
#: src/distroquery.c:955
msgid "by"
msgstr ""
#: src/distroquery.c:802
#: src/distroquery.c:970
msgid "Files list"
msgstr ""
#: src/distroquery.c:887
#: src/distroquery.c:1054
msgid "Built packages"
msgstr ""
#: src/distroquery.c:926
#: src/distroquery.c:1093
msgid "Source files"
msgstr ""
#: src/distroquery.c:936
#: src/distroquery.c:1103
msgid "Patches"
msgstr ""
#: src/distroquery.c:947
#: src/distroquery.c:1114
msgid "Build requirements"
msgstr ""
#: src/distroquery.c:961
#: src/distroquery.c:1128
msgid "Changelog"
msgstr ""

BIN
po/it.gmo

Binary file not shown.

View File

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

View File

@ -579,22 +579,26 @@ void printQueryResponse() {
if (query_compact) {
printf("<a href='http://www.openmamba.org/distribution/search.html?"
"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,
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")),
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", "version")),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "release")),
_("provides"),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "provided", "name")));
} else {
printf("<a href=#reply onclick='distroquery_request("
"\"repository=%s&package=%s&arch=%s\")' style=\"color:black;background-color:lightblue\">%s</a> %s %s<br>",
query_repositories[i]->tag,
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")),
query_repositories[i]->arch[a],
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")),
_("provides"),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "provided", "name")));
"\"repository=%s&package=%s&arch=%s\")' style=\"color:black;background-color:lightblue\">%s</a> (%s-%s) %s %s<br>",
query_repositories[i]->tag,
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "name")),
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", "version")),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packages", "release")),
_("provides"),
sqlite3_column_text(statement,sqlite3_find_column_id(statement, "provided", "name")));
}
}
}
@ -625,12 +629,21 @@ void printQueryResponse() {
query_repositories[i]->arch[a]);
}
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,
sqlite3_column_text(stmt1,sqlite3_find_column_id(stmt1, "packages_files_rel", "name")),
query_repositories[i]->arch[a],
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));
}
sqlite3_finalize(stmt1);