Re: [web2py] Re: prettydate question

2012-07-25 Thread Massimo Di Pierro
I tried with your language file and I cannot reproduce the problem. BTW, your language file does not seem to have a translation for those strings. On Wednesday, 25 July 2012 15:56:31 UTC-5, Alec Taylor wrote: > > Thanks > > On Thu, Jul 26, 2012 at 6:40 AM, ctrlSoft wrote: > >> >> >> On Wednesday

Re: [web2py] Re: prettydate question

2012-07-25 Thread Alec Taylor
Thanks On Thu, Jul 26, 2012 at 6:40 AM, ctrlSoft wrote: > > > On Wednesday, July 25, 2012 7:17:43 PM UTC+3, Alec Taylor wrote: >> >> On Tue, Jul 24, 2012 at 2:28 AM, ctrlSoft wrote: >> >>> yes. > http://i.imgur.com/jaeop.jpg >>> >>> http://i.imgur.com/xPBG1.jpg >>> >>> Quick aside, th

Re: [web2py] Re: prettydate question

2012-07-25 Thread ctrlSoft
On Wednesday, July 25, 2012 7:17:43 PM UTC+3, Alec Taylor wrote: > > On Tue, Jul 24, 2012 at 2:28 AM, ctrlSoft wrote: > >> yes. >>> http://i.imgur.com/jaeop.jpg >> >> http://i.imgur.com/xPBG1.jpg >> >> Quick aside, that view you've screenshotted, would you be able to show me > the code

Re: [web2py] Re: prettydate question

2012-07-25 Thread Alec Taylor
On Tue, Jul 24, 2012 at 2:28 AM, ctrlSoft wrote: > yes. >>> >> http://i.imgur.com/jaeop.jpg > > http://i.imgur.com/xPBG1.jpg > > Quick aside, that view you've screenshotted, would you be able to show me the code (view+controller) you used to generate it? --

Re: [web2py] Re: prettydate question

2012-07-23 Thread Bruno Rocha
do you have an it-it.py in languages folder? looks like the encoding of translations file is corrupted. try replacing T with lamba x: x for testing {{=prettydate(row.deadline, lambda x: x)}} On Mon, Jul 23, 2012 at 1:28 PM, ctrlSoft wrote: > yes. >>> >> http://i.imgur.com/jaeop.jpg > > http

[web2py] Re: prettydate question

2012-07-23 Thread ctrlSoft
> > yes. >> > http://i.imgur.com/jaeop.jpg http://i.imgur.com/xPBG1.jpg --

[web2py] Re: prettydate question

2012-07-23 Thread Massimo Di Pierro
Are you saying you actually get "%d" in the output? On Monday, 23 July 2012 05:32:08 UTC-5, ctrlSoft wrote: > > datetime format is: 2012-07-18 10:00:00 > > hi in view i have following code: > {{=prettydate(row.deadline,T)}} > > but result is : > %d days ago > %d days ago > %d days ago > %d