Is there a way to have a parmeterized string in resource bundle? I need this as the order of nouns can be different in different languages.
For e.g. in my English bundle I will have
love_message={0} loves {1}
And my Latin translator will pick it up and do
love_message={0} {1} amet
And in my page I will have something like
<h:outputText value="#{bundle.love_message,John,Jenny}" />
(If this would have been possible)
So that my English translated page reads
Jonh love Jenny
And Latin page reads
John Jenna amet.
How can I achieve this?
Use
<h:outputFormat>instead of<h:outputText>. It can take those parameters as<f:param>: