This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing an issue where the Thankyou page after making an order is not translated into the selected language,
Solution:
First, ensure that your custom code is multilingual-ready. You need to wrap your strings with
gettext()
calls. You can find guidance on how to do this in the WordPress Codex on I18n for WordPress Developers.
After adjusting your code, you can translate the strings using WPML's String Translation by navigating to WPML -> String Translation. For more detailed instructions on translating your theme, visit Translating the Theme You Created.
If you require assistance with making your custom code multilingual-ready, we suggest hiring a certified contractor from WPML Contractors.
As an example, here's how you might adjust a string in your code:
$title = sprintf( __("Merci %s pour votre commande! :)", 'your-text-domain'), esc_html( $order->get_billing_first_name() ) );
Please be aware that our support does not extend to custom coding. If you need specialized help, consider reaching out to our certified contractors.
It's important to note that the solution provided might not apply to your situation if it's outdated or not relevant to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket. For support in English, you can reach us at WPML Support Forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 5 replies, has 2 voices.
Last updated by 1 year, 1 month ago.
Assisted by: Marcel.