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:
- You cannot use the customization debugging capability to test
edited strings.
- Follow the steps outlined here when you want to update the text
in the JavaScript files
in your deployment. When you want to change the functionality of the JavaScript code, follow the
procedure covered in the topic, Overriding JavaScript in IBM Connections.
- To use the external resource bundle loader for adding and updating
strings in the user interface, see Adding custom strings for
widgets and other specified scenarios.
Procedure
- Locate the JavaScript source
file for the application that you want to customize, based on the
information in the topic, JavaScript resource
strings.
- Determine the base directory where your customizations
should go.
For more information, see Determining
where to save your customizations.
- 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.
- 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.
- Repeat the previous step until you have replaced all of
the strings that you want to change.
- 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.
- Save and close the JavaScript file.
- Using the WebSphere® Application
Server Integrated Solutions Console, restart the application associated
with the file that you have changed.
- Test your changes by clearing your browser cache, and then
refreshing the browser.
-
See Post-customization step for information about how to apply your changes
permanently.