문제

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