product icon

How to Display Localized Text

Articles related to customization are written for a technical audience who have experience in web development. Knowledge of HTML, CSS, and JavaScript are required.

You can learn from this article how to display localized text.

File to edit: LanguagesForChatOnlyMode.js

ic_hic_demo_timer = setInterval(ic_hic_demo_timer_checkobject, 100);
function ic_hic_demo_timer_checkobject()
{
  if ((ICObject != null) && (ICObject.pChatLog != null) && (ICObject.pMainContentArea != null))
  {
    clearInterval(ic_hic_demo_timer);
    ICObject.DownloadButton = document.createElement("div");
    ICObject.DownloadButton.className = "demoButton";
    ICObject.DownloadButton.onclick = function () { ICObject.pChatLog.innerHTML +=
 ICObject.getText2("BLINKINGTEXT", "de") + "<br />"; }
    ICObject.DownloadButton.innerHTML = "Display<br />A<br />Node";
    ICObject.pMainContentArea.appendChild(ICObject.DownloadButton);
  }
}

File to edit: InstantChat.css

.demoButton
{
  position: absolute;
  left: 94px;
  top: 32px;
  width: 50px;
  height: 43px;
  text-align: center;
  cursor: pointer;
  background-color: red; 
  z-index: 2000;
}
Article last updated: 27 September, 2022