Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #400061

    Hi support,

    I would like to have English in backend, Danish in frontend.
    To many Danish translations are missing or confusing in backend.

    Thanks.
    Pooz

    #400538

    Hi pooz!

    Please refer to my post here – https://kriesi.at/support/topic/update-by-ftp/#post-316837

    Cheers!
    Yigit

    #401060

    Hi Yigit,

    I doesn’t work for me… :-/

    Enfold and admin is still in danish.
    I can live with admin in danish, but not Enfold……as mentioned earlier then too many translations are wrong or missing.

    Best regards,
    Pooz

    #401448

    Hey Pooz!

    Would you like to make frontend English? If so, please set language to English in wp-config.php file and then use the code to translate WP backend

    add_filter('locale', 'wpse27056_setLocale');
    function wpse27056_setLocale($locale) {
        if ( is_admin() ) {
            return 'da_DK';
        }
        return $locale;
    }

    Best regards,
    Yigit

    #401492

    Hi Yigit,

    Frontend = danish / da_DK
    Backend including Enfold = english / en_US.

    The add_filter – solution didn’t work, either adding WP_lang in wp-config.
    So I tried to change the language in Settings to en_US, resulting in the whole website (front+back) showing english language.

    Best regards,
    Pooz

    #401932

    Hey!

    Set the language back to default then add this to the functions.php to disable theme options translation:

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

    Best regards,
    Ismael

    #403680

    Hi Ismael,

    Is that all you want me to do?

    Should I add anything to wp-config or other files?

    Best regards,
    Pooz

    #404229

    Hi!

    Let’s try the code Ismael provided for functions.php first and see if it works.

    Cheers!
    Rikard

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