X
120292

Ticket #120292 Public [Closed]

Hi, when I click on L2 or L3 in the settings to translate the months, ... it redirects me to a non-existing page (404)

  • Hi,
    According to the documentation of eventon, you can add more languages as explained here:

    https://docs.myeventon.com/documentations/include-additional-languages/

    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);
    function eventon_lang_count($count){
    // return 4 to support 1 additional languages on top of 3 existing ones
    return 4;
    }
    /*function eventon_lang_vars($array){
    // 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’);
    return $new_array;
    }

    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!

    BY: Steven Cannoodt - Apr 14,2019 AT 8:49PM - 3 weeks ago
    • By: Artem Apr 15,2019 AT 2:52AM - Posted 1 month ago - #120326

      Hello,

      Please don't use NL, FR,... Reverse your changes and use $new_array = array('L4'); in order to add L4 as a forth language.

    • By: Steven Cannoodt Apr 15,2019 AT 10:26AM - Posted 1 month ago - #120364

      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!

      Steven

    • By: Artem Apr 15,2019 AT 12:22PM - Posted 1 month ago - #120389

      Could you please try the instructions mentioned in this documentation? Maybe a third-party can cause this?

    • By: Steven Cannoodt Apr 22,2019 AT 10:49AM - Posted 3 weeks ago - #121077

      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!

      Steven

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON