-
AuthorPosts
-
February 21, 2015 at 1:14 pm #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.
PoozFebruary 23, 2015 at 11:45 am #400538Hi pooz!
Please refer to my post here – https://kriesi.at/support/topic/update-by-ftp/#post-316837
Cheers!
YigitFebruary 23, 2015 at 10:54 pm #401060Hi 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,
PoozFebruary 24, 2015 at 3:08 pm #401448Hey 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,
YigitFebruary 24, 2015 at 4:21 pm #401492Hi 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,
PoozFebruary 25, 2015 at 10:13 am #401932Hey!
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,
IsmaelFebruary 27, 2015 at 9:54 pm #403680Hi Ismael,
Is that all you want me to do?
Should I add anything to wp-config or other files?
Best regards,
PoozMarch 2, 2015 at 3:41 am #404229 -
AuthorPosts
- You must be logged in to reply to this topic.
