Although all my clients have requirements to update or change OOTB labels used in Case Manager, i wasn’t able to find a best practice to do so. So i decided to look for it on my own.
As it turns out all labels are stored in localized files located at “navigator.ear\navigator.war\ecm\nls\”. Obviously one way would be to directly change these files, but that would be just a bad idea.
The localized messages will eventually be loaded in the ecm/Messages namespace when loading the ICN libraries (.navigator/ecm/nls/ecm_en.js). Knowing this, i believe it to be a good suggestion to use the following code to override OOTB messages in a non-invasive fashion.
require(["ecm/Messages"],function(Messages){ Messages.launchbar_browse="Open the browser!:)"; });
The code would be best loaded via the bootstrap of a plugin that is the first plugin te be loaded. (See the “move up” button in your ?desktop=admin/plugins)
Additional info: A list of all Messages you might want to override.
Also check out the navigator plugin my colleague made – http://ecmdeveloper.com/contentnavigator/changing-content-navigator-labels/
Hi . Can you suggest how to change text for Content List actions like Add Document, New Folder and Refresh labels. I tried to set for above actions but it didnt work
Hi Amit,
Indeed, it seems that those button can’t be overriden using the method in the post. The label of the button is actually provided by a java class.
The first way i can think of is by creating your own PluginAction and implement the
public String getName(Locale locale) {
return “My alternative label”;
}
In the button’s implementation, simply connect to the corresponding action method as listed in https://www.ibm.com/support/knowledgecenter/SSEUEX_3.0.3/com.ibm.developingeuc.doc/doc/JavaScriptdoc/symbols/ecm.widget.layout.CommonActionsHandler.html
ecm.model.desktop.getActionsHandler().actionCheckOut(repository, items, callback, teamspace, resultSet, parameterMap, action)
It would ofcourse be a pain if you’re planning on supporting a lot of locale’s.