{"id":643,"date":"2017-12-07T14:49:42","date_gmt":"2017-12-07T13:49:42","guid":{"rendered":"http:\/\/h2916922.stratoserver.net:8084\/?p=643"},"modified":"2017-12-07T15:03:12","modified_gmt":"2017-12-07T14:03:12","slug":"adjusting-ibm-content-navigator-front-end-labels-and-captions","status":"publish","type":"post","link":"https:\/\/www.ivojonker.nl\/?p=643","title":{"rendered":"Adjusting\/Overriding IBM Content Navigator front-end labels and captions."},"content":{"rendered":"<p>Although all my clients have requirements to update or change OOTB labels used in Case Manager, i wasn&#8217;t able to find a best practice to do so. So i decided to look for it on my own.<\/p>\n<p>As it turns out all labels are stored in localized files located at &#8220;navigator.ear\\navigator.war\\ecm\\nls\\&#8221;. Obviously one way would be to directly change these files, but that would be just a bad idea.<\/p>\n<p>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.<\/p>\n<pre class=\"lang:js decode:true \">require([\"ecm\/Messages\"],function(Messages){\r\n\r\n\tMessages.launchbar_browse=\"Open the browser!:)\";\r\n\r\n});<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-644 size-full\" src=\"http:\/\/h2916922.stratoserver.net:8084\/wp-content\/uploads\/2017\/12\/ecm.Messages-override-Example.png\" alt=\"\" width=\"273\" height=\"152\" srcset=\"https:\/\/www.ivojonker.nl\/wp-content\/uploads\/2017\/12\/ecm.Messages-override-Example.png 273w, https:\/\/www.ivojonker.nl\/wp-content\/uploads\/2017\/12\/ecm.Messages-override-Example-150x84.png 150w, https:\/\/www.ivojonker.nl\/wp-content\/uploads\/2017\/12\/ecm.Messages-override-Example-100x56.png 100w\" sizes=\"auto, (max-width: 273px) 100vw, 273px\" \/><\/p>\n<p>The code would be best loaded via the bootstrap of a plugin that is the first plugin te be loaded.\u00a0<em>(See the &#8220;move up&#8221; button in your ?desktop=admin\/plugins)<\/em><\/p>\n<p>Additional info: A <a href=\"http:\/\/h2916922.stratoserver.net:8084\/ivo\/wp-attachments\/List of ICN labels and messages.xlsx\">list of all Messages<\/a> you might want to override.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although all my clients have requirements to update or change OOTB labels used in Case Manager, i wasn&#8217;t able to find a best practice to do so. So i decided [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-643","post","type-post","status-publish","format-standard","hentry","category-geen-categorie"],"_links":{"self":[{"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/posts\/643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=643"}],"version-history":[{"count":4,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/posts\/643\/revisions"}],"predecessor-version":[{"id":649,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/posts\/643\/revisions\/649"}],"wp:attachment":[{"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}