We can also override a Language.properties files from a hook.The process is almost similar to the ones described in this post.
All you need to do is create a Language file for the language whose messages you want to customize and then refer to it from your liferay-hook.xml.
Here are the steps :
1) Specify below property in liferay-portlet.xml.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<hook> | |
<language-properties>content/Language.properties</language-properties> | |
<language-properties>content/Language_en.properties</language-properties> | |
</hook> |
2) Create Lanuguage.properties and Language_en.properties under WEB-INF/src/content.
Provide labels you want to override .