Splunk Dev

How to translate an app that uses the web framework / Django?

helge
Builder

Following these instructions I have successfully translated a Splunk app built using advanced XML. However, the process does not seem to work with an app built with the web framework (Django). Running the extraction command gives me this:

splunk.exe extract i18n -app <appname>

[...]
extracting messages from C:\Program Files\Splunk\etc\apps\<appname>\django\<appname>\templates\<templatename>.html (input_encoding="utf-8")
Failed cli cmd extract

For what it's worth, the template is encoded as ANSI/Windows.

Above command creates a file locale\messages.pot with a size of 0 bytes.

My question is: should I follow the steps outlined in the Django docs or does Splunk have someting else?

helge
Builder

This answer describes a potential solution. I have not tried it myself, though.

http://answers.splunk.com/answers/133359/app-translation-incomplete-for-simple-xml-views-and-impossi...

0 Karma

guilmxm
SplunkTrust
SplunkTrust

Hi,

Have you been able to translate your django views with success ?

I am currently trying to do so, i have no complains from the i18n extract command, but there are no patterns related to my django views in the .po files, so no translation of these views as for now...

Couldn't find any django specific tanslating doc...

Thanks

Guilhem

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 ...