I’ve been digging in the code and found the following code in the file mollie-payments-for-woocommerce/inc/utils.php
and it’s deleting language files and has changed since 7.8.0 when it was still working fine. I also found changes in the main file of the plugin, where is see some changes regarding paths that might be related, but I find it hard to understand as a non-developer. But I think I’m on the right track.
function mollieUpdateCompleted($upgrader_object, $options)
{
//whenever something gets updated they update the languages, we need to delete them
mollieDeleteWPTranslationFiles();
}
function mollieDeleteWPTranslationFiles()
{
if (!function_exists('WP_Filesystem')) {
require_once ABSPATH . '/wp-admin/includes/file.php';
}
WP_Filesystem();
global $wp_filesystem;
if (!$wp_filesystem) {
return;
}
$remote_destination = $wp_filesystem->find_folder(WP_LANG_DIR);
if (!$wp_filesystem->exists($remote_destination)) {
return;
}
$languageExtensions = [
'de_DE',
'de_DE_formal',
'es_ES',
'fr_FR',
'it_IT',
'nl_BE',
'nl_NL',
'nl_NL_formal',
'en_GB',
'nl_BE_formal',
];
$translationExtensions = ['.mo', '.po', '.l10n.php'];
$destination = WP_LANG_DIR
. '/plugins/mollie-payments-for-woocommerce-';
foreach ($languageExtensions as $languageExtension) {
foreach ($translationExtensions as $translationExtension) {
$file = $destination . $languageExtension
. $translationExtension;
$wp_filesystem->delete($file, false);
}
}
}
So the language file that’s included in the plugin stays on the site, while the translations from translate.www.ads-software.com get deleted after installing the language update.