Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pirinenj

    (@pirinenj)

    Hi Sk Shaikat,

    I changed woocommerce-upcoming-product.php and tested with and without
    load_child_theme_textdomain( ‘wup’, get_stylesheet_directory() . ‘/languages/’ );
    in my functions.php, but still did not pick up translations from child theme language directory.

    This works ok now. Woocommerce translations are coming from child theme language directory, but might, of course, be because it came with the theme itself.

    Br,
    Jukka

    Thread Starter pirinenj

    (@pirinenj)

    Hi Sk Shaikat,

    The piece of code you sent did not work.

    I already have similar functionality in my functions.php to upload other translation files.

    function lang_setup() {
    $lang = get_stylesheet_directory() . ‘/languages’;
    load_child_theme_textdomain( ‘<Parent_Theme_Name>’, $lang );
    }
    add_action( ‘after_setup_theme’, ‘lang_setup’ );

    Br,
    Jukka

Viewing 2 replies - 1 through 2 (of 2 total)