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
Hi pooz!
Please refer to my post here – https://kriesi.at/support/topic/update-by-ftp/#post-316837
Cheers!
Yigit
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
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
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
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
Hi Ismael,
Is that all you want me to do?
Should I add anything to wp-config or other files?
Best regards,
Pooz