Language
Hook
Uses I18N
concepts
Overriding Language properties
How to create
Language.properties?
· Create Project > New >Liferay Project > Project
Name > Select the Plugin Portlet > click on ‘Finish’
· Now Go To Project
> Open Liferay_display.xml
So,there we can find category.sample in place of
sample you can give any name(your choice).Suppose take suresh
· Right click on Project
> New > Liferay Hook
=>select Language.properties
=>then click Next
· Go to add give in
‘create language properties’ > Language Property Files > Click ‘add’
button and give Language_en.properties > Click ‘ok’ > click on ‘Finish’
· Then Go to
Liferay_display.xml copy category.suresh then paste in Language_en.properties.
Give, category.kumar= kumar
· Deploy in Ant and
run on server
No comments:
Post a Comment