Can Not Translate thankyou.php Completely

This topic has 6 replies, 2 voices, and was last updated 2 years, 9 months ago ago by Olga Barlow

  • Avatar: Kultakuume
    Kultakuume
    Participant
    July 6, 2021 at 12:22

    Hello,

    I use LocoTranslate to translate all of my site. However, recently some of the text in the royal/woocommerce/checkout/thankyou.php have reverted to English and refuse to be translated even though I have set the translations in LocoTranslate correctly.

    I have contacted WooCommerce support, checked the LocoTranslate support, and discussed with my hosting service, and the most likely suspect right now is a theme conflict where a theme file overrides the default WooCommerce file. You updated my site’s WooCommerce templates in May and perhaps this confilct started then(?)

    Please note that I could translate the strings before, so this is a recent issue.

    The strings that refuse to be displayed as translated are:
    “Thank you. Your order has been received.”
    “Date:”
    “Total:”
    “Payment method:”

    Screenshot of thankyou.php

    5 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 6, 2021 at 16:23

    Hello,

    Did you translate the Royal theme in Loco Translate > Themes > Royal?
    Provide us with WP Dashboard access to check.

    Regards

    Avatar: Kultakuume
    Kultakuume
    Participant
    July 7, 2021 at 08:44

    Hello,

    Yes, I have translated the Royal theme in Loco Translate but those unstranslated strings are not found there by Loco Translate.

    Our hosting provider checked and confirmed that the orders’ source code references both wp-content/plugins/woocommerce/templates/checkout/thankyou.php and wp-content/themes/royal/woocommerce/checkout/thankyou.php

    Only the strings that come from the WooCommerce thankyou.php are translated. Because the untranslatable strings come from Royal thankyou.php it doesn’t translate them. Loco Translate seems to prefer the WooCommerce version.

    So how can we make the orders refer to only one thankyou.php instead of two? And if we use the theme’s template, how can we point it to Loco Translate? Our hosting provider said that using WooCommerce’s template would be better for updates (and Loco already uses that as its source).

    See private content area for dashboard access.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 7, 2021 at 13:59

    Hello,

    Thank file was removed in one of the latest updates. Probably you updated the theme manually and it was not removed. Check the thank you page now.

    Regards

    Avatar: Kultakuume
    Kultakuume
    Participant
    July 8, 2021 at 09:01

    Hello,

    Yes, I had updated the theme manually a couple of months ago. Now the translations work normally, thank you very much!

    edit: The Confirmation button for closing the topic doesn’t work, so you may close this topic. (I’m on Chrome)

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 8, 2021 at 10:18

    Hello,

    You are welcome.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Can Not Translate thankyou.php Completely’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.