Showing posts with label customise language in liferay. Show all posts
Showing posts with label customise language in liferay. Show all posts

Wednesday, August 11, 2010

Set dwilanguage for portlet title

In this example, I use Bahasa (Malay language) and English.

To set value for each language, we can customize the value in Look and Feel part.
Step 1: Click icon Look and Feel in the portlet header.


Step 2: Click tab Portlet Configuration, check box Use Cutom Title. Then define portlet title to appropriate language.


Step 3: Save.

Then results shown below.
a) Bahasa (Malay language)


b) English.

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.
locales=en_US,ms_MY

Since Malaysia flag icon not available, we need to add the 16 x 11 icon image in
~/tomcat-6.0.18/webapps/portal-theme/images/language
manually.

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].

Output: