07-24-2012, 04:21 PM | #1 |
Reader
Posts: 46
Karma: 162
Join Date: Nov 2010
Location: Hannover
Device: Kindle KB and Kindle Fire HD 8.9
|
Translations in de.po
In the file de.po are translations that do not work in searches.
#: /home/kovid/work/calibre/src/calibre/library/caches.py:397 msgid "thismonth" msgstr "in diesem Monat" #: /home/kovid/work/calibre/src/calibre/library/caches.py:400 #: /home/kovid/work/calibre/src/calibre/library/caches.py:401 msgid "daysago" msgstr "vor Tagen" The search: last_modified:>"in diesem monat" gives no result. Is it possible that in searches no spaces are allowed? in that case it could be changed in: old: in diesem Monat New: diesemMonat old: vor Tagen New: vorTagen but it's also possible that I do something wrong. |
07-25-2012, 02:38 AM | #2 |
Grand Sorcerer
Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
First, you are putting the quote marks in the wrong place. To quote a value in searches, the opening quote goes after the colon, as in last_modified:">in diesem monat"
However, even after doing that the searches won't work. The problem is the capital letters in the translated string. The code (well, OK, I) did not account for this possibility. I have submitted a fix for the capital letter problem. While there, I also added the possibility to use values that are never translated: _today, _yesterday, _daysago, _thismonth. These changes will be available in the next release of calibre. |
Advert | |
|
07-25-2012, 05:13 AM | #3 |
Reader
Posts: 46
Karma: 162
Join Date: Nov 2010
Location: Hannover
Device: Kindle KB and Kindle Fire HD 8.9
|
thank you Chaley. (also for the quick response)
|
04-14-2013, 03:44 AM | #4 |
Junior Member
Posts: 9
Karma: 10
Join Date: Apr 2013
Device: Kobo
|
A hint on the translations, the possibility of using an underscore and how to find out the exact translated words should go in the manual. They are kind of hard to guess...
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Translations - More than one Language? | BearMountainBooks | General Discussions | 15 | 12-19-2010 07:06 AM |
UK-US-OZ translations? | James_Wilde | Writers' Corner | 2 | 12-08-2010 04:49 PM |
Translations | seagull | Upload Help | 0 | 03-01-2010 10:47 AM |
Translations and copyright | Hedonismbot | Reading Recommendations | 2 | 09-01-2009 08:26 AM |
Capek translations | Nate the great | Workshop | 2 | 01-29-2008 05:33 AM |