text domain not reloading when locale changes
-
Hi,
I have a different locale than my default site locale. So when i send email for “shipped” status, i need the email sent in the default site locale. And currently it is not working.
Adding “wc_advanced_shipment_tracking()->wst_load_textdomain();” at the beginning of “customer-completed-order.php” seems to do the trick, at least for this particular email.
switch_to_site_local() and restore_site_local() don t reload the plugin textdomain too. I think “wc_advanced_shipment_tracking()->wst_load_textdomain();” should be used just after those.
regards,
The topic ‘text domain not reloading when locale changes’ is closed to new replies.