I have two plugins lets name them PluginA and PluginB. Both are part of the same project I want to internationalize the text.

The question is if I use same textdomain 'myplugin' but make two files one in PluginA and other in PluginB and load both using

load_plugin_textdomain( 'myplugin', from PluginA )
load_plugin_textdomain( 'myplugin', from PluginB )

is that OK, or it overwrites the locales.

Thanks in advance.


In simple words "NO" it is not recommended until one plugin is not a subset of another plugin.

If you want multi-language use different.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.