• Resolved marcusrossi

    (@marcusrossi)


    I am trying to make the pt_BR work but I cant find the code that I have to use on the child theme. I already created a /languages folder.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey, got the same problem.

    it used to work with this translations: https://github.com/presscustomizr/hueman/tree/master/languages

    but at least the german translation (got it in the theme child) suddenly stopped working.

    Hi,

    If you need to load language files from child theme, you will need the following code in your child theme functions.php

    // Load translation files from your child theme instead of the parent theme
    function my_child_theme_locale() {
        load_child_theme_textdomain( 'hueman', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_locale' );

    Please see screenshot of the 404 page explanation in German.
    https://i.imgur.com/fS9qTNO.png

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing language’ is closed to new replies.