<?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>topic Translating dashboard embedded html in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Translating-dashboard-embedded-html/m-p/418182#M27532</link>
    <description>&lt;P&gt;We have a Dashboard panel that includes some embedded html that we are trying to enable for i18n translation. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row &amp;gt;
&amp;lt;panel id="backgroundForInputText"&amp;gt;
  &amp;lt;html&amp;gt;
    &amp;lt;div id="descriptionForInputText"&amp;gt;
      &amp;lt;p&amp;gt;Filter your data queries by time range and domain&amp;lt;/p&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/html&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I do the " splunk extract i18n -app " command this shows up in the messages.pot as :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; msgid ""
 "&amp;lt;div id=\"descriptionForInputText\"&amp;gt;&amp;lt;p&amp;gt;Filter your data queries by "
 "time range and domain&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I translate these strings and generate the messages.mo file, but the changes never get picked up, they always display in the original text. All the other strings show up translated, but the embedded html sections don't.  &lt;/P&gt;

&lt;P&gt;Suggestions? &lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Rob. &lt;/P&gt;

&lt;P&gt;Addition .. &lt;BR /&gt;
Experimenting a little more, I have a single dashboard with both an input panel and an html panel&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="text"&amp;gt;
    &amp;lt;label&amp;gt;Test1&amp;lt;/label&amp;gt;
  &amp;lt;/input&amp;gt;
&amp;lt;panel id="backgroundForInputRadio"&amp;gt;
  &amp;lt;html&amp;gt;Test1&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I do the splunk extract, it shows &lt;STRONG&gt;Test1&lt;/STRONG&gt; coming from both lines.  I modify the msgstr="&lt;STRONG&gt;Test2&lt;/STRONG&gt;" and I can see the input box changes but the html does not.   Is there a way to make this work?  Splunk extracted the message from the  block so it knows to look for it.  Just not sure how to make it use the translation in there. &lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Rob. &lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2018 20:49:20 GMT</pubDate>
    <dc:creator>rmjohns</dc:creator>
    <dc:date>2018-07-02T20:49:20Z</dc:date>
    <item>
      <title>Translating dashboard embedded html</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Translating-dashboard-embedded-html/m-p/418182#M27532</link>
      <description>&lt;P&gt;We have a Dashboard panel that includes some embedded html that we are trying to enable for i18n translation. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row &amp;gt;
&amp;lt;panel id="backgroundForInputText"&amp;gt;
  &amp;lt;html&amp;gt;
    &amp;lt;div id="descriptionForInputText"&amp;gt;
      &amp;lt;p&amp;gt;Filter your data queries by time range and domain&amp;lt;/p&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/html&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I do the " splunk extract i18n -app " command this shows up in the messages.pot as :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; msgid ""
 "&amp;lt;div id=\"descriptionForInputText\"&amp;gt;&amp;lt;p&amp;gt;Filter your data queries by "
 "time range and domain&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I translate these strings and generate the messages.mo file, but the changes never get picked up, they always display in the original text. All the other strings show up translated, but the embedded html sections don't.  &lt;/P&gt;

&lt;P&gt;Suggestions? &lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Rob. &lt;/P&gt;

&lt;P&gt;Addition .. &lt;BR /&gt;
Experimenting a little more, I have a single dashboard with both an input panel and an html panel&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="text"&amp;gt;
    &amp;lt;label&amp;gt;Test1&amp;lt;/label&amp;gt;
  &amp;lt;/input&amp;gt;
&amp;lt;panel id="backgroundForInputRadio"&amp;gt;
  &amp;lt;html&amp;gt;Test1&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I do the splunk extract, it shows &lt;STRONG&gt;Test1&lt;/STRONG&gt; coming from both lines.  I modify the msgstr="&lt;STRONG&gt;Test2&lt;/STRONG&gt;" and I can see the input box changes but the html does not.   Is there a way to make this work?  Splunk extracted the message from the  block so it knows to look for it.  Just not sure how to make it use the translation in there. &lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Rob. &lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 20:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Translating-dashboard-embedded-html/m-p/418182#M27532</guid>
      <dc:creator>rmjohns</dc:creator>
      <dc:date>2018-07-02T20:49:20Z</dc:date>
    </item>
  </channel>
</rss>

