Thanks! It's just my stupid mistake. But my date fields have not changed. Even if I replace old settings into ru-ru.py: '%Y-%m-%d': '%d.%m.%Y' '%Y-%m-%d %H:%M:%S': '%d.%m.%Y %H:%M:%S'
On 15 фев, 10:49, Bruce Wade <[email protected]> wrote: > 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 <[email protected]> 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 <[email protected]> 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 > Wadehttp://ca.linkedin.com/in/brucelwadehttp://www.wadecybertech.comhttp://www.warplydesigned.comhttp://www.fitnessfriendsfinder.com

