Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Not able to override language properties in maven
Hi All,
I am using liferay 6.2
I have created hook for overriding language keys using maven. I have tried all the possible way of placing the language files in the project. Still the properties are not overriding.
Could u please help me what I could missed from my side?
See attched image for the Project structure.
This is my liferay-hook.xml
<?xml version="1.0"?>
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd">
<hook>
<language-properties>
content/Language_en.properties
</language-properties>
<custom-jsp-dir>/META-INF/custom_jsps</custom-jsp-dir>
</hook>
Thanks in advance.
I am using liferay 6.2
I have created hook for overriding language keys using maven. I have tried all the possible way of placing the language files in the project. Still the properties are not overriding.
Could u please help me what I could missed from my side?
See attched image for the Project structure.
This is my liferay-hook.xml
<?xml version="1.0"?>
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd">
<hook>
<language-properties>
content/Language_en.properties
</language-properties>
<custom-jsp-dir>/META-INF/custom_jsps</custom-jsp-dir>
</hook>
Thanks in advance.
Attachments:
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™