掲示板
Without any hook or ext how do I have Language-ext_*.properties file?
10年前 に Kush Sahu によって更新されました。
Without any hook or ext how do I have Language-ext_*.properties file?
Junior Member 投稿: 25 参加年月日: 12/08/07 最新の投稿
Hi might be this is a silly question, but as I am beginner learner of liferay so this is confusing me. In my project's liferay/tomcat/webapps/ROOT/WEB-INF/classes/content/ we have some Language-ext_*.properties file, but as I have searched in project there is no ext and even there is no hook corresponding to this properties file.
I also dont know how we can have our customized files inside ROOT directory.
I also dont know how we can have our customized files inside ROOT directory.
10年前 に Tonu Sri によって更新されました。
RE: Without any hook or ext how do I have Language-ext_*.properties file?
Regular Member 投稿: 197 参加年月日: 11/04/15 最新の投稿
Hi Kush,
As per portal.properties file:
# Specify the available locales. Messages corresponding to a specific
# language are specified in properties files with file names matching that
# of content/Language_*.properties. These values can also be overridden in
# properties files with file names matching that of
# content/Language-ext_*.properties. Use a comma to separate
# each entry.
You can have a file name as Language-ext_en.properties(for english) to override original Language_en.properties.
You can place this file inside WEB-INF/classes/content folder. This is another approach other than HOOK. But still we should prefer hook project because of hot deployment.
Thanks:
Tonu
As per portal.properties file:
# Specify the available locales. Messages corresponding to a specific
# language are specified in properties files with file names matching that
# of content/Language_*.properties. These values can also be overridden in
# properties files with file names matching that of
# content/Language-ext_*.properties. Use a comma to separate
# each entry.
You can have a file name as Language-ext_en.properties(for english) to override original Language_en.properties.
You can place this file inside WEB-INF/classes/content folder. This is another approach other than HOOK. But still we should prefer hook project because of hot deployment.
Thanks:
Tonu
10年前 に Kush Sahu によって更新されました。
RE: Without any hook or ext how do I have Language-ext_*.properties file?
Junior Member 投稿: 25 参加年月日: 12/08/07 最新の投稿
Hi Tonu,
Thanks for your explanation.
I have tried to hook through many ways suggested in various sites including Liferay. Since thes eLanguage-ext_*.properties are there which I think has high priority my hook Implementation is not being applied. What should I do in that case?
Thanks,
Kush
Thanks for your explanation.
I have tried to hook through many ways suggested in various sites including Liferay. Since thes eLanguage-ext_*.properties are there which I think has high priority my hook Implementation is not being applied. What should I do in that case?
Thanks,
Kush
10年前 に Tonu Sri によって更新されました。
RE: Without any hook or ext how do I have Language-ext_*.properties file?
Regular Member 投稿: 197 参加年月日: 11/04/15 最新の投稿
Hi Kush,
You can create a Hook and have all changes as defined in Language-ext_language.properties and remove these files from classpath.
After this you will be able to see all changes from your hook only.
Thanks:
Tonu
You can create a Hook and have all changes as defined in Language-ext_language.properties and remove these files from classpath.
After this you will be able to see all changes from your hook only.
Thanks:
Tonu