On Wednesday, July 25, 2012 11:48:34 AM UTC+3, ctrlSoft wrote:
>
>
>
> On Tuesday, July 24, 2012 5:58:16 PM UTC+3, dbdeveloper wrote:
>>
>> ctrlSoft, is issue still present ?
>>
>> Vladyslav Kozlovskyy (Ukraine)
>>
>> 23.07.12 13:32, ctrlSoft написав(ла):
>>
>> datetime format is: 2012-07-18 10:00:00
>>
>> hi in view i have following code:
>> <td>{{=prettydate(row.deadline,T)}}</td>
>>
>> but result is :
>> %d days ago
>> %d days ago
>> %d days ago
>> %d days ago
>> ...
>> 1 week ago
>> 1 week ago
>> ...
>> %d weeks ago
>> %d weeks ago
>> %d weeks ago
>>
>> how to display
>> 4 days ago
>> 5 days ago
>> ...
>> 2 weeks ago
>> 3 weeks ago
>> ...
>> ...
>>
>> --
>>
>>
>> ( web2py version is from trunk.) i tried Bruno solution
>> <td>{{=prettydate(row.deadline, lambda x: x)}}</td> and it works...
>>
>> bu i need with translation, <td>{{=prettydate(row.deadline, lambda x:
> x)}}</td>, i have all transaltion files in laguages folder
>
>
--