WPML
Status
Resolved
Reported for
WPML Multilingual & Multicurrency for WooCommerce 5.3.7
Resolved in
WCML 5.4.0
Topic tags
Compatibility, WCML

Overview of the issue

On-Hold emails sent from WooCommerce may contain strings that are not translated into the customer’s language. For example, the string ”Thanks for your order. It’s on-hold until we confirm that payment has been received.” remains in English despite being translated in the String Translation.

Workaround

Please, make sure of having a full site backup of your site before proceeding.


  • Open the theme’s functions.php file.

  • Add the following snippet:
    add_filter('woocommerce_email_heading_customer_on_hold_order', 'load_woocommerce_textdomain', 5, 2);
    
    function load_woocommerce_textdomain($heading, $email) {
    	load_plugin_textdomain('woocommerce', false, plugin_basename(dirname(__FILE__)) . '/languages/');
    	return $heading;
    }

All known issues →