• Hello, friends!
    I am WP-programmer from Russia.
    Seems what after recetly innovations in WordPress core, we have some problem with localization. I mean a new feature define language for user. After this, Woocommerce sometime use user-locale instead global-locale. For example, it affect to emails for WC-customer when order status changes – emails use user language instead site language.
    Some problem with a lot of woocommerce descriptions.

    As a temporaty solution for emails, I use this code

    
    	add_action( 'wp_ajax_woocommerce_mark_order_status', 'repair__woocommerce_mark_order_status', 1 );
    	function repair__woocommerce_mark_order_status(){
    		$GLOBALS['wp_locale_switcher']->switch_to_locale( get_locale() );
    	}

The topic ‘L10n problem’ is closed to new replies.