From 0682c568b4711dbe20459bcd6fb8badf1fba341f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 20 Apr 2013 15:19:48 +0200 Subject: [PATCH] Add missing translation for search result. Based on a patch by Tobias. re #37 --- base.php | 2 +- lang/Localization_de.json | 1 + lang/Localization_en.json | 1 + lang/Localization_fr.json | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/base.php b/base.php index a1273c1..b1a3d38 100644 --- a/base.php +++ b/base.php @@ -574,7 +574,7 @@ class PageQueryResult extends Page { public function InitializeContent () { - $this->title = "Search result for query *" . $this->query . "*"; // TODO I18N + $this->title = str_format (localize ("search.result"), $this->query); $currentPage = getURLParam ("current", NULL); switch ($currentPage) { case Base::PAGE_ALL_AUTHORS : diff --git a/lang/Localization_de.json b/lang/Localization_de.json index 818aca1..25d7ac9 100644 --- a/lang/Localization_de.json +++ b/lang/Localization_de.json @@ -117,5 +117,6 @@ "intro.team.list5":"Jane Litte - Beta Tests und moralische Unterstützung", "intro.thanks.1":"Speziellen Dank an Kb Sriram, der nicht nur Trook, eine exzellente und OPDS kompatible ", "intro.thanks.2":"Bibliotheksverwaltung programmierte, sondern auch einen Nook spendete!", +"search.result":"Suchergebnis für", "fin":"fin" } diff --git a/lang/Localization_en.json b/lang/Localization_en.json index 3bf4b72..b62517e 100644 --- a/lang/Localization_en.json +++ b/lang/Localization_en.json @@ -120,5 +120,6 @@ "intro.team.list5":"Jane Litte - beta tester and moral support", "intro.thanks.1":"Special thanks to Kb Sriram, who not only programmed Trook, an excellent and OPDS compatible ", "intro.thanks.2":"library manager for the Nook, but also was kind enough to donate a Nook !", +"search.result":"Search result for *{0}*", "fin":"fin" } diff --git a/lang/Localization_fr.json b/lang/Localization_fr.json index 9c6b821..c88f7d3 100644 --- a/lang/Localization_fr.json +++ b/lang/Localization_fr.json @@ -105,5 +105,6 @@ "intro.team.list5":"Jane Litte - beta testeuse et soutien moral", "intro.thanks.1":"Remerciements particuliers à Kb Sriram, qui est l'auteur de Trook, un excellent", "intro.thanks.2":"gestionnaire de bibliothèque pour Nook, et a m'a fait cadeau d'un Nook !", +"search.result":"Résultats pour *{0}*", "fin":"fin" }