Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Files:

Instructions:

  • Open the theme's XSL template and modify the relevant templates (i.e. the header or footer templates) adding an
    Code Block
    <i18n:text>
    element where you would like the new text to appear. Make sure the value of the key is unique, for example:
    Code Block
    <i18n:text> xmlui.yourtheme.mynewkey </i18n:text>
  • Open the messages catalogue, config/i18n/messages.xml, and for neatness find the key values for that begin with the common prefix of your new key. Add a new line corresponding to your new key:
    Code Block
     <message key="xmlui.yourtheme.mynewkey">
       Text of my new key!
    </message>
  • Perform the steps in Rebuild+DSpace.

Notes:

  • i18n = internationalization
  • You can, of course, simply add the text directly into the XSL, but you will find it easier to translate the text into other languages if you use the i18n catalogue.
  • Remember, when adding or modifying text in the messages.xml catalogues be very careful to use XML escaping rules, such as:
    Code Block
     &         becomes         &
     "         becomes         &quote;
     '         becomes         '
     <         becomes         <
     >         becomes         >