>
> message = error or T('%(nrows)s records found') % dict(nrows=nrows)
>
>
> I think we cannot do the above (unless things have changed)
>
> T(..) gives us a LazyT object which cannot be interpolated as a string,
> because o that we need to interpolate the string before passing it to T(..)
>
> For me the right is
> T("a placeholder %(key)s" % dict(key=value) )
>
> because for me this raises an error:
>
> T("a placeholder %(key)s") % dict(key=value)
>
> *TypeError: unsupported operand type(s) for %:*
Hmm, the book says we can do that (as well as including the dict as a
second argument to
T): http://web2py.com/book/default/chapter/04#T-and-Internationalization.
When I try it in the shell it works.
Anthony
>
>
> --
>
> Bruno Rocha
> [http://rochacbruno.com.br]
>
>