• I have an available update for Mollie translations… but after updating it says there is still an update available.

    “Vertalingen updaten voor Mollie Payments for WooCommerce (nl_NL)…
    Vertaling is succesvol geüpdatet.”

    No errors or warning in the PHP log.

Viewing 15 replies - 1 through 15 (of 47 total)
  • Same problem here…

    Same here.

    Plugin Support Femi

    (@femiyb)

    Hello @darkallman

    This has been raised a few times, and we are currently looking into it, we will let you know as soon as we have an update.

    Thank you.

    Plugin Support Femi

    (@femiyb)

    Hello @darkallman

    We are looking into this, but could you please confirm if this “The prompt for the update” shows up immediately after the update or after some time?

    I am testing this, and so far unable to reproduce.

    Thank you.

    The same issue here.

    It shows up immediately after the update. So its always ON.

    @femiyb

    If it helps, I can give tou access to a staging site.

    Dear @femiyb go to the update page and update the Translations.

    Close the site en re open the website en go to the update page and you will that there is a update for the Translations.

    Thread Starter darkallman

    (@darkallman)

    @femiyb For me right away…
    I update and return to update page and it is there… right away.

    The problem is that the mollie-payments-for-woocommerce-nl_NL.mo and mollie-payments-for-woocommerce-nl_NL.po are removed every time from wp-content/languages/plugins and then the website says that there is an update for the language files.
    When you update translations files the mollie-payments-for-woocommerce-nl_NL.mo and mollie-payments-for-woocommerce-nl_NL.po coms back and any time later the are removed and you have a new update for the translations files.

    Dear @femiyb i see that mollie plugin Versie 7.8.2 not creating a .mo and .po file in wp-content/languages/plugins

    Plugin Support Femi

    (@femiyb)

    Thanks for the information, everyone.

    We are looking into this and I will get back to you as soon as there is an update.

    Regards,
    Femi.

    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.

    had the same problem, just reverted back to 7.8.0, updated the language file and updated to 7.8.2. Now language update is oke.

    Thread Starter darkallman

    (@darkallman)

    I confirm method above works. I no more have the translations issue.

Viewing 15 replies - 1 through 15 (of 47 total)
  • You must be logged in to reply to this topic.