Hi,

On 09/30/2016 08:05 AM, Donald Bynum wrote:
On Thursday, September 29, 2016 at 2:49:16 PM UTC-4, Donald Bynum wrote:
This is driving me nuts.  I want to change the content of various strings in the messages.xml file in the xmlui application.  I have edited the following:

dspace/source/modules/xmlui/target/xmlui-5.5/i18n/messages.xml

Then I repackage with mvn -U clean package
Then redeploy with ant update

All I end up with is the original messages.xml in the webapps/xmlui/i18n folder.

Obviously, I am editing the wrong source file.  Could someone please tell me which source messages.xml file I should be editing in order to get my changes in the build.

Before someone points me to the documentation, I have looked there.  This is where I think I need some guidance.  In the docs iit states I should go to the messages.xml source file located at:

[dspace-source]/dspace/modules/xmlui/src/main/webapp

 
However, all I see in that folder is a file named ".gitignore"

You need to copy [dspace-src]/dspace-xmlui/src/main/webapp/i18n/messages.xml to [dspace-source]/dspace/modules/xmlui/src/main/webapp/i18n, then edit the copy (alternatively, edit the first file in place). See https://wiki.duraspace.org/display/DSDOC5x/Localization+L10n#LocalizationL10n-Wheretofindthemessagecatalog but I agree it isn't super clear there that you should copy that file to the modules directory. See also https://wiki.duraspace.org/display/DSDOC5x/Advanced+Customisation for general information on customising DSpace and note the explanation of the "quick build" vs "full build" there -- essentially if you edit the file in [dspace-src]/dspace-xmlui directly you will need to use the full build option from then on.

Never edit anything in "target" directories, those are generated / overwritten when you run mvn.

cheers,
Andrea

-- 
Dr Andrea Schweer
Lead Software Developer, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120


--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to