In controller:
T(text %s % value) - LazyT obj instance
T(text %s) % value - str obj
But in views, when the return value is used (i.e. doing =value) this
is the output:
=T(text %s % value) - translated and interpolated text
=T(text %s) % value - translated and interpolated text
Wich of these
Nevermind my last post, it is explained in the book, but here is an
ambiguous book's passage:
Concatenating translation translated strings and normal strings is
possible:
1.
T(blah ) + name + T( blah) # invalid!
but the opposite no:
1.
name + T( blah) # invalid!
I cannot see by reading
They both seem to work in the shell.
On Wednesday, December 14, 2011 8:29:56 PM UTC-5, Alan Etkin wrote:
Nevermind my last post, it is explained in the book, but here is an
ambiguous book's passage:
Concatenating translation translated strings and normal strings is
possible:
1.
T(blah )
yes, the new code is in 1.99.3
2011/12/7 Anthony abasta...@gmail.com
I think it has already been changed in trunk -- can you check it there?
On Wednesday, December 7, 2011 9:40:28 AM UTC-5, mweissen wrote:
I think line 1566 of gluon/sqlhtml.py
message = error or T('%(nrows)s records
I think it has already been changed in trunk -- can you check it there?
On Wednesday, December 7, 2011 9:40:28 AM UTC-5, mweissen wrote:
I think line 1566 of gluon/sqlhtml.py
message = error or T('%(nrows)s records found' % dict(nrows=nrows))
should be
message = error or T('%(nrows)s records
5 matches
Mail list logo