Foros de discusión

Without any hook or ext how do I have Language-ext_*.properties file?

Kush Sahu, modificado hace 10 años.

Without any hook or ext how do I have Language-ext_*.properties file?

Junior Member Mensajes: 25 Fecha de incorporación: 7/08/12 Mensajes recientes
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.
thumbnail
Tonu Sri, modificado hace 10 años.

RE: Without any hook or ext how do I have Language-ext_*.properties file?

Regular Member Mensajes: 197 Fecha de incorporación: 15/04/11 Mensajes recientes
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
Kush Sahu, modificado hace 10 años.

RE: Without any hook or ext how do I have Language-ext_*.properties file?

Junior Member Mensajes: 25 Fecha de incorporación: 7/08/12 Mensajes recientes
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
thumbnail
Tonu Sri, modificado hace 10 años.

RE: Without any hook or ext how do I have Language-ext_*.properties file?

Regular Member Mensajes: 197 Fecha de incorporación: 15/04/11 Mensajes recientes
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