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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...