On Wed, Dec 7, 2011 at 12:40 PM, Martin Weissenboeck <mweis...@gmail.com>wrote:

> 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 %:*

-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to