11-23-2008, 06: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, 10: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 10:55 AM. |
|
Advert | |
|
11-23-2008, 11:36 AM | #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 11:38 AM. |
11-23-2008, 03:03 PM | #4 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
|
11-23-2008, 05:08 PM | #5 | |
creator of calibre
Posts: 44,356
Karma: 23661992
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, 06: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, 06: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, 08:42 PM | #8 |
creator of calibre
Posts: 44,356
Karma: 23661992
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, 06: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, 02:29 PM | #10 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah this will be fixed in the next release.
|
11-24-2008, 06: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-06-2010 11:03 PM |
Article Dates with parse_index | EnergyLens | Calibre | 6 | 04-21-2010 10:13 PM |
How to search for dates (published or entered)? | Starson17 | Calibre | 29 | 04-10-2010 11:03 PM |
Kindle 2 Shipping Dates | Cutestory | Amazon Kindle | 29 | 02-13-2009 11:30 AM |
HanLin Russian review in Russian | TadW | HanLin eBook | 3 | 05-23-2006 03:32 AM |