I'm trying to print something like that in my view :
>
> *31* results found
(notice the bold number)
I used the pluralization engine like this:
T('%s %%{result} %%{found}', symbols=num_offers)
And it gives the right string but obviously not styled.
Other attempts:
T(XML('<strong>%s</strong>)' + ' %%{result} %%{found}', symbols=num_offers)
T(STRONG('%s')+' %%{result} %%{found}', symbols=num_offers)
STRONG(num_offers) + T(' %%{result} %%{found}', symbols=num_offers)
None of these are working for me.
What's the right way to do this ?
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.