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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...