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:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwEqv2DLTH7GwFnJ8ObLLTgDM29IdNoOccL_3fGWPK3HlWlbuiuZhQItJaccrOBWwzZJSRL3E7YxH597Ar5heHZV0vzIC61Szec8LvPqw25jELDwmLdQrUu1FZ9G4MPPBB72yHqcSTWrA/s400/language_in_liferay.png)