Tuesday, April 20, 2010

Customise language in Liferay Portal.

This documentation done based on Liferay 5.2.3, tomcat-6.0.18.

In our portal, we need to use two languages. Malay as Primary and English secondary language.
To localise the language, we configured in portal-ext.properties.
The properties for language is set as shown below.

#limit the language selection.

Since Malaysia flag icon not available, we need to add the 16 x 11 icon image in

It means that when we use language portlet, only two flags will appear in the porlet. We also can put the flag icon in portal theme.
Just use $theme.language() to be wrote in our template [by writing it in portal_normal.vm].