Tagged: enfold, translation
-
AuthorPosts
-
October 22, 2013 at 10:27 am #178956
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.
TomazOctober 23, 2013 at 4:25 am #179435Hey Tomaz!
Update the theme via FTP, when doing it, skip the /lang folder so it will get preserved:

Cheers!
JosueOctober 23, 2013 at 11:27 pm #179991Hi 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
October 23, 2013 at 11:31 pm #179994Hi!
That’s a good idea, please take a look: https://kriesi.at/support/topic/theme-update-and-child-theme/
Cheers!
JosueNovember 4, 2013 at 7:54 pm #184409Hello 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
November 4, 2013 at 9:42 pm #184466It is happening the same to me. No luck,
November 5, 2013 at 9:14 am #184687Hey!
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!
PeterNovember 5, 2013 at 9:35 am #184690Hello Dude,
perfect!!!! ThanksNovember 5, 2013 at 9:36 am #184691Thanks Dude. It works :)
-
AuthorPosts
- The topic ‘Loosing language pack after updating Enfold through dashboard’ is closed to new replies.
