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
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 HCL 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 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.