Other Documentations
How to Include Additional Languages
February 10, 2015
With the below code placed in your function.php file (this file is inside your currently activated theme folder) you should be able to support more than 3 languages for translation in EventON Settings > Language
1 2 3 4 5 6 7 8 9 10 11 |
add_filter('eventon_lang_var_count','eventon_lang_count', 10, 1); add_filter('eventon_lang_variation','eventon_lang_vars', 10, 1); function eventon_lang_count($count){ // return 6 to support 3 additional languages on top of 3 existing ones return 6; } function eventon_lang_vars($array){ // add our additional 3 languages $new_array = array('L4','L5','L6'); return array_merge($array, $new_array); } |
Did this article help you? If not, send us a ticket via helpdesk