Unfortunately I have issues with my Kalium child theme translation in combination with woocommerce and woocommerce emails. I have looked through my code and can't find what could be wrong. It worked fine until Kalium update back in novermber 2017.
I am loading the style.css for kalium-child theme, as well as loading translations with:
As i can understand you have placed woocommerce plugin inside kalium-child, why?
Originally customer-processing-order.php would be part of woocommerce domain, so try to keep the file the way is just modification you are trying to do. Then use Loco Translate to Edit WooCommerce Plugin and search for term Dear.
No of course not, I can't see how you have come to that conclusion? How would I be running my woocommerce store with woocommerce plugin inside kalium-child folder?
Maybe I was not clear enough in my last posts. I have a modified customer-processing-order.php in emails folder in my child-theme. The string was translated in emails previously with no problem.
Suddenly after the theme-update last November the translations are not implemented any longer. Do you know why? I pasted all the code to show how I've set up the translation.
Thank you for your explanation, but i would like to give a try in live on your site, please consider updating your WP Credentials so I would give a try.
Hello,
Unfortunately I have issues with my Kalium child theme translation in combination with woocommerce and woocommerce emails. I have looked through my code and can't find what could be wrong. It worked fine until Kalium update back in novermber 2017.
I am loading the style.css for kalium-child theme, as well as loading translations with:
add_action( 'wp_enqueue_scripts', 'enqueue_childtheme_scripts', 100 );
function enqueue_childtheme_scripts() { wp_enqueue_style( 'kalium-child', get_stylesheet_directory_uri() . '/style.css' ); }
/** * Load translations for kalium-child theme */ add_action('after_setup_theme', 'kalium_child_theme_setup'); function kalium_child_theme_setup(){ load_child_theme_textdomain('kalium-child', get_stylesheet_directory_uri() . '/languages'); }
What is not translating is this sentence in my "customer-processing-order.php":
<?php printf( __( 'Dear %s %s', 'kalium-child' ), $order->billing_first_name, $order->billing_last_name ); ?></p>
Loco translate can find the word "Dear %s %s" and I can translate it. BUT when email is sent, the word is not translated.
Any ideas what can be wrong?
Thanks
Martin
Hi Martin,
Are you trying to Translate Dear word over WooCommerce or Kalium-Child or Kalium theme, which one you are choosing on Loco Translate?
Thank you.
Hello Eroll,
Via 'kalium-child' text domain. I have kalium-child on Loco Translate and it find the translateable string as well.
Thank you
Kind regards
Martin
Hi Martin,
As i can understand you have placed woocommerce plugin inside kalium-child, why?
Originally customer-processing-order.php would be part of woocommerce domain, so try to keep the file the way is just modification you are trying to do. Then use Loco Translate to Edit WooCommerce Plugin and search for term Dear.
Thank you
Hello Eroll.
No of course not, I can't see how you have come to that conclusion? How would I be running my woocommerce store with woocommerce plugin inside kalium-child folder?
Maybe I was not clear enough in my last posts. I have a modified customer-processing-order.php in emails folder in my child-theme. The string was translated in emails previously with no problem.
Suddenly after the theme-update last November the translations are not implemented any longer. Do you know why? I pasted all the code to show how I've set up the translation.
Thank you
Kind regards
Martin
Hi Martin,
Thank you for your explanation, but i would like to give a try in live on your site, please consider updating your WP Credentials so I would give a try.
Thank you.