Pages

Thursday, April 2, 2015

Localize the portlet in liferay

Localize the portlet in liferay

1.Add the below property in Portlet.xml file

<resource-bundle>content.Language</resource-bundle>

Before <portlet-info> parameter

2.Create a folder (content)under src/ 

3.Create Language.properties file and add key value pair for all required constants of a portlet

Configurations save=Save Configurations
javax.portlet.description=Calendar
javax.portlet.title=Calendar

You can run the build Languages target  by right click Language. Properties file to create list of Language property files under the content folder.



On successful build you can get the below output.



No comments:

Post a Comment