• Resolved vatbub

    (@vatbub)


    Hi there,

    I am facing an issue where the plugin does not seem to use the translation strings for the word “Free” (as in “the tickets for this event are free”). Instead of the German word “Kostenlos”, the plugin shows the English word “Free”. This happens on the event details page (the page that I linked) and on the “uncoming events” page. In particular, I am talking about the field with CSS class “tribe-events-cost” and “tribe-events-c-small-cta__price”.

    My setup:

    • The Events Calendar version 6.6.3
    • Loco Translate version 2.6.11 to edit translation files

    What I tried so far:

    Obviously, I have tried to open the translation files in Loco Translate, but even after Syncing all files again, Loco Translate shows all occurrences of “Free” to be correctly translated to “Kostenlos”.

    My assumptions:

    I think that this could either be an issue with Loco Translate not showing me what’s actually going on with the translation files, or it could be, that the event plugin uses a hard-coded string instead of the translation files. Either way, I have no idea how I could debug this further and would therefore appreciate any pointers and help.

    Cheers ??

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jes

    (@jescandoit)

    Hi @vatbub

    Thanks for sharing this.

    I have confirmed that the string is hard-coded and stored in a $cost variable found in this file wp-content\plugins\the-events-calendar\src\views\blocks\event-price.php

    I have added your case in to the bug report [TEC-5064] for this issue. We don’t have a time estimate, but you’ll be notified with a reply when there are any updates. Rest assured that we are working on a permanent fix regarding this issue.

    As for the temporary work-around, kindly copy that file to [your-theme]/tribe/events/blocks/event-price.php and replace line 26 with:

    <span class="tribe-block__event-price__cost"> <?php echo esc_html( $cost == 'Free' ? 'Kostenlos' : $cost ) ; ?> </span>

    I hope this helps, please let me know how it goes.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It appears that we haven’t heard back from you in a while, so I’ll assume that the matter has been resolved. If you need any more help, feel free to start a new thread and we’ll be happy to assist you.

    Thread Starter vatbub

    (@vatbub)

    Well, I’m still waiting for TEC-5064 to be fixed, so I wouldn’t necessarily call this resolved….

    Plugin Support Darian

    (@d0153)

    Hi @vatbub

    Yes that is correct. I meant to say that I’ll be closing this thread.

    Please kindly note that we prioritize bugs by taking into consideration the number of users impacted as well as how the bug impacts one’s ability to run an event/sell tickets. We don’t have a specific timeline as to when this issue will be resolved, but trust that our team is aware. Our team communicates updates and bug fixes in our newsletter and via our changelog.

    Feel free to let us know if you have other questions or concerns.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translation for the cost string “Free” does not get used’ is closed to new replies.