Fórum
JSF portlet i18n
Alba García, modificado 11 Anos atrás.
JSF portlet i18n
Junior Member Postagens: 49 Data de Entrada: 10/02/11 Postagens Recentes
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 11 Anos atrás.
RE: JSF portlet i18n
Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
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 11 Anos atrás.