T.forse('ru-ru') to
T.force('ru-ru') you spelt force wrong like the error says, T doesn't have a forse attribute On Tue, Feb 14, 2012 at 10:37 PM, cyber <vlad.mul...@gmail.com> wrote: > I tried to use this elegant method but now I have this error message: > "AttributeError: 'translator' object has no attribute 'forse'" > > In the very top of my db.py I wrote: > T.forse('ru-ru') > And into my languages/ru-ru.py I wrote: > '%Y-%m-%d': '%d.%m.%Y' > '%Y-%m-%d %H:%M:%S': '%d.%m.%Y %H:%M:%S' > > What I did wrong? > > > > On 14 фев, 17:30, Adi <adnan.smajlo...@gmail.com> wrote: > > you can enforce the date format through the language... > > > > this is how I use it, and I think there is a thread where Massimo > explained > > it before.... > > > > in my db.py: > > > > T.force('en-aa') > > > > in en-aa.py: > > > > %Y-%m-%d translate to %b %d, %Y > > > > and all dates became a new format, display and input fields as well... > -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.warplydesigned.com http://www.fitnessfriendsfinder.com