Dashboards & Visualizations

App locale/internationalization does not work

tomaszwrona
Explorer

Hello,

in my XML Dashboard i have following line of code:

<title>text1: $token1$ text2: $token2$</title>

and in my messages.pot i have following line:

#: /opt/splunk/etc/apps/myapp/local/data/ui/views/myviewxml:359
msgid "text1: $token1$ text2: $token2$"
msgstr "translation1: $token1$ translation2: $token2$"

but when i switch the language this title does not get translated.

Where is the problem?

best regards
Tomasz

0 Karma

deepashri_123
Motivator

Hey @tomaszwrona,

Can you try referring this link:
https://docs.splunk.com/Documentation/Splunk/7.1.0/AdvancedDev/TranslateSplunk#Translate_Apps

Let me know if this helps!!

0 Karma

tomaszwrona
Explorer

hey @desspashri_123,

yes, sure i did like Splunk says - this configuration comes from messages.pot insinde my app.
It translates all other string but not the one with $token$ inside.
I'm just sure how to workaorund it.

0 Karma

vaneetsin
Engager

Hi @tomaszwrona,
I also have the same problem at hand. Did you find a way to translate token values to different language (other than English)?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...