There are two issues here, the first is that 'ago' it is NOT in my language 
file and if you look in  gluon/tools.py you will see that 
suffix = ' ago ' and NOT  suffix = T(' ago') . Anyway this is in my 
 gluon/tools.py file.
OK I replaced  it with:  suffix = T(' ago') .which should be part of the 
web2py in the first place or I am missing something.

The second issue is that even if I replaced it as above I still can't find 
'ago' in my language file. In addition I can only find '%d weeks ago': '%d 
uge siden', in my language file. Nothing else from prettydate function in 
my language file.
What am I doing wrong ?
Thanks





On Saturday, July 4, 2015 at 1:45:24 PM UTC+2, icodk wrote:
>
> Is there any reason why the 'ago' is not translate in 
> prettydate  (gluon/tools.py) ?
>
> *suffix = ' ago'* instead of:
> *suffix = ** T(" ago")*
>
> In Danish that will be translated to: 'siden'
> Also I can't find the other strings in my language file
> T('1 year' + suffix)
> T('1 month' + suffix)
> etc.
>
> I can only find:
> %d weeks ago
>
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to