• Hi,
    thanks for a cool theme.

    I need to display my Minamaze child theme in another language (Danish) and I wonder how to translate it correctly.

    I have installed the Codestyle Localization plugin and I have managed to make the translation work by translating the “mother” theme, Minamaze, and putting language files there

    /minamaze/languages/da_DK.po
    /minamaze/languages/da_DK.mo

    But this is not a good solution in the long run since files are overwritten on updates.

    So the right way would be to put the language files in the child themes languages folder following the guidelines in the Codex:

    http://codex.wordpress.org/Function_Reference/load_child_theme_textdomain

    I can’t seem to make this work though.

    add_action( 'after_setup_theme', 'my_minamaze_child' );
    function my_minamaze_child() {
        load_child_theme_textdomain( 'my-minamaze-child', get_stylesheet_directory() . '/languages' );
    }

    Codestyling localization complains about textdomains:

    Error: The actual loaded translation content does not match the textdomain: lan_thinkupthemes
    Expect, that any text you translate will not occure as long as the textdomain is mismatching!
    This is a coding issue at the source files you try to translate, please contact the original Author and explain this mismatch.

    I tried a number of different things, but to no avail. Ideas very welcome!

    Best regards,
    Ben

  • The topic ‘Translating a Minamaze child theme’ is closed to new replies.