Customize Messages.properties

79 views
Skip to first unread message

Lucas Silveira

unread,
Sep 11, 2023, 2:27:04 PM9/11/23
to DSpace Technical Support
Dear colleagues,
In version 6, if it was necessary to customize the labels, simply take the file for example: Messages_pt_BR.properties, customize it and then place the file in dspaceDir/webbapps/jspui/WEB-INF/classes
I'm assuming that dspaceDir is where dspace was installed.
In version 7, does this continue the same way or does it need to be done differently?

Thanks in advance.

DSpace Technical Support

unread,
Sep 12, 2023, 1:10:11 PM9/12/23
to DSpace Technical Support
Hi Lucas,

In DSpace 7 the same approach should work, but you'd need to place them in the "server" webapp (as that's the backend).

The Overlay mechanism still works in DSpace 7 as well, and can be used for this purpose: https://wiki.lyrasis.org/display/DSDOC7x/Advanced+Customisation

Alternatively, if you wanted to compile them into dspace-api, you can place them alongside the default Messages.properties.  https://github.com/DSpace/DSpace/blob/main/dspace-api/src/main/resources/Messages.properties

This Messages.properties is much much smaller in DSpace 7, as it only includes translatable messages on the backend (e.g. error messages and similar).  Most translatable messages have moved to the frontend now.

Tim
Reply all
Reply to author
Forward
0 new messages