Hi,
I have this mako template where I want to print a message but part of
it depends on a certain variable that I will get from the controller.
E.g.:
${_(u'No tickets were found in the last n days')}
where "n" comes from the variable c.lastNdays in the controller.
How can I place it correctly in the template?
I'm using
${_(u'No tickets were found in the last ')}${c.lastNdays} ${_
(u'days')}
but I'm sure there should be a better way to have a proper
translatable string, like:
${_(u'No tickets were found in the last %(num)d days') %
{'num':c.lastNdays}}
although this last one raises an error in the template.
TIA,
Mariano.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---