Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Formatting fixes, enhanced

Fix

...

???some.key.name???

The Messages.properties file has name and value pairs separated by the equal sign. The name is a dot separated set of labels, in some cases this name is replaced by the value for the labelling labeling of buttons in the jspui web interface.

Code Block
jsp.adminhelp = Admin Help...
jsp.administer = Administer
jsp.admintools = Admin Tools

File:

Fix for DSpace 1.4.2 and earlier versions

Files:

  • Wiki Markup
    \[dspace-source\]/config/language-packs/Messages.properties
  • Wiki Markup
    \[dspace-source\]/jsp/local/ (JSP producing {{\?\?\?some.key.name\?\?\?}} text)

Instructions:

  1. Search for the string inside the question marks in the Messages.properties file.
  2. Search for the same string inside the JSP; it should be the value of a Code Blockkey attribute to a
    Code Block
    <fmt:message>
    <fmt:message> element. If both the JSP and Messages.properties appear to contain the string, be sure the strings match exactly.
  3. If Messages.properties does not contain the string, add it: Code Blocksome.key.name=Text that should appear
  4. Perform the steps in Rebuild +DSpace.

Use cases:

...

  1. DSpace.

Fix for DSpace 1.5.0 and later

Files:

  • Wiki Markup
    \[dspace-source\]/dspace-api/src/main/resources/Messages.properties
  • Wiki Markup
    \[dspace-source\]/dspace-jspui/dspace-jspui-webapp/src/main/webapp (JSP producing {{\?\?\?some.key.name\?\?\?}} text)

Instructions:

  1. Add the missing line to the Messages.properties file
  2. Copy & edit file. Look for the original Messages.properties file in
    • Wiki Markup
      {{\[dspace-source\]/dspace-api/src/main/resources/Messages.properties

...

    • }}
    • NOTE: IF you don't have the DSpace Source Code installed locally, you can also download this file via the web. Visit the below site, and browse to the proper version of DSpace, then follow the path (see above) to the proper sub-directory to download the original file.
  1. Copy the original Messages.properties file to this location in your local DSpace install. (NOTE: You may need to create the 'src/main/resource/' directory, as it doesn't exist by default):
    • Wiki Markup
      {{\[dspace-source\]/dspace/modules/jspui/src/main/resources

...

    • }}
  1. Add the missing line to Messages.properties. For example, if the text you say is ???my.key.name??? then add
    Code Block
    my.key.name  = The Text to Display
  2. Wiki Markup
    If necessary, you may also wish to copy/change the original JSP file. The original can be found at: {{\[dspace-source\]/dspace-jspui/dspace-jspui-webapp/src/main/webapp

...

  1. /}}
    • Wiki Markup
      generally put changes in here to keep original files intact

...

    •  (again, you may need to create the {{src/main/webapp}} directory if it doesn't exist): {{\[dspace-source\]/dspace/modules/jspui/src/main/webapp

...

    • }}
  1. Rebuild DSpace