Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #268630

    Hi guys,

    I´d like to change some wording in the German translation that I use in my child theme. When I use Codestyling localization for the translation it only detects the language files in the parent theme.
    Is there any way to use a language file in my child theme?

    – Michael


    Hey Michael!

    Refer to Peter’s response here:



    Thanks again Josue. This works great even if Codestyling Localization still doesn´t detect the Child theme but I can translate the .mo file in the parent and move it over to the child theme.

    By the way there is an error in Peters codesnippet. There is a <br /> tag in it that shouldn´t be there. The right one is

    add_action(‘after_setup_theme’, ‘avia_lang_setup’);
    function avia_lang_setup()
    $lang = get_stylesheet_directory() . ‘/lang’;
    load_child_theme_textdomain(‘avia_framework’, $lang);

    – Michael


    Great, glad we could help :)


Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Language/translation file in child theme’ is closed to new replies.