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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...