How to keep plugin translations after updates?
bbPress' language folder (wp-content/plugins/bbpress/bbp-languages
) has that warning:
/**
* Do not put custom translations here. They will be deleted on bbPress updates.
*
* Keep custom bbPress translations in /wp-content/languages/
*/
Actually, this is not a new problem and yes, they are right. This is a big problem if you are using WordPress plugins with a non-English language.
Basically, I translated bbPress and created .po
and .mo
files. Files are working if I put them in their normal wp-content/plugins/bbpress/bbp-languages
folder. But as the above warning says, they will delete on update. But the problem is translations are not working if I put them in the wp-content/languages/
folder as suggested in bbPress.
I think there must be a hook or something I can activate it but what is the best solution for it? Simply I want to keep plugin language files in wp-content/languages/
.