• Resolved aakkuhalp

    (@aakkuhalp)


    Hi,

    so the problem that I am having is that the Woocommerce .po file in System-folder is overwriting the Other-directory translation file and some of my translations are not showing in the page. The problem seems to be only on Woocommerce translations. You can see the English strings “Add to cart” on the home page, second element after the hero. The main language of the site is in Finnish.

    Can I send a link to the page via email, the problem is occurring on our clients development site and I can’t share it here?

    This problem started when I bulk updated some of the plugins and upgraded WordPress version to 6.5.2. The plugins that I updated are:

    Gravityforms
    Woocommerce Adandoned Cart
    Advanced custom fields + pro
    Elementor
    Elementskit lite
    Woocommerce google analytics Intregrations
    Gravity forms mailgun
    Checkout fees for Woocommerce
    Relevanssi + premium
    Woolentor Addons
    Woocommerce services
    Yoast SEO
    YITH Woocommerce ajax navigation
    WooCommerce Sold Individually for Variations

    The problem vanishes when I delete the system .po file but it comes back (as it should) and the translations aren’t showing anymore, so clearly something is blocking the right translation file from loading. We tried to put a auto-update filter to mu-plugins directory but it didn’t work.

    The theme we are using is Astra Pro, version 4.6.4.
    Loco Translate version is 2.6.7
    Woocommerce version is 8.7.0.

    ?We also have WPML Multilingual CMS 4.5.11 and WPML String Translation 3.2.3. plugin in use when it comes to translations. Do you need a list of all our other plugins in use?

    I also tried to reproduce this problem on our other site that uses the exact same themes and those plugins mentioned above, but there is no problem with translations. These two sites have different plugins in use so it might be something to do with a 3th party plugin.

    Is there another info that I can give you that is any useful?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tim W

    (@timwhitlock)

    I appreciate the detail you’ve provided here, but I can’t possibly replicate such a complex installation with so many plugins, and also set up a WooCommerce store.

    If I were to take a wild guess, I’d say that one of these plugins is requesting translations in the woocommerce text domain (which it doesn’t control), and either doing it too early, or using some cached version, or frankly any one of a million things.

    Is it possible for you to disable all these plugins (except woocommerce) and then enable them one-by-one until the issue appears?

    You say the issue doesn’t occur on another site with a different set of plugins. Can you provide a list of plugins on the bad site, that are not present on the good site?

    Thread Starter aakkuhalp

    (@aakkuhalp)

    Disabling plugins sounds a good next step. The website is filled with so many plugins that I don’t even bother to list them all here. There is a good change that one of them is causing the problem. I can update here if I find the solution/plugin causing the error.

    Thread Starter aakkuhalp

    (@aakkuhalp)

    I tried to disable the plugins but nothing seemed to fix the issue. Today I noticed that wpml changes the default language of the site to English on the WordPress settings even though the default language is set to Finnish in WPML’s own settings. When I turned off the wpml and changed the default language in WordPress settings to Finnish, then the Woocommerce po file loaded correctly. It’s weird how this error seems to appear only on woocommerce translations.

    Plugin Author Tim W

    (@timwhitlock)

    If you’re telling me the issue was with WPML, can you mark this ticket as resolved please?

    Otherwise, if you have any further information to help my diagnose a fault in my loading functions, please share.

    Thread Starter aakkuhalp

    (@aakkuhalp)

    Yes, updating WPML and String translation to the newest versions or deactivating them altogether solved the issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce translations not showing’ is closed to new replies.