![]() |
#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 ![]() |
![]() |
![]() |
![]() |
#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 | |
|
![]() |
#3 | |
Roger Wilmut
![]() Posts: 18
Karma: 16
Join Date: Nov 2008
Location: London, UK
Device: Sony PRS505
|
Quote:
![]() Last edited by Roger Wilmut; 11-23-2008 at 11:38 AM. |
|
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
|
![]() |
![]() |
![]() |
#5 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
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 | |
|
![]() |
#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.
|
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
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
|
![]() |
![]() |
![]() |
#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).
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah this will be fixed in the next release.
|
![]() |
![]() |
![]() |
#11 |
Roger Wilmut
![]() Posts: 18
Karma: 16
Join Date: Nov 2008
Location: London, UK
Device: Sony PRS505
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |