Internationalization for custom portlet in liferay
Here the following points are to define Internationalization in custom portlet
1. Create <resource-bundle>content/Language</resource-bundle> in portlet .xml before supports tag.
2. Create folder content in docroot/WEB-INF/src path and create Language.properties file in content folder.
3. write the entries in the Language.properties file or language_fr.properties file as
search-title = Search Title
4. In our JSP add the liferay tag to detect the property.
<liferay-ui:message key="search-title"/>
Also you can use LanguageUtil Utilty class to get entries
Comments
Post a Comment