Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200210

    Hi there,

    I was wondering if the /wp-content/themes/enfold/lang – language files are updated automatically and are overwritten?

    I’ve corrected a mistake in spelling in one of the Dutch files nl_NL.po. Would be a shame if I have to correct it every time the theme updates.

    (Oh wait, that doesn’t fix the error in the website. How does one correct the language?)
    (My bad, I just learned you need to ‘compile’ the .po to a .mo)

    Thank you for your time.

    Regards,

    Matthijs

    #200310

    Hey MatthijsLiethof!

    You can use a child theme then add the “lang” folder. Add this on the child theme’s functions.php:

    add_action('after_setup_theme', 'avia_lang_setup');
    function avia_lang_setup()
    {
    $lang = get_stylesheet_directory()  . '/lang';
    load_child_theme_textdomain('avia_framework', $lang);
    }

    You can also use FTP to update the theme and skip the lang folder.

    Cheers!
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Standard Theme Language files’ is closed to new replies.