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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...