Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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?

    best
    – Michael

    #268823

    Hey Michael!

    Refer to Peter’s response here:
    https://kriesi.at/support/topic/theme-update-and-child-theme/#post-140430

    Regards,
    Josue

    #269028

    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);
    }

    Cheers
    – Michael

    #269230

    Great, glad we could help :)

    Regards,
    Josue

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