From 18decb3cc10f1ffc611117d82390b9dfa2fcf65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 17 Sep 2013 16:30:19 +0200 Subject: [PATCH 1/5] Localize a missing string (cog alternate text). re #37 --- book.php | 1 + lang/Localization_ca.json | 1 + lang/Localization_de.json | 1 + lang/Localization_en.json | 1 + lang/Localization_es.json | 1 + lang/Localization_fr.json | 5 +++-- lang/Localization_it.json | 1 + lang/Localization_nb.json | 1 + lang/Localization_nl.json | 1 + lang/Localization_pt.json | 1 + lang/Localization_ru.json | 1 + lang/Localization_zh.json | 1 + templates/default/header.html | 2 +- 13 files changed, 15 insertions(+), 3 deletions(-) diff --git a/book.php b/book.php index b06a567..09b1dc4 100644 --- a/book.php +++ b/book.php @@ -619,6 +619,7 @@ function getJson ($complete = false) { "searchAlt" => localize ("search.alternate"), "sortAlt" => localize ("sort.alternate"), "homeAlt" => localize ("home.alternate"), + "cogAlt" => localize ("cog.alternate"), "permalinkAlt" => localize ("permalink.alternate"), "pubdateTitle" => localize("pubdate.title"), "languagesTitle" => localize("language.title"), diff --git a/lang/Localization_ca.json b/lang/Localization_ca.json index 6171cc0..729e17c 100644 --- a/lang/Localization_ca.json +++ b/lang/Localization_ca.json @@ -16,6 +16,7 @@ "bookword.none":"Cap llibre", "bookword.one":"1 llibre", "bookword.title":"Llibres", +"##TODO##cog.alternate":"Search, sort and filters", "##TODO##content.series":"Series:", "content.series.data":"Llibre {0} de la sèrie {1}", "content.summary":"Sinopsi:", diff --git a/lang/Localization_de.json b/lang/Localization_de.json index e914fbf..b36af99 100644 --- a/lang/Localization_de.json +++ b/lang/Localization_de.json @@ -16,6 +16,7 @@ "bookword.none":"Kein Buch", "bookword.one":"1 Buch", "bookword.title":"Bücher", +"##TODO##cog.alternate":"Search, sort and filters", "content.series":"Serien: ", "content.series.data":"Buch {0} der {1} - Reihe", "content.summary":"Inhalt: ", diff --git a/lang/Localization_en.json b/lang/Localization_en.json index 6d1d7e8..dbad2e8 100644 --- a/lang/Localization_en.json +++ b/lang/Localization_en.json @@ -16,6 +16,7 @@ "bookword.none":"No book", "bookword.one":"1 book", "bookword.title":"Books", +"cog.alternate":"Search, sort and filters", "content.series":"Series:", "content.series.data":"Book {0} in the {1} series", "content.summary":"Summary", diff --git a/lang/Localization_es.json b/lang/Localization_es.json index 01b0d30..6d523c1 100644 --- a/lang/Localization_es.json +++ b/lang/Localization_es.json @@ -16,6 +16,7 @@ "bookword.none":"Sin libros", "bookword.one":"1 libro", "bookword.title":"Libros", +"##TODO##cog.alternate":"Search, sort and filters", "##TODO##content.series":"Series:", "content.series.data":"Libro {0} en la {1} serie", "content.summary":"Sumario:", diff --git a/lang/Localization_fr.json b/lang/Localization_fr.json index b7337fa..fe7743a 100644 --- a/lang/Localization_fr.json +++ b/lang/Localization_fr.json @@ -1,11 +1,11 @@ { "about.title":"A propos de COPS", "allbooks.alphabetical.many":"Index alphabétique des {0} livres", -"##TODO##allbooks.alphabetical.none":"Alphabetical index of absolutely no book", +"allbooks.alphabetical.none":"Index alphabétique d'aucun livre", "allbooks.alphabetical.one":"Index alphabétique du seul livre", "allbooks.title":"Tous les livres", "authors.alphabetical.many":"Index alphabétique des {0} auteurs", -"##TODO##authors.alphabetical.none":"Alphabetical index of absolutely no author", +"authors.alphabetical.none":"Index alphabétique d'aucun auteur", "authors.alphabetical.one":"Index alphabétique du seul auteur", "authors.title":"Auteurs", "authorword.many":"{0} auteurs", @@ -16,6 +16,7 @@ "bookword.none":"Aucun livre", "bookword.one":"1 livre", "bookword.title":"Livres", +"cog.alternate":"Recherche, tri et filtres", "content.series":"Collection:", "content.series.data":"Livre {0} dans la collection {1}", "content.summary":"Résumé:", diff --git a/lang/Localization_it.json b/lang/Localization_it.json index 07239f5..2a60650 100644 --- a/lang/Localization_it.json +++ b/lang/Localization_it.json @@ -16,6 +16,7 @@ "bookword.none":"Nessun libro", "bookword.one":"1 libro", "bookword.title":"Libri", +"##TODO##cog.alternate":"Search, sort and filters", "content.series":"Collana:", "content.series.data":"Libro {0} nella collana {1}", "content.summary":"Riassunto:", diff --git a/lang/Localization_nb.json b/lang/Localization_nb.json index 680a1b6..991ff70 100644 --- a/lang/Localization_nb.json +++ b/lang/Localization_nb.json @@ -16,6 +16,7 @@ "bookword.none":"Ingen bøker", "bookword.one":"1 bok", "bookword.title":"Bøker", +"##TODO##cog.alternate":"Search, sort and filters", "content.series":"Serier:", "content.series.data":"Bok {0} i serien {1}", "content.summary":"Sammendrag", diff --git a/lang/Localization_nl.json b/lang/Localization_nl.json index 679b48b..125fd11 100644 --- a/lang/Localization_nl.json +++ b/lang/Localization_nl.json @@ -16,6 +16,7 @@ "bookword.none":"Geen boek", "bookword.one":"1 boek", "bookword.title":"Boeken", +"##TODO##cog.alternate":"Search, sort and filters", "content.series":"Series:", "content.series.data":"Boek {0} in de {1} serie", "content.summary":"Samenvatting", diff --git a/lang/Localization_pt.json b/lang/Localization_pt.json index 5e81497..0aed078 100644 --- a/lang/Localization_pt.json +++ b/lang/Localization_pt.json @@ -16,6 +16,7 @@ "bookword.none":"Sem livros", "bookword.one":"1 livro", "bookword.title":"Livros", +"##TODO##cog.alternate":"Search, sort and filters", "content.series":"Séries:", "content.series.data":"Livro {0} da série {1}", "content.summary":"Sumário", diff --git a/lang/Localization_ru.json b/lang/Localization_ru.json index cfff000..b16daca 100644 --- a/lang/Localization_ru.json +++ b/lang/Localization_ru.json @@ -16,6 +16,7 @@ "bookword.none":"Нет книг", "bookword.one":"1 книга", "bookword.title":"Книги", +"##TODO##cog.alternate":"Search, sort and filters", "content.series":"Серии:", "content.series.data":"Книга {0} в {1} серии", "content.summary":"Краткое содержание:", diff --git a/lang/Localization_zh.json b/lang/Localization_zh.json index de0a9c8..12ef64e 100644 --- a/lang/Localization_zh.json +++ b/lang/Localization_zh.json @@ -16,6 +16,7 @@ "bookword.none":"没有书籍", "bookword.one":"1 本书籍", "bookword.title":"书名", +"##TODO##cog.alternate":"Search, sort and filters", "content.series":"系列:", "content.series.data":"{0} 系列的第 {0} 本", "content.summary":"概要", diff --git a/templates/default/header.html b/templates/default/header.html index f39fc45..13c981b 100644 --- a/templates/default/header.html +++ b/templates/default/header.html @@ -3,7 +3,7 @@
{{? it.c.config.server_side_rendering == 0}} -
+
{{?}}

{{=it.title}}

From 04cdaf5972272aebe3cb7e4ec2703de4cde29483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 17 Sep 2013 17:28:42 +0200 Subject: [PATCH 2/5] Fix untranslated strings. --- base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base.php b/base.php index b272df9..38b6b9c 100644 --- a/base.php +++ b/base.php @@ -470,7 +470,7 @@ class Page $currentUrl = $_SERVER['QUERY_STRING']; $currentUrl = preg_replace ("/\&n=.*?$/", "", "?" . $_SERVER['QUERY_STRING']); if (($this->n) * getCurrentOption ("max_item_per_page") < $this->totalNumber) { - return new LinkNavigation ($currentUrl . "&n=" . ($this->n + 1), "next", "Page suivante"); + return new LinkNavigation ($currentUrl . "&n=" . ($this->n + 1), "next", localize ("paging.next.alternate")); } return NULL; } @@ -481,7 +481,7 @@ class Page $currentUrl = $_SERVER['QUERY_STRING']; $currentUrl = preg_replace ("/\&n=.*?$/", "", "?" . $_SERVER['QUERY_STRING']); if ($this->n > 1) { - return new LinkNavigation ($currentUrl . "&n=" . ($this->n - 1), "previous", "Page precedente"); + return new LinkNavigation ($currentUrl . "&n=" . ($this->n - 1), "previous", localize ("paging.previous.alternate")); } return NULL; } From b99550b88d72fd0140cc455cfda948f5a4e657df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Wed, 18 Sep 2013 20:40:04 +0200 Subject: [PATCH 3/5] Fix display of Cyrillic characters. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index c6e77bd..3d1e669 100644 --- a/index.php +++ b/index.php @@ -54,7 +54,7 @@ - + " /> " media="screen" /> From ac48704cc2322968236492e0e8fbc3d13ecb343e Mon Sep 17 00:00:00 2001 From: Alberto D'Agostini Date: Wed, 18 Sep 2013 20:42:10 +0200 Subject: [PATCH 4/5] Enhance italian translation. re #37 --- lang/Localization_it.json | 56 +++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/lang/Localization_it.json b/lang/Localization_it.json index 2a60650..d19240e 100644 --- a/lang/Localization_it.json +++ b/lang/Localization_it.json @@ -1,11 +1,11 @@ { -"##TODO##about.title":"About COPS", +"about.title":"A proposito di COPS", "allbooks.alphabetical.many":"Indice alfabetico di {0} libri", -"##TODO##allbooks.alphabetical.none":"Alphabetical index of absolutely no book", +"allbooks.alphabetical.none":"Indice alfabetico indipendente dal libro", "allbooks.alphabetical.one":"Indice alfabetico di un solo libro", "allbooks.title":"Tutti i libri", "authors.alphabetical.many":"Indice alfabetico di {0} autori", -"##TODO##authors.alphabetical.none":"Alphabetical index of absolutely no author", +"authors.alphabetical.none":"Indice alfabetico indipendente dall'autore", "authors.alphabetical.one":"Indice alfabetico di un solo autore", "authors.title":"Autori", "authorword.many":"{0} autori", @@ -20,40 +20,40 @@ "content.series":"Collana:", "content.series.data":"Libro {0} nella collana {1}", "content.summary":"Riassunto:", -"##TODO##customize.email":"Set your email (to allow book emailing)", -"##TODO##customize.fancybox":"Use a Lightbox", -"##TODO##customize.filter":"Enable tag filtering", -"##TODO##customize.paging":"Max number of books per page (-1 to disable)", -"##TODO##customize.style":"Theme", -"##TODO##customize.title":"Customize COPS UI", -"##TODO##home.alternate":"Home", -"##TODO##i18n.coversection":"Cover", +"customize.email":"Imposta la tua email (per permettere l'invio di email)", +"customize.fancybox":"Usa una Lightbox", +"customize.filter":"Abilita il filtro per argomento", +"customize.paging":"Numero massimo di libri per pagina (-1 per disabilitare)", +"customize.style":"Tema", +"customize.title":"Personalizza l'interfaccia di COPS", +"home.alternate":"Home", +"i18n.coversection":"Copertina", "language.title":"Lingua", -"##TODO##languages.alphabetical.many":"Alphabetical index of the {0} languages", -"##TODO##languages.alphabetical.none":"Alphabetical index of absolutely no language", -"##TODO##languages.alphabetical.one":"Alphabetical index of the single language", -"##TODO##languages.title":"Languages", -"##TODO##mail.messagenotsent":"Message could not be sent.", -"##TODO##mail.messagesent":"Message has been sent", -"##TODO##paging.next.alternate":"Next", -"##TODO##paging.previous.alternate":"Previous", -"##TODO##permalink.alternate":"Permalink", -"##TODO##pubdate.title":"Publication year", +"languages.alphabetical.many":"Indice alfabetico delle {0} lingue", +"languages.alphabetical.none":"Indice alfabetico indipendente dalla lingua", +"languages.alphabetical.one":"Indice alfabetico della singola lingua", +"languages.title":"Lingue", +"mail.messagenotsent":"L'e-mail non può essere spedita.", +"mail.messagesent":"L'e-mail è stata spedita", +"paging.next.alternate":"Prossimo", +"paging.previous.alternate":"Precedente", +"permalink.alternate":"Permalink", +"pubdate.title":"Anno di publicazione", "recent.list":" I {0} libri più recenti", "recent.title":"Ultime aggiunte", -"##TODO##search.alternate":"Search", -"##TODO##search.result":"Search result for *{0}*", -"##TODO##search.sortorder.asc":"Asc", -"##TODO##search.sortorder.desc":"Desc", +"search.alternate":"Cerca", +"search.result":"Risultati per *{0}*", +"search.sortorder.asc":"Asc", +"search.sortorder.desc":"Disc", "series.alphabetical.many":"Indice alfabetico di {0} collane", -"##TODO##series.alphabetical.none":"Alphabetical index of absolutely no series", +"series.alphabetical.none":"Indice alfabetico indipendente dalla collana", "series.alphabetical.one":"Indice alfabetico di una sola collana", "series.title":"Collane", -"##TODO##sort.alternate":"Sort", +"sort.alternate":"Ordina", "splitByLetter.book.other":"Altri libri", "splitByLetter.letter":"{0} che iniziano per {1}", "tags.alphabetical.many":"Indice alfabetico di {0} argomenti", -"##TODO##tags.alphabetical.none":"Alphabetical index of absolutely no tag", +"tags.alphabetical.none":"Indice alfabetico indipendente dall'argomento", "tags.alphabetical.one":"Indice alfabetico del solo argomento", "tags.title":"Argomenti", "tagword.title":"Argomenti", From a42cda521d720e7252cb519b6a5ebd364bbd9991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Thu, 19 Sep 2013 15:14:26 +0200 Subject: [PATCH 5/5] Enhance Dutch translation. Thanks to Mariosipad (@MobileRead). re #37 --- lang/Localization_nl.json | 58 +++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/lang/Localization_nl.json b/lang/Localization_nl.json index 125fd11..f9d9c59 100644 --- a/lang/Localization_nl.json +++ b/lang/Localization_nl.json @@ -1,11 +1,11 @@ { -"##TODO##about.title":"About COPS", +"about.title":"Over COPS", "allbooks.alphabetical.many":"Alfabetische index van {0} boeken", -"##TODO##allbooks.alphabetical.none":"Alphabetical index of absolutely no book", +"allbooks.alphabetical.none":"Alfabetische index van absoluut geen enkel boek", "allbooks.alphabetical.one":"Alfabetische index van 1 boek", "allbooks.title":"Alle boeken", "authors.alphabetical.many":"Alfabetische index van {0} auteurs", -"##TODO##authors.alphabetical.none":"Alphabetical index of absolutely no author", +"authors.alphabetical.none":"Alfabetische index van absoluut geen enkele auteur", "authors.alphabetical.one":"Alfabetische index van 1 auteur", "authors.title":"Auteurs", "authorword.many":"{0} auteurs", @@ -16,44 +16,44 @@ "bookword.none":"Geen boek", "bookword.one":"1 boek", "bookword.title":"Boeken", -"##TODO##cog.alternate":"Search, sort and filters", +"cog.alternate":"Zoeken, sorteren en filters", "content.series":"Series:", "content.series.data":"Boek {0} in de {1} serie", "content.summary":"Samenvatting", -"##TODO##customize.email":"Set your email (to allow book emailing)", -"##TODO##customize.fancybox":"Use a Lightbox", -"##TODO##customize.filter":"Enable tag filtering", -"##TODO##customize.paging":"Max number of books per page (-1 to disable)", -"##TODO##customize.style":"Theme", -"##TODO##customize.title":"Customize COPS UI", -"##TODO##home.alternate":"Home", +"customize.email":"Email-adres ontvanger (om boeken te versturen per elektronische post)", +"customize.fancybox":"Gebruik een Lightbox", +"customize.filter":"Zet filteren op tag aan", +"customize.paging":"Maximaal aantal boeken per pagina (-1 voor oneindig aantal)", +"customize.style":"Opmaak COPS gebruikersomgeving", +"customize.title":"Aanpassen COPS gebruikersomgeving", +"home.alternate":"Terug (home)", "i18n.coversection":"Omslag", "language.title":"Taal", -"##TODO##languages.alphabetical.many":"Alphabetical index of the {0} languages", -"##TODO##languages.alphabetical.none":"Alphabetical index of absolutely no language", -"##TODO##languages.alphabetical.one":"Alphabetical index of the single language", -"##TODO##languages.title":"Languages", -"##TODO##mail.messagenotsent":"Message could not be sent.", -"##TODO##mail.messagesent":"Message has been sent", -"##TODO##paging.next.alternate":"Next", -"##TODO##paging.previous.alternate":"Previous", -"##TODO##permalink.alternate":"Permalink", -"##TODO##pubdate.title":"Publication year", +"languages.alphabetical.many":"Alfabetische index van {0} talen", +"languages.alphabetical.none":"Alfabetische index van absoluut geen enkele taal", +"languages.alphabetical.one":"Alfabetische index van taal", +"languages.title":"Talen", +"mail.messagenotsent":"Bericht kon niet verzonden worden.", +"mail.messagesent":"Bericht is verzonden", +"paging.next.alternate":"Volgende", +"paging.previous.alternate":"Vorige", +"permalink.alternate":"Permalink", +"pubdate.title":"Jaar van publicatie", "recent.list":"{0} meest recente boeken", -"recent.title":"Recent toegevoegd", -"##TODO##search.alternate":"Search", -"##TODO##search.result":"Search result for *{0}*", -"##TODO##search.sortorder.asc":"Asc", -"##TODO##search.sortorder.desc":"Desc", +"recent.title":"Recent toegevoegde boeken", +"search.alternate":"Zoeken", +"search.result":"Zoekresultaat voor *{0}*", +"search.sortorder.asc":"A-Z", +"search.sortorder.desc":"Z-A", "series.alphabetical.many":"Alfabetische index van {0} series", -"##TODO##series.alphabetical.none":"Alphabetical index of absolutely no series", +"series.alphabetical.none":"Alfabetische index van absoluut geen ekele serie", "series.alphabetical.one":"Alfabetische index van 1 serie", "series.title":"Series", -"##TODO##sort.alternate":"Sort", +"sort.alternate":"Sorteren", "splitByLetter.book.other":"Andere boeken", "splitByLetter.letter":"{0} beginnend met {1}", "tags.alphabetical.many":"Alfabetische index van {0} tags", -"##TODO##tags.alphabetical.none":"Alphabetical index of absolutely no tag", +"tags.alphabetical.none":"Alfabetische index van absoluut geen enkele tag", "tags.alphabetical.one":"Alfabetische index van 1 tag", "tags.title":"Tags", "tagword.title":"Tags",