Commit graph

104 commits

Author SHA1 Message Date
At-Libitum 9efcd661a0 **2012-11-22**
**Added global support for publishers**

Files modified:

*base.php*

-   changed class Entry,

	-   adding a constant ```cops:publishers``` to the icon array for the feed.

-   changed class Page

	-   added branches to the page selector switch

-   changed Page->public function InitializeContent

	-   added call to pull publisher count from database

-   changed class PageAllBooks

	-   changed it so ```getCurrentOption``` is actually used...

-   added page descendant class ```PageAllPublishers```

	-   handles pulling the publishers category from database

-   added page descendant class ```PagePublisherDetail```

	-   handles pulling the books per publisher data from database

-   changed class PageQueryResult

	-   added constant and switches for publisher search scope

-   abstract class Base

	-   added constants for the publisher pages

*book.php*

-   added require statement for publisher.php
-   added ```SQL_BOOKS_BY_PUBLISHER``` query to retrieve books by publisher.

-   changed class Book

	-   added query constant
	-   added publisher item
	-   added test in case no known publisher
	-   added publishername and url array elements for the JSON output
	-   added public function ```getPublisher```
	-   added public static function ```getBooksByPublisher``` to fire the query

-   changed function getJson

	-   added publisher category to search
	-   added publishername (single) and publishertitle(plural) localization entries to i18n translation array

*index.php*

-   added require statement for publisher.php

*lang/Localization_en.json

-   added new localization entries for publisher labels (see below)
```
"publisher.alphabetical.many":"Alphabetical index of the {0} publishers",
"publisher.alphabetical.none":"Alphabetical index of absolutely no publisher",
"publisher.alphabetical.one":"Alphabetical index of the single publisher",
"publisher.name":"Publisher",
"publisher.title":"Publishers",
"publisherword.many":"{0} publishers",
"publisherword.none":"No publisher",
"publisherword.one":"1 publisher",

"search.result.publisher":"Search result for *{0}* in publishers",
```

*templates\bookdetail.html*

-   added publisher label and item to bookdetail popup

*test\bookTest.php*

-   added indices and names of publishers added to testdatabase as comment
-   added test function ```testGetBooksByPublisher```
-   changed test function testGetBookById to add assertion for publisher name
-   changed test function testTypeaheadSearch to add search on partial publisher name.

*test\pageTest.php*

-   changed test function testPageIndex to insert publisher category and adjust page indices
-   changed test function testPageIndexWithCustomColum to adjust for the changed page indices
-   added test function testPageAllPublishers
-   added test function testPagePublishersDetail
-   added test function testPageSearchScopePublishers

*test\BaseWithSomeBooks\metadata.db*

-   added 5 publishers spread across all 14 books, replacing the original publisher Feedbooks

Files added:

*publisher.php*
2013-11-22 22:08:09 +01:00
wikiped b35e66d1b7 Update Localization_ru.json
Simplified the plurals for "tags" and other "authors".
2013-11-20 09:30:56 -08:00
wikiped 806f6e22c4 Update Localization_ru.json 2013-11-20 08:08:00 -08:00
Rune Mathisen aff5c43dd8 Update Localization_nb.json 2013-11-09 15:31:27 +01:00
Sébastien Lucas d5c666fd61 Fix some small problems in Chinese translation. re #37 2013-10-18 09:28:04 +02:00
Sébastien Lucas a1adb045dd Enhance Dutch translation. Thanks to Mariosipad (@MobileRead). re #37 2013-10-18 09:27:24 +02:00
wogong 6f8e7eae41 error in series translation fixed 2013-10-17 10:55:43 +08:00
wogong 60141757da Update chinese translation 2013-10-17 10:38:07 +08:00
Pablo Aguiar 6e6ee046f1 Translate new strings and fix other two (re #37) 2013-10-10 04:08:02 -03:00
Sébastien Lucas 23129b9c9e The search page title is now more precise in case a scope is provided. re #34 2013-10-06 18:08:26 +02:00
Sébastien Lucas 8f2b53f336 Update German translation. Thanks to Glimm (@MobileRead). re #37 2013-09-30 10:04:11 +02:00
Sébastien Lucas 733afc2b4c Update the new strings for all languages. re #34 2013-09-28 20:56:46 +02:00
Sébastien Lucas d7aa7af16e Add new strings for the future search. re #34 2013-09-27 17:15:00 +02:00
Sébastien Lucas a42cda521d Enhance Dutch translation. Thanks to Mariosipad (@MobileRead). re #37 2013-09-19 15:14:26 +02:00
Alberto D'Agostini ac48704cc2 Enhance italian translation. re #37 2013-09-18 20:42:10 +02:00
Sébastien Lucas 18decb3cc1 Localize a missing string (cog alternate text). re #37 2013-09-17 16:30:19 +02:00
Sébastien Lucas a46bc7d05a Update all translations to be sure to only have strings really used in COPS. re #39 2013-09-16 20:34:50 +02:00
Pablo Aguiar c5c83522aa Add Portuguese localization file 2013-09-07 03:11:33 -03:00
Sébastien Lucas a3a293630e Fix language prefix for Portuguese. Reported by le_ 2013-07-29 10:19:48 +02:00
Sébastien Lucas cf26e7438c localize many message from mail. re #53 2013-07-23 07:20:58 +02:00
Sébastien Lucas 948c1cb3fa Add a way to enable tag filter directly in the customize page. re #46 2013-07-13 08:29:17 +02:00
Sébastien Lucas bb0ba69c09 Add the email in the customize page. re #53 2013-07-03 23:40:08 +02:00
Sébastien Lucas 15237ee78d Add paging to the customize page. 2013-06-26 21:28:04 +02:00
Sébastien Lucas 3cdab07670 Update some french strings. re #66 2013-06-04 21:17:00 +02:00
Sébastien Lucas e44d242af3 localize some string. re #25 2013-06-04 21:08:11 +02:00
Sébastien Lucas b0a8b6439a Remove again some smiley. fix #71 2013-06-04 15:25:14 +02:00
Sébastien Lucas c74b1b9396 Remove the smiley and some "smart ass" sentences in strings re #71 2013-06-04 15:23:11 +02:00
Sébastien Lucas 86eb135373 Merge pull request #69 from bitjungle/patch-1
Fix the language string
2013-06-03 23:37:20 -07:00
Rune Mathisen 9b835cbaac Removed un-translated strings 2013-06-01 13:18:12 +03:00
Sébastien Lucas faaf4ca43c almost finish CSS change. re #25 2013-05-29 21:30:37 +02:00
bitjungle f96dcb5897 Fix the language string 2013-05-24 14:06:38 +02:00
Rune Mathisen 3dbfdcdcef Create Localization_nb.json
Norwegian bokmål translation
2013-05-24 06:44:12 +02:00
Sébastien Lucas 0825aae6b6 Fix the language string. re #66 2013-05-23 18:32:44 +02:00
ipuiu cdc2114bd8 Added localization for languages. 2013-05-21 21:39:25 +03:00
ipuiu f4e365ce96 Merged Language Feature. 2013-05-21 20:49:21 +03:00
wogong 4c3f9b2820 zh localize almost done 2013-05-07 16:29:17 +08:00
wogong a63e3aded3 update zh 2013-05-07 09:40:21 +08:00
wogong 9908d8e8fa update Localization_zh.json 2013-05-07 09:30:03 +08:00
wogong e2dd39dfdd Chinese localize basicly OK 2013-05-04 11:53:21 +08:00
wogong cc0dcd59c4 add Chinese localozation file 2013-05-04 10:53:55 +08:00
Sébastien Lucas b3cd76d0b5 Fix some missing translation. re #37 2013-04-28 08:23:37 +02:00
Sébastien Lucas e6560be28c Localize all alternate text. re #37 2013-04-21 16:22:26 +02:00
Sébastien Lucas 059f05fac1 Fix some strings. re #37 2013-04-21 15:47:32 +02:00
Sébastien Lucas 73433a1c20 Some more localization. Again thanks to Tobias for the patch. re #37 2013-04-20 15:57:02 +02:00
Sébastien Lucas 560bb69942 Modify some locale handling to better handle plurals. Based on a patch by Tobias. re #37 2013-04-20 15:41:32 +02:00
Sébastien Lucas 0682c568b4 Add missing translation for search result. Based on a patch by Tobias. re #37 2013-04-20 15:19:48 +02:00
Sébastien Lucas 4820ad3db3 Fix strings ... (silly me) 2013-02-20 21:31:23 +01:00
Sébastien Lucas be7a59b934 Add a new string for the pubdate 2013-02-20 21:10:28 +01:00
Northguy f4578376b2 Add dutch translation. 2013-01-29 11:35:57 +01:00
Sébastien Lucas 140c88a63c Fix an alt string that existed in the lang file.
Add a missing translation (more to do about it).
2013-01-06 09:28:49 +01:00
David Ciscar Presas c094e1564c Add catalan translation. 2013-01-03 15:17:21 +01:00
Sébastien Lucas 0787f6ead2 Update i18n from Calibre2Opds
If Excel 64Bits is used the following needs to be done :
Private Declare Function -> Private Declare PtrSafe Function
ByRef lpWideCharStr As Long -> ByRef lpWideCharStr As LongPtr
2012-11-30 09:06:07 +01:00
Sébastien Lucas 9cac9980c1 reduced a little the size of localization file (#1) 2012-05-29 20:22:49 +02:00
Sébastien Lucas e30513b0b3 Add localization support (borrowed from Calibre2OPDS) 2012-05-29 20:10:41 +02:00