What I'm trying to do is simple: I have so much WordPress plugins, and 3/4 of them aren't translated in my language, so I want and can translate them all without problems, but I would insert translations inside a directory, so everytime I update plugins I don't have to re-upload in every plugins folder the translation...
Could this in some way be achieved?
It's like as a child theme works; so if you insert for example, header.php in child theme, WordPress will load code from there.
Practically I would create a directory like wp-content/translations/name-of-plugin/en.mo; exists any way to tell WordPress to use that directory to take translations? Thank you!
This is, in fact, already available by default. If specific locale isn't available in plugin's folder WordPress will try to fallback to languages directory.
It is defined by
WP_LANG_DIR constant and for plugins the default location would be
wp-content/languages/plugins. Note that name is expected to follow the specific format: