Plugin Author
Tim W
(@timwhitlock)
For translation (PO,MO) files, see the documentation on choosing a location.
For template (POT) files, you must configure this in the bundle using a relative path. See documentation on bundle configuration. Enter paths outside of the plugin using .. references. You can specify any safe location you like for POT files.
Thread Starter
Aldo
(@ab_lu)
But what if I’m dealing with a third party plugin?
Plugin Author
Tim W
(@timwhitlock)
This will work for any plugin, if it’s internationalized correctly. If it isn’t, then you could run into any number of problems.
If by “third party” you mean outside of the WordPress plugin directory, then you don’t really need to use the custom/safe location at all. You can just use the standard system languages directory, because there will be no translation updates to overwrite it. Just avoid saving anything inside the plugin’s own folder.