Foren
JSF portlet i18n
Alba García, geändert vor 12 Jahren.
JSF portlet i18n
Junior Member Beiträge: 49 Beitrittsdatum: 10.02.11 Neueste Beiträge
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, geändert vor 12 Jahren.
RE: JSF portlet i18n
Liferay Master Beiträge: 894 Beitrittsdatum: 18.02.09 Neueste Beiträge
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, geändert vor 12 Jahren.