Problems with widget events of the week translation

Home Forums Calendar Products Events Calendar PRO Problems with widget events of the week translation

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1481834
    teatrodiegorivera
    Participant

    Hello, in this widget (events of the week) of Events Calendar Pro, the numbers of the month ends in “st”, “nd”, “rd” and “th”. I can’t find where to remove the terminations. The days of the week are translated very well into Spanish. I have reviewed “tribe-events-calendar-pro-es_ES.po” a lot of times. Can you help me?

    #1483495
    Victor
    Member

    Hola!

    Thanks for getting in touch with us! Let me help you with this topic.

    You can modify the Week Day Format (Formato día de la Semana) by navigating to your WP Admin > Events > Settings > Display tab. By default, the English suffix ‘S’ is used to display week dates. Try removing the S from it and see if it works for you.

    You can learn more about date formatting in > https://codex.wordpress.org/Formatting_Date_and_Time

    I hope that helps. 🙂

    Best,
    Victor

    #1487958
    teatrodiegorivera
    Participant

    Thanks, but I do not have the suffix ‘S’ to display week dates.

    #1488435
    Victor
    Member

    Hi There!

    I’m sorry for the confusion. That setting is for the main calendar week view only. If you are using the “This Week” widget, then you can modify the date format by pasting the following snippet in your theme’s functions.php file:

    add_filter( 'tribe_events_this_week_date_format', function (){ return 'j'; } );
    add_filter( 'tribe_events_this_week_day_format', function (){ return 'l'; } );

    Does it work for you?

    Best,
    Victor

    #1494036
    teatrodiegorivera
    Participant

    It works perfectly.

    Thank you very much

    #1494299
    Victor
    Member

    Glad to know that works! 🙂

    Thanks for letting me know about it.

    I’ll close this thread now, but feel free to open a new topic if anything comes up and we’ll be happy to help.

    Cheers,
    Victor

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Problems with widget events of the week translation’ is closed to new replies.