Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #178956


    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?



    Hey Tomaz!

    Update the theme via FTP, when doing it, skip the /lang folder so it will get preserved:



    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?




    That’s a good idea, please take a look: (Purchase code hidden if logged out) /



    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.



    It is happening the same to me. No luck,



    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.



    Hello Dude,
    perfect!!!! Thanks


    Thanks Dude. It works :)

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Loosing language pack after updating Enfold through dashboard’ is closed to new replies.