Foros de discusión
JSF portlet i18n
Alba García, modificado hace 11 años.
JSF portlet i18n
Junior Member Mensajes: 49 Fecha de incorporación: 10/02/11 Mensajes recientes
I would like how get a jsf portlet internationalized in several languages. For example es_ES and en_US.
¿Does anybody know how and wich configuration files must have been modified?
Thanks in advance!
¿Does anybody know how and wich configuration files must have been modified?
Thanks in advance!
Oliver Bayer, modificado hace 11 años.
RE: JSF portlet i18n
Liferay Master Mensajes: 894 Fecha de incorporación: 18/02/09 Mensajes recientes
Hi Alba,
if you're facing Liferay JSF bugs I can't help because I don't use JSF portlets. But if you need a how-to I can give you some hints how it's done in a standalone web application.
Examples for:
1)
2)
HTH Oli
if you're facing Liferay JSF bugs I can't help because I don't use JSF portlets. But if you need a how-to I can give you some hints how it's done in a standalone web application.
- define your resource bundles inside faces-config.xml (the base-name is the package path to your language keys and var is the shortcut used in the jsf markup)
- use the language keys in the jsf markup
Examples for:
1)
<resource-bundle>
<base-name>content.mylanguagekeys</base-name>
<var>mlk</var>
</resource-bundle>
2)
<h:outputtext id="test" value="#{mlk.some-language-key}" />
HTH Oli
Neil Griffin, modificado hace 11 años.