Translation File not showing change on front end.

Home Forums Ticket Products Event Tickets Plus Translation File not showing change on front end.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1178151
    James
    Participant

    Hi Guys,

    I think I may have found a bug in the system so to speak!

    With regards to selling tickets for an event, if the event has passed, a message is shown, “Tickets are not available as this %s has passed.” I believe the trigger for this is found in /wp-content/plugins/event-tickets/src/Tribe/tickets.php Line 1376

    This wording can also be found in the event-tickets translation file so I changed wording to “Bookings are not available as this %s has passed” in the event-tickets-en_AU.po file and uploaded it to the wp-content/languages/plugins folder

    The change is not being reflexed on the front end. All other translations changes are changing but not these messages.

    I updated the event-tickets-en_AU.po files from the latest event-tickets.pot file. I’ve tried using this snippet code but it didn’t work either.

    I tried getting the change to work on a localhost server with only wordpress, and event calendar, event tickets and event tickets pro using the Avada theme, it didn’t change the wording. I then tried it with a default theme, to no avail.

    Until I find a solution, I’ve changed the wording in the core file at /wp-content/plugins/event-tickets/src/Tribe/tickets.php Line 1376 but that isn’t a good long term solution.

    Any assistance would be appreciated.

    Cheers

    James

    #1178717
    Geoff B.
    Member

    Good evening James and welcome back!

    Thank you for bringing this to our attention.

    I will open a ticket for this. In the meantime, if you don’t mind, could you also try the following change in the code on line 1376

    $message = sprintf( __( 'Tickets are not available as this %s has passed.', 'event-tickets' ), $events_label_singular_lowercase );

    Instead of

    $message = sprintf( esc_html__( 'Tickets are not available as this %s has passed.', 'event-tickets' ), $events_label_singular_lowercase );

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1178763
    James
    Participant

    Hi Geoff,

    Thanks for the reply, much appreciated.

    I put the code you provided in the tickets.php file but unfortunately it didn’t change the wording on the front end.

    Cheers

    James

    #1179349
    Geoff B.
    Member

    Good afternoon James,

    Thank you for trying that out.

    I will leave it to our awesome Dev team to figure out.

    Have a great day!

    Geoff B.

    #1179492
    James
    Participant

    Hi Geoff,

    Thanks for the update.

    If I work it out myself or find out any more information that may solve it, I’ll let you know.

    Cheers

    James

    #1179988
    Geoff B.
    Member

    That is awesome James!

    But if you don’t, that is alright too. Our amazing Dev staff will certainly tackle this one 🙂

    Have a great day!

    Geoff B.

    #1190918
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

    #1282176
    Barry
    Member

    Hi!

    We believe this is resolved and you should now be able to translate the string you referenced. Should you believe that not to be the case or if you have further questions or difficulties, please do open a new forum topic and let us know.

    Thanks 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Translation File not showing change on front end.’ is closed to new replies.