Thymeleaf - Tiles I18N

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Thymeleaf - Tiles I18N

dhrubo
I have Tiles String attribute in my definition which I want to show in title of my page.
But I am unable to internationalize that message. Any help will be highly appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: Thymeleaf - Tiles I18N

danielfernandez
Administrator
Hi,

I'm afraid at the moment Tiles attributes of type "string" cannot hold Standard expressions (like #{...} for i18n). With the current version of thymeleaf-extras-tiles2, you will need to include an .html template holding such #{...} expression.

Nevertheless, evaluating expressions in type="string" attributes should be a nice addition to the module. They can already be executed in type="thymeleaf" attributes, so this should not be a huge effort to develop. Would you be so kind to add an enhancement at https://github.com/thymeleaf/thymeleaf-extras-tiles2/issues for this?

Thanks a lot,
Daniel.
Reply | Threaded
Open this post in threaded view
|

Re: Thymeleaf - Tiles I18N

danielfernandez
Administrator
For the record, an enhancement ticket has been added here: https://github.com/thymeleaf/thymeleaf-extras-tiles2/issues/8