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
Hey Michael!
Refer to Peter’s response here:
https://kriesi.at/support/topic/theme-update-and-child-theme/#post-140430
Regards,
Josue
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
Great, glad we could help :)
Regards,
Josue