i read somewhere (don’t find it anymore) that i can use EL Expresions in the resource bundle and then use it without changes in *.xhtml files.
some.text=#{someBean.stepsLeft} more
to switch the position of the variable in different languages. But actually it wont work.
I can use Interpolator class to handle the parsing or add some.text.before some.text.after and let one of them empty. I would prefer it to use it without interpolator.interpolate() if possible.
JSF resourcebundles does by default not resolve EL. It however by default supports
MessageFormatAPI in combination with<h:outputFormat>and<f:param>.with
You can even explicitly make it a
numbertype so that e.g.1000will be displayed as1,000or1.000depending on the view locale.For more formatting options see thus the
MessageFormatAPI documentation.