2011/12/13 Bruno Rocha <[email protected]>

>
>
> On Wed, Dec 7, 2011 at 12:40 PM, Martin Weissenboeck 
> <[email protected]>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) )
>

But every new value of "value" produces in a new entry in the translation
file.

>
> Martin

Reply via email to