Tagged: enfold, translation
Hi,
I am using Slovenian language pack (partly translated, front end only) and each time I update Enfold through WP admin I ‘m loosing it.
Where I should put language files not to loose it?
I’m trying with wp-contnet/languages/themes but no success for now. Any idea?
Thanks.
Tomaz
Hey Tomaz!
Update the theme via FTP, when doing it, skip the /lang folder so it will get preserved:
Cheers!
Josue
Hi Josue
I am doing that, but I also like new admin update and I tought that there is a solution for this.
There is the same issue with woocommerce (slovenian language is not included) and works well when putting custom language in wp-content/languages/woocommerce.
I was trying to add language where packs for twentyeleven … are, but no luck.
Since I’m using child-theme, maybe I should put it there. Any idea?
Tomaz
Hi!
That’s a good idea, please take a look: https://kriesi.at/support/topic/theme-update-and-child-theme/
Cheers!
Josue
Hello Josue,
i make a new folder on child theme /lang, and put it the two language file and i added the code on functions.php, but the theme it still seems to take as default the English language of the theme father.
Thanks
It is happening the same to me. No luck,
Hey!
Try following code instead
add_action('after_setup_theme', 'avia_lang_setup');
function avia_lang_setup()
{
$lang = get_stylesheet_directory() . '/lang';
load_child_theme_textdomain('avia_framework', $lang);
}
The code I posted in the other thread used the get_template_directory() function which will load the files from the parent theme. The get_stylesheet_directory() function should return the right path.
Cheers!
Peter
Hello Dude,
perfect!!!! Thanks
Thanks Dude. It works :)