質問

I have a plugin (lets say that it is called my_plugin), in which I generated the .po file, and subsequently the .mo file. I saved the files in a folder called languages. I called the files my_plugin-en_US.po and my_plugin-en_US.mo.

Summary of structure: plugins (dir)
--my_plugin (dir)
----languages (dir)
------my_plugin-en_US.po (file)
------my_plugin-en_US.mo (file)

The translation still does not show (the original plugin is not in English).

What am I doing wrong?

Thanks

役に立ちましたか?

解決

You need to explicitly load the translation with load_plugin_textdomain.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top