• Hi there

    Im trying to find a way to translate Compare Responsive Theme from Awesem to Swedish. I figure it would be best to use a Child-theme for this so I can keep my changes when the theme gets updated. I have named my childtheme compare-responsive-child and created .po and .mo files and saved them in compare-responsive-child/languages. I also have put define (‘WPLANG’, ‘sv_SE’); in my wp-config.php.

    In my childthemes functions.php I have put this

    <?php
    /**
     * Setup My Child Theme's textdomain.
     *
     * Declare textdomain for this child theme.
     * Translations can be filed in the /languages/ directory.
     */
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'compare-responsive-child', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    ?>

    …but the theme wont get translated. Can anyone help me out what Im doing wrong?
    Im trying this on localhost but if you want to look at the the you can do so here

    /Karl

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to use translation files in Child theme’ is closed to new replies.