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

    #179435

    Hey Tomaz!

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

    Cheers!
    Josue

    #179991

    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

    #179994

    Hi!

    That’s a good idea, please take a look: https://kriesi.at/support/topic/theme-update-and-child-theme/

    Cheers!
    Josue

    #184409

    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

    #184466

    It is happening the same to me. No luck,

    #184687

    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

    #184690

    Hello Dude,
    perfect!!!! Thanks

    #184691

    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.