• Resolved adalov

    (@adalov)


    Hi,

    so I’m not quite sure if I should ask this question here or in “The Events Calendar”‘s support forum, but starting here as it concerns RSVP.

    On a site (not live) using Generate Press Pro, Gutenberg blocks, The Events Calendar (free) and Event Tickets (free), all running with the latest versions, I have the following annoying issue: No matter what I try, the strings in the RSVP box do not translate. E.g. “RSVP here” should translate to “Hier reservieren”, The “Going” button should translate to “Teilnehmen” and the count of participants should translate to “Teilnehmer”.

    What I tried: I have uploaded the respective latest .mo. and .po files for both TEC and Event Tickets from https://translate.www.ads-software.com/ to languages/plugins, I have checked the strings translation in those files, and yes, for instance “Going” is definitely translated. I have uninstalled TEC and Events Tickets and installed them again. I have switched off all plugins to check for conflicts – no result. I have switched to Theme Twentytwentyfour – no result, RSVP still stubbornly shows those strings in English. Then I thought OK, so what, lets do it with a translate function in function.php:

    function translate_text($translated) {
    $translated = str_ireplace(‘RSVP here’, ‘Hier reservieren’, $translated); //
    $translated = str_ireplace(‘Going’, ‘Teilnehmen’, $translated); //
    return $translated;
    }

    which was half-successful because “RSVP here” gets translated while “Going” still does not.

    What am I missing? Thanks for giving me any idea what to do next.

Viewing 1 replies (of 1 total)
  • Thread Starter adalov

    (@adalov)

    Resolved, the solution is:
    Update language files (WordPress – Dashboard – Updates – Update translations)

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.