Quote:
Originally Posted by kovidgoyal
Yeah that would be it. I'm disabling the locale settings in those recipes. One way to acheive what you want is to overload the download function in the recipe, something like this:
Code:
def download(self, *args, **kwargs):
self.timefmt = 'set this to a lcoalized string'
return BasicNewsRecipe.download(self, *args, **kwargs)
|
That does not resolve the issue since the problem is not the format but the actual localized values of days in week and months.
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.