Commit graph

29 commits

Author SHA1 Message Date
Sébastien Lucas 1e165fb574 Fix the languages string to add consistancy (plural form). re #34 2013-12-19 08:24:02 +01:00
Sébastien Lucas c71f443356 The ignored categories is now in the customize UI page. re #34
It's far from complete but it works. I'll have to check the strings consistancy.
2013-12-17 22:45:51 +01:00
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
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 d7aa7af16e Add new strings for the future search. re #34 2013-09-27 17:15:00 +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
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 e44d242af3 localize some string. re #25 2013-06-04 21:08:11 +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 faaf4ca43c almost finish CSS change. re #25 2013-05-29 21:30:37 +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
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
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