Dashboards & Visualizations

Translating dashboard embedded html

rmjohns
Explorer

We have a Dashboard panel that includes some embedded html that we are trying to enable for i18n translation.

<row >
<panel id="backgroundForInputText">
  <html>
    <div id="descriptionForInputText">
      <p>Filter your data queries by time range and domain</p>
    </div>
  </html>
</panel>

When I do the " splunk extract i18n -app " command this shows up in the messages.pot as :

 msgid ""
 "<div id=\"descriptionForInputText\"><p>Filter your data queries by "
 "time range and domain</p></div>"

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.

Suggestions?

Thanks
Rob.

Addition ..
Experimenting a little more, I have a single dashboard with both an input panel and an html panel

 <input type="text">
    <label>Test1</label>
  </input>
<panel id="backgroundForInputRadio">
  <html>Test1</html>

When I do the splunk extract, it shows Test1 coming from both lines. I modify the msgstr="Test2" 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.

Thanks
Rob.

Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco &#43; Splunk! We’ve ...