Monday, November 18, 2013

Portlet localization in Liferay

There is no question that Liferay portal supports localization.
But how the localization support for Portlet deployed in Liferay When locale changed?

To support localization for our own developed portlet.
1. Produce different resource bundle for different languages.
    a) By default, Portlet developed with Liferay Plugin SDK comes with a resource bundle named as Language_en_US.properties
    b) duplicate Language_en_US.properties, then rename it to suit other locale. eg, Language_in_ID.properties.

    c) replace all the bundle keys with new bundle description.

2. add the new resource bundle into liferay-hook.xml


Done!!

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...