According to the documentation of eventon, you can add more languages as explained here:
I then used that information to add this to my functions.php:
add_filter(‘eventon_lang_var_count’,’eventon_lang_count’, 10, 1);
add_filter(‘eventon_lang_variation’,’eventon_lang_vars’, 10, 1);
// return 4 to support 1 additional languages on top of 3 existing ones
// add 1 additional language called KU and replace exisiting L1 to NL, L2 to FR, L3 to EN
$new_array = array(‘NL’,’FR’,’EN’,’KU’);
but then when I click on the languages I added in the settings, it reverts to a non-existing page.
I then took the code above out, and the L1,L2,L3 came back as before, but when I click on L2 for example to translate these words in the list (months, days, …) it also goes to a non existing page.
Is it possible to change L1, L2, L3 to these languages I mentioned in my code? And if so, can I still translate them, and if not, how can I fix it so the L2, L3 doesn’t go a non – existing page?
Thank you!Apr 14,2019 AT 8:49PM - 3 weeks ago -
Please don't use NL, FR,... Reverse your changes and use $new_array = array('L4'); in order to add L4 as a forth language.
OK, thank you for clarifying this, I have now fully deleted the added code in my functions.php file, the three initial values came back (L1, L2, L3) (I have not added any code, so no L4 at this time). But when I click on L2 to add in the translation (of months, ... ) it directs me to a non-existing page (404)...
Would you please verify? Maybe I messed something up in the database by changing the L1, ... to different values and it now no longer works?
Thank you for your help!
Could you please try the instructions mentioned in this documentation? Maybe a third-party can cause this?
Hi, I discovered the error, it was indeed an SSL plugin that caused the problem. You can close this ticket, thanks so much for you help!