• Resolved dtowns

    (@dtowns)


    The website is in Canadian French and English.

    I can see this entry in the file the-events-calendar-fr_CA.po :

    #: src/views/widgets/list-widget.php:122
    msgid “There are no upcoming %s at this time.”
    msgstr “Il n’y a aucun %s à venir pour le moment.”

    Yet the phrase remains displayed in English.

    I know this is the correct .po file as I experimented by changing other entries and could see the changes being rendered.

    There has to be something simple we are overlooking.

    We are using version 5.16.2 of the Events Calendar.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Abz

    (@abzlevelup)

    Hi @dtowns, it seems like you’re updating it directly and might cause some issues like not appearing on the front end. We’d recommend using a third-party plugin, Loco Translate. https://theeventscalendar.com/knowledgebase/k/managing-translations-with-loco-translate/

    Moreover, on the plugin, you could Sync Button and should be able to add translation accordingly and search for the keyword. See the screenshot here: https://share.getcloudapp.com/p9uQ5J2J.

    Let me know if this helps.

    Best,
    Abz

    Thread Starter dtowns

    (@dtowns)

    Hi Abz,
    You are right and that’s exactly what I was doing. I used Loco Translate to sync and edit the .po file and create the .mo file.

    I relocated the .po and .mo files to the “Custom” folder /wp-content/languages/loco/plugins so should they take precedence.

    I tried relocating them to “system” and even “Author” but still this string shows in English. (I returned them to “Custom” as this seems the best location to avoid being overwritten).

    It just doesn’t make any sense.

    Thread Starter dtowns

    (@dtowns)

    Problem solved.
    I hadn’t realised the “Events Shortcodes For The Events Calendar” plugin had been installed on this site.

    So the Home page was not using the standard Events List widget. This is why the translation was not working.

    The Home page was instead using an “Events Shortcodes Block” which had the exact same message “There are no upcoming events at this time” set up.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“There are no upcoming events at this time” not translated’ is closed to new replies.