Overriding a Language.properties File

Hooks let you change any of the messages displayed by Liferay, to suit your needs. To do so, create a Language file for the locale of the messages you want to customize, then refer to your file from your liferay-hook.xml file. For example, to override the Spanish and French message translations of portal’s Language.properties file, create Language files for them in the same directory, and refer to these language files in your liferay-hook.xml file, like so:


Great! You now know how to customize language keys. Next, let’s discuss extending your Indexer Post Processor.

« Overriding a Portal ServiceExtending the Indexer Post Processor »
0 人中有 0 人觉得有帮助