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.”
Site URL: hidden Theme version: 6.3.2 WooCommerce version: 5.4.1
Did you translate the Royal theme in Loco Translate > Themes > Royal?
Provide us with WP Dashboard access to check.
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.
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.
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)
The topic ‘Can Not Translate thankyou.php Completely’ is closed to new replies.
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.