Contents |
This page describes how to change text on a page of the JSPUI.
The location of the files you'll want to edit depend on which version of DSpace you are using, as the location of the primary JSP folder has changed in DSpace over the years.
[dspace-source]/dspace-api/src/main/resources/Messages.properties
[dspace-source]/dspace-jspui/src/main/webapp/
(JSP containing the text you want to change)[dspace-source]/dspace-api/src/main/resources/Messages.properties
[dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/
(JSP containing the text you want to change)[dspace-source]/config/language-packs/Messages.properties
[dspace-source]/jsp/
(JSP containing the text you want to change)Note: Messages.properties contains pairs of "keys" and "values". For example:
jsp.home.search1 = Search |
Generally speaking, the "key" usually refers to the location of the JSP on which this text resides (e.g. jsp.home.search
is "search-related" text displayed in home.jsp
)
If Messages.properties contains that text in more than one place, open the relevant JSP and find the key
attribute of the appropriate <fmt:message>
element. For example:
<fmt:message key="jsp.home.search1" /> |
When adding or modifying text in Messages.properties, be very careful that you have automatic word-wrap turned off in your text editor! The "key" and its corresponding "value" must always be on the same line within Messages.properties (e.g.) This is NOT a valid entry in Messages.properties:
jsp.community-home.heading1 = This is a really long heading which actually gets wrapped automatically by my text editor so that it ends up on three separate lines. |