The search page title is now more precise in case a scope is provided. re #34

This commit is contained in:
Sébastien Lucas 2013-10-06 18:08:26 +02:00
parent 065d9aeb98
commit 23129b9c9e
12 changed files with 61 additions and 2 deletions

View file

@ -673,8 +673,23 @@ class PageQueryResult extends Page
public function InitializeContent ()
{
global $config;
$this->title = str_format (localize ("search.result"), $this->query);
$scope = getURLParam ("scope");
switch ($scope) {
case self::SCOPE_AUTHOR :
$this->title = str_format (localize ("search.result.author"), $this->query);
break;
case self::SCOPE_TAG :
$this->title = str_format (localize ("search.result.tag"), $this->query);
break;
case self::SCOPE_SERIES :
$this->title = str_format (localize ("search.result.series"), $this->query);
break;
case self::SCOPE_BOOK :
$this->title = str_format (localize ("search.result.book"), $this->query);
break;
default:
$this->title = str_format (localize ("search.result"), $this->query);
}
$crit = "%" . $this->query . "%";
$bad = "QQQQQ";

View file

@ -43,6 +43,10 @@
"recent.title":"Els més recents",
"##TODO##search.alternate":"Search",
"##TODO##search.result":"Search result for *{0}*",
"##TODO##search.result.author":"Search result for *{0}* in authors",
"##TODO##search.result.book":"Search result for *{0}* in books",
"##TODO##search.result.series":"Search result for *{0}* in series",
"##TODO##search.result.tag":"Search result for *{0}* in tags",
"##TODO##search.sortorder.asc":"Asc",
"##TODO##search.sortorder.desc":"Desc",
"series.alphabetical.many":"{0} sèries ordenades alfabèticament",

View file

@ -43,6 +43,10 @@
"recent.title":"Neuzugänge",
"search.alternate":"Suche",
"search.result":"Suchergebnis für",
"##TODO##search.result.author":"Search result for *{0}* in authors",
"##TODO##search.result.book":"Search result for *{0}* in books",
"##TODO##search.result.series":"Search result for *{0}* in series",
"##TODO##search.result.tag":"Search result for *{0}* in tags",
"search.sortorder.asc":"Auf",
"search.sortorder.desc":"Ab",
"series.alphabetical.many":"Alphabetischer Index der {0} Serien",

View file

@ -43,6 +43,10 @@
"recent.title":"Recent additions",
"search.alternate":"Search",
"search.result":"Search result for *{0}*",
"search.result.author":"Search result for *{0}* in authors",
"search.result.book":"Search result for *{0}* in books",
"search.result.series":"Search result for *{0}* in series",
"search.result.tag":"Search result for *{0}* in tags",
"search.sortorder.asc":"Asc",
"search.sortorder.desc":"Desc",
"series.alphabetical.many":"Alphabetical index of the {0} series",

View file

@ -43,6 +43,10 @@
"recent.title":"Añadidos recientemente",
"##TODO##search.alternate":"Search",
"##TODO##search.result":"Search result for *{0}*",
"##TODO##search.result.author":"Search result for *{0}* in authors",
"##TODO##search.result.book":"Search result for *{0}* in books",
"##TODO##search.result.series":"Search result for *{0}* in series",
"##TODO##search.result.tag":"Search result for *{0}* in tags",
"##TODO##search.sortorder.asc":"Asc",
"##TODO##search.sortorder.desc":"Desc",
"series.alphabetical.many":"Indice alfabético de {0}",

View file

@ -43,6 +43,10 @@
"recent.title":"Ajouts récents",
"search.alternate":"Rechercher",
"search.result":"Résultats pour *{0}*",
"search.result.author":"Résultats pour *{0}* dans les auteurs",
"search.result.book":"Résultats pour *{0}* dans les livres",
"search.result.series":"Résultats pour *{0}* dans les colllections",
"search.result.tag":"Résultats pour *{0}* dans les étiquettes",
"search.sortorder.asc":"Crois.",
"search.sortorder.desc":"Décrois.",
"series.alphabetical.many":"Index alphabétique de {0} collections",

View file

@ -43,6 +43,10 @@
"recent.title":"Ultime aggiunte",
"search.alternate":"Cerca",
"search.result":"Risultati per *{0}*",
"##TODO##search.result.author":"Search result for *{0}* in authors",
"##TODO##search.result.book":"Search result for *{0}* in books",
"##TODO##search.result.series":"Search result for *{0}* in series",
"##TODO##search.result.tag":"Search result for *{0}* in tags",
"search.sortorder.asc":"Asc",
"search.sortorder.desc":"Disc",
"series.alphabetical.many":"Indice alfabetico di {0} collane",

View file

@ -43,6 +43,10 @@
"recent.title":"Nylig lagt til",
"search.alternate":"Søk",
"search.result":"Søkeresultat for *{0}*",
"##TODO##search.result.author":"Search result for *{0}* in authors",
"##TODO##search.result.book":"Search result for *{0}* in books",
"##TODO##search.result.series":"Search result for *{0}* in series",
"##TODO##search.result.tag":"Search result for *{0}* in tags",
"search.sortorder.asc":"Stigende",
"search.sortorder.desc":"Synkende",
"series.alphabetical.many":"Alfabetisk indeks for {0} serier",

View file

@ -43,6 +43,10 @@
"recent.title":"Recent toegevoegde boeken",
"search.alternate":"Zoeken",
"search.result":"Zoekresultaat voor *{0}*",
"##TODO##search.result.author":"Search result for *{0}* in authors",
"##TODO##search.result.book":"Search result for *{0}* in books",
"##TODO##search.result.series":"Search result for *{0}* in series",
"##TODO##search.result.tag":"Search result for *{0}* in tags",
"search.sortorder.asc":"A-Z",
"search.sortorder.desc":"Z-A",
"series.alphabetical.many":"Alfabetische index van {0} series",

View file

@ -43,6 +43,10 @@
"recent.title":"Adições recentes",
"search.alternate":"Busca",
"search.result":"Resultado da busca por *{0}*",
"##TODO##search.result.author":"Search result for *{0}* in authors",
"##TODO##search.result.book":"Search result for *{0}* in books",
"##TODO##search.result.series":"Search result for *{0}* in series",
"##TODO##search.result.tag":"Search result for *{0}* in tags",
"search.sortorder.asc":"Asc",
"search.sortorder.desc":"Desc",
"series.alphabetical.many":"Índice alfabético das {0} séries",

View file

@ -43,6 +43,10 @@
"recent.title":"Недавние поступления",
"##TODO##search.alternate":"Search",
"##TODO##search.result":"Search result for *{0}*",
"##TODO##search.result.author":"Search result for *{0}* in authors",
"##TODO##search.result.book":"Search result for *{0}* in books",
"##TODO##search.result.series":"Search result for *{0}* in series",
"##TODO##search.result.tag":"Search result for *{0}* in tags",
"##TODO##search.sortorder.asc":"Asc",
"##TODO##search.sortorder.desc":"Desc",
"series.alphabetical.many":"Алфавитный указатель для {0} серий",

View file

@ -43,6 +43,10 @@
"recent.title":"最近添加",
"search.alternate":"搜索",
"search.result":"*{0}* 的搜索结果",
"##TODO##search.result.author":"Search result for *{0}* in authors",
"##TODO##search.result.book":"Search result for *{0}* in books",
"##TODO##search.result.series":"Search result for *{0}* in series",
"##TODO##search.result.tag":"Search result for *{0}* in tags",
"search.sortorder.asc":"升序",
"search.sortorder.desc":"降序",
"series.alphabetical.many":"{0} 个系列的字母索引",