Hi there, I have a WP site with XStore 1.3 as a parent and a child theme which is active.
I am trying to translate the theme to spanish:
– I already have WP set up in spanish, woocommerce ( most of it) is also in spanish.
– I used the ‘xstore/languages/xstore.pot’ file to create .po and.mo files (in poedit), which I have added to the child theme folder under a ‘languages’ folder
– I added the following to the ‘functions.php’ file: `add_action( ‘after_setup_theme’, ‘load_child_language’ );
function load_child_language() {
load_child_theme_textdomain( ‘mychildtheme-name’, get_stylesheet_directory() . ‘/languages’ );
}`
– No changes seem to take effect
– Also want to do the same for woocommerce, some labels are not changing
Could you please assist with clarifying where/how the files should be structured and called in the child theme to take effect? Ideally I would like to keep the child theme with all my translation files for the theme and woocommerce,
thank you very much.