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

    As far as I can see WPML searches for theme translations in the “MO file in /wp-content/themes/enfold” folder, however the enfold files are kept in “/wp-content/themes/enfold/lang”.

    Is there a setting somewhere I should change somewhere, or perhaps I am misunderstanding the way it works?

    • This topic was modified 10 years, 9 months ago by dngood.
    #233849

    Hi dngood!

    How are you? I hope you’re doing well today.

    The languages should be located on wp-content/languages by default but enfold loads the languages files on the lang folder.

    if(!function_exists('avia_lang_setup'))
    {
    	add_action('after_setup_theme', 'avia_lang_setup');
    	function avia_lang_setup()
    	{
    		$lang = get_template_directory()  . '/lang';
    		load_theme_textdomain('avia_framework', $lang);
    	}
    }
    

    http://codex.wordpress.org/Function_Reference/load_theme_textdomain

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.