<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Translated HTML won't show up in widget in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474799#M131725</link>
    <description>&lt;P&gt;Thank you Miriam! that worked brilliantly &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="8_261.69000244140625_16_16" src="https://www.servicenow.com/8.0.4.21bdc7e/images/emoticons/happy.png"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Jul 2017 08:26:57 GMT</pubDate>
    <dc:creator>ingaro</dc:creator>
    <dc:date>2017-07-13T08:26:57Z</dc:date>
    <item>
      <title>Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474795#M131721</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the OOB Widget "HTML", I can see in the Options Schema that the HTML field is added as a translated HTML field - but switching language and trying to add a translation changes the original version of the HTML instead of adding a translation. It's not showing any translation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Options Schema:&lt;/P&gt;&lt;P&gt;[{&lt;/P&gt;&lt;P&gt; &amp;nbsp; "name": "html",&lt;/P&gt;&lt;P&gt; &amp;nbsp; "label": "HTML",&lt;/P&gt;&lt;P&gt; &amp;nbsp; "type": "translated_html",&lt;/P&gt;&lt;P&gt; &amp;nbsp; "default_value": " &amp;lt;b&amp;gt;hello&amp;lt;/b&amp;gt;"&lt;/P&gt;&lt;P&gt;}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a new translated HTML field is letting me translate the HTML but when I cloned the HTML widget and changed the references to match the new field - again, the translation won't show up. My question is: &lt;STRONG&gt;how do i show the translated contents of an HTML field? &lt;/STRONG&gt;The google searches i've done suggest that this should "just work"... but it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New widget HTML:&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="_jivemacro_uid_14873253771995067 jive_macro_code jive_text_macro" data-renderedposition="351_8_1171_144" jivemacro_uid="_14873253771995067"&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;lt;div ng-if="!c.options.u_html" class="panel panel-default"&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="panel-body"&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;b&amp;gt;${HTML Widget}&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ${Ctrl + Click &amp;gt; Options to set HTML content}&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;lt;div ng-if="c.options.u_html" ng-bind-html="c.u_html"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New widget Client controller:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14873252684606595 jive_text_macro" data-renderedposition="558_8_1171_112" jivemacro_uid="_14873252684606595"&gt;&lt;P&gt;function ($scope, $sce) {&lt;/P&gt;&lt;P&gt; &amp;nbsp; var c = this;&lt;/P&gt;&lt;P&gt; &amp;nbsp; c.u_html = $sce.trustAsHtml(c.options.u_html);&lt;/P&gt;&lt;P&gt; &amp;nbsp; $scope.$watch('c.options.u_html',function(){&lt;/P&gt;&lt;P&gt; &amp;nbsp; c.u_html = $sce.trustAsHtml(c.options.u_html);&lt;/P&gt;&lt;P&gt; &amp;nbsp; })&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for suggestions/ideas/solutions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR /Miriam&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 10:06:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474795#M131721</guid>
      <dc:creator>Miriam Berg</dc:creator>
      <dc:date>2017-02-17T10:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474796#M131722</link>
      <description>&lt;P&gt;Changing field type to Translated text immediately solved the problem (same code!), and retained the HTML formatting too. Feels like there's a bug with the Translated HTML field type that is doesn't show translations properly. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I feel like this is good enough, even though it would be easier to administer the Translated HTML field.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Feb 2017 10:18:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474796#M131722</guid>
      <dc:creator>Miriam Berg</dc:creator>
      <dc:date>2017-02-17T10:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474797#M131723</link>
      <description>&lt;P&gt;Hi Miriam! &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I am looking for same thing - could you please tell me where you changed the field type to Translated Text? &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;IA&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:39:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474797#M131723</guid>
      <dc:creator>ingaro</dc:creator>
      <dc:date>2017-07-12T14:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474798#M131724</link>
      <description>&lt;P&gt;Hi Anita,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;A simpler way to translate the HTML would be to user ServiceNow's built-in message functionality.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In many places in ServiceNow you show a translated message by using dollar curly brackets ${ your text here }. So instead of trying to translate text in the HTML option (which doesn't work because it is stored in a JSON field) you wrap your text in dollar curly brackets, and translate it through System Localization &amp;gt; Messages.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;For example, if you have a very simple HTML code today, that you entered in your "HTML" widget instance:&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14999322600015245 jive_text_macro" data-renderedposition="176_8_1192_32" jivemacro_uid="_14999322600015245"&gt;&lt;P&gt;&amp;lt;p&amp;gt;Welcome&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;p&amp;gt;Add your comment&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You would translate it by using the same widget instance and just change the code to:&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14999322558707738 jive_text_macro" data-renderedposition="250_8_1192_32" jivemacro_uid="_14999322558707738"&gt;&lt;P&gt;&amp;lt;p&amp;gt;${Welcome}&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;p&amp;gt;${Add your comment}&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;And then make sure there are translations in System Localization &amp;gt; Messages for each separate message:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/162806i89905EFBB46BA18F/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/162800iD30E2CC0B5D7AA33/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Jul 2017 07:50:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474798#M131724</guid>
      <dc:creator>Miriam Berg</dc:creator>
      <dc:date>2017-07-13T07:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474799#M131725</link>
      <description>&lt;P&gt;Thank you Miriam! that worked brilliantly &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="8_261.69000244140625_16_16" src="https://www.servicenow.com/8.0.4.21bdc7e/images/emoticons/happy.png"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Jul 2017 08:26:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474799#M131725</guid>
      <dc:creator>ingaro</dc:creator>
      <dc:date>2017-07-13T08:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474800#M131726</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;Could you please inform me&amp;nbsp; where to find the local message in system localization :&lt;/P&gt;
&lt;P&gt;Ex message&amp;nbsp; in fr : bla bla bla I do'nt arrive to reach it in the Back end&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:01:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474800#M131726</guid>
      <dc:creator>olivier_queyroi</dc:creator>
      <dc:date>2018-04-11T16:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474801#M131727</link>
      <description>Hi Olivier,

If a specific message can't be found in the list, that could be because for example :

- You are not searching in the right field. "Key" for the English original version or "Message"  for the translated words.
- The sentence can be split into several messages, so try searching for the separate words in the sentence and see if you can find a partial message. This is often indicated in the code but sometimes you might not know where the code is. 
- The translation message could be missing and needs to be added. This happens quite often for some languages. 
- Sometimes a translated word or sentence  has been hard-coded somewhere... Instead of actually translated through the message table.

I hope you find what you are looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
/Miriam</description>
      <pubDate>Thu, 12 Apr 2018 05:36:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474801#M131727</guid>
      <dc:creator>Miriam Berg</dc:creator>
      <dc:date>2018-04-12T05:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474802#M131728</link>
      <description>&lt;P&gt;Hi Miriam,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some issue with displaying unauthorized message on portal if some user is accessing the catalog for which he is not group authorized.&lt;/P&gt;
&lt;P&gt;I have written code on server side and its working fine if I am commenting below code on client controller:&lt;/P&gt;
&lt;P&gt;$scope.data.sc_cat_item.description = $sce.trustAsHtml($scope.data.sc_cat_item.description);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would appreciate if you could please explain what the above code line is doing and what will be the impact if I comment this?&lt;/P&gt;
&lt;P&gt;Thanks in advance!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Danish&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 06:29:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474802#M131728</guid>
      <dc:creator>Mohammad Danis1</dc:creator>
      <dc:date>2018-09-04T06:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474803#M131729</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I had the issue, that the translated texts did&amp;nbsp; not show up in the widgets.&lt;/P&gt;
&lt;P&gt;I was able to solve this issue by clearing the cache (with "cache.do"), before reviewing the widget in the browser.&lt;/P&gt;
&lt;P&gt;Just type "cache.do" and hit return, in the backend "filter navigator" to clear the cache and retry to review the widget.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That helped each time for me, to check, if the translations worked correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know, if this works for you too, please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried this with KINGSTON PATCH 9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 18:44:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474803#M131729</guid>
      <dc:creator>DirkRedeker</dc:creator>
      <dc:date>2018-10-28T18:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Translated HTML won't show up in widget</title>
      <link>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474804#M131730</link>
      <description>&lt;P&gt;Thanks Dirk, your solution worked for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regard,&lt;/P&gt;
&lt;P&gt;Indira Priya Darsini M.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 06:02:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/translated-html-won-t-show-up-in-widget/m-p/1474804#M131730</guid>
      <dc:creator>Indira Priya Da</dc:creator>
      <dc:date>2019-08-06T06:02:10Z</dc:date>
    </item>
  </channel>
</rss>

