Splunk Search

Apps固有のローカライズについて

HiroshiSatoh
Champion

Apps固有のローカライズをしようとしたが変換されませんでした。
ローカライズの設定は以下の方法で実施しました。

splunk extract i18n -app でsampleAppのストリングを抽出しmessages.potを作成
potをpoに変換して保存
エディタ(poedit)で編集して
moファイルを作成してローカル(locale\ja-JP\LC_MESSAGES)に保存

直接「\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\locale」のmessagesを編集すればうまく変換されます。
ローカルのmessages.potの作成内容に何か決まりがあるんでしょうか?

0 Karma
1 Solution

melonman
Motivator

すこし、試してみました。

$ pwd
/opt/splk/503_i18n/etc/apps/myapp/locale
$ ls
ja_JP
$ tree
.
└── ja_JP
    └── LC_MESSAGES
        ├── messages.mo
        ├── messages.po
        └── messages.pot

2 directories, 3 files
$ 

ドキュメントの中での記述が足りないようで、

locale\ja-JP\LC_MESSAGES

alt text

以下ではなく、

locale\ja_JP\LC_MESSAGES

alt text

としていただければ、翻訳されると思います。

View solution in original post

0 Karma

melonman
Motivator

すこし、試してみました。

$ pwd
/opt/splk/503_i18n/etc/apps/myapp/locale
$ ls
ja_JP
$ tree
.
└── ja_JP
    └── LC_MESSAGES
        ├── messages.mo
        ├── messages.po
        └── messages.pot

2 directories, 3 files
$ 

ドキュメントの中での記述が足りないようで、

locale\ja-JP\LC_MESSAGES

alt text

以下ではなく、

locale\ja_JP\LC_MESSAGES

alt text

としていただければ、翻訳されると思います。

0 Karma

melonman
Motivator

回答としてもんだいなければ、回答の左にあるチェックをクリックしていただけると嬉しいです。

0 Karma

HiroshiSatoh
Champion

ローカライズ出来ました。アンダースコア気付きませんでした。

0 Karma

melonman
Motivator

ja-JPのハイフンをアンダースコアに変えていただければという事です。

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...