11-23-2008, 07:21 AM | #1 |
Roger Wilmut
Posts: 18
Karma: 16
Join Date: Nov 2008
Location: London, UK
Device: Sony PRS505
|
Dates in Russian (?)
Fetching a custom feed from 'The Observer' newspaper - which worked normally before - produces this interesting result in the latest version of calibre:
and |
11-23-2008, 11:52 AM | #2 | |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
Kovid? Last edited by kiklop74; 11-23-2008 at 11:55 AM. |
|
Advert | |
|
11-23-2008, 12:36 PM | #3 |
Roger Wilmut
Posts: 18
Karma: 16
Join Date: Nov 2008
Location: London, UK
Device: Sony PRS505
|
Serbian! I might add that I have English specified in the settings.
Last edited by Roger Wilmut; 11-23-2008 at 12:38 PM. |
11-23-2008, 04:03 PM | #4 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
|
11-23-2008, 06:08 PM | #5 | |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
Code:
def download(self, *args, **kwargs): self.timefmt = 'set this to a lcoalized string' return BasicNewsRecipe.download(self, *args, **kwargs) |
|
Advert | |
|
11-23-2008, 07:11 PM | #6 |
Roger Wilmut
Posts: 18
Karma: 16
Join Date: Nov 2008
Location: London, UK
Device: Sony PRS505
|
Yes, a Mac (Leopard). I didn't use any recipe, just put the Observer's feeds URL in and set the number of days. A week ago it worked fine: today after the upgrade to the new version of Calibre it had the result you saw. Not a disaster as the actual text was fine.
|
11-23-2008, 07:56 PM | #7 | |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
I'm not that fluent with python but is there something like constructor/destructor in python class? Because if there is I would be able to modify the class to set locale on construction and revert it to the original one in destructor. |
|
11-23-2008, 09:42 PM | #8 |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can set timefmt to the actual day and month in serbian, rather than a format string
|
11-24-2008, 07:11 AM | #9 |
Roger Wilmut
Posts: 18
Karma: 16
Join Date: Nov 2008
Location: London, UK
Device: Sony PRS505
|
I tried this with the New York Times news feed which is already in Calibre, and got the same result: dates in Serbian. I previously tried the Observer in the prior version of Calibre, which was OK, and then in the latest version - again, dates in Serbian. Calibre is set to English. There doesn't appear to be anything I can do to alter this - is it in effect a bug which needs fixing? (I'm using Calibre on Macs with Tiger and Leopard).
|
11-24-2008, 03:29 PM | #10 |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah this will be fixed in the next release.
|
11-24-2008, 07:22 PM | #11 |
Roger Wilmut
Posts: 18
Karma: 16
Join Date: Nov 2008
Location: London, UK
Device: Sony PRS505
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle3 Order Cut-Off Dates | Tuba | Amazon Kindle | 21 | 09-07-2010 12:03 AM |
Article Dates with parse_index | EnergyLens | Calibre | 6 | 04-21-2010 11:13 PM |
How to search for dates (published or entered)? | Starson17 | Calibre | 29 | 04-11-2010 12:03 AM |
Kindle 2 Shipping Dates | Cutestory | Amazon Kindle | 29 | 02-13-2009 12:30 PM |
HanLin Russian review in Russian | TadW | HanLin eBook | 3 | 05-23-2006 04:32 AM |