Laliwala IT Services

Laliwala IT Services
Website Development

Thursday, February 24, 2011

Using Locale Language, liferay language portlet, liferay applictions, liferay module, liferay glassfish, liferay webspace, liferay portlet language





































































































































































































Rajesh Babu : Hi,










i had added the language hi_IN in the portal succesfully. In the language portlet, it is showing as hindi(india). now i have 2 modify it to hindi only.








i.e., hindi(india) ---- hindi








i had modified in the view.jsp of the language portlet in the path








\webspace\glassfish2\domains\domain1\applications\j2ee-modules\webspace\html\portlet\language








but it is not modifying.








if u know the achieve it, then plz xplain me 2.






Mazhar Anwar : Hi Rajesh,








There are 3 steps to achieve it.








1) You have to add one more locale in portal-ext.properties.





Please the check the following property in portal.properties of Liferay source.








You need to override locales and add hi_IN for Hindi and India.








2) Add a hi_IN.png image of our flag in your theme folder /images/language folder.








3) Create Language_hi.properties and Language_hi.properties.native in ext-impl/src/content folder.

No comments:

Post a Comment