Customizing strings sourced in JavaScript

Replace a word or string in the product user interface that is sourced in JavaScript as opposed to a strings resource bundle.

About this task

Many strings in the IBM® Connections user interface are represented by key and value pairs defined in JavaScript files that are stored in the application JAR files. You can customize these strings by locating the appropriate JavaScript source file, copying it into the corresponding subdirectory of the customization directory, and overwriting the key and value pair in the copied file with your custom text.
Notes:

Procedure

  1. Locate the JavaScript source file for the application that you want to customize, based on the information in the topic, JavaScript resource strings.
  2. Determine the base directory where your customizations should go.
  3. Copy and paste the file that you want to customize into the appropriate subdirectory of the customization root directory.
    For information about where to place your customizations, see JavaScript resource strings.

    For example, for Activities, save the customized JavaScript file in the following location: customizationDir/javascript/lconn/act/nls/strings.js

    For locale-specific strings, create a folder in the customizationDir/javascript/lconn/act/nls directory, name it with the corresponding language code, and save the JavaScript file in the new folder. For example, to save German strings for Activities, save the customized JavaScript file in the following location: customizationDir/javascript/lconn/act/nls/de/strings.js

    For a full list of the language codes supported by IBM® Connections, see Language codes.

  4. Open the copied JavaScript file for editing. Find the key and value pair that you want to overwrite, and replace the value with your custom text.
  5. Repeat the previous step until you have replaced all of the strings that you want to change.
  6. Remove any key and value pairs that you did not edit. Those will be read from the version of the JavaScript file in the application's product directory.
  7. Save and close the JavaScript file.
  8. Using the WebSphere® Application Server Integrated Solutions Console, restart the application associated with the file that you have changed.
  9. Test your changes by clearing your browser cache, and then refreshing the browser.
  10. See Post-customization step for information about how to apply your changes permanently.