Home › Forums › Ticket Products › Event Tickets Plus › Translation File not showing change on front end.
- This topic has 8 replies, 5 voices, and was last updated 8 years, 11 months ago by
Barry.
-
AuthorPosts
-
October 17, 2016 at 10:28 pm #1178151
James
ParticipantHi 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
October 18, 2016 at 3:12 pm #1178717Geoff B.
MemberGood 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.October 18, 2016 at 4:28 pm #1178763James
ParticipantHi 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
October 19, 2016 at 12:11 pm #1179349Geoff B.
MemberGood 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.
October 19, 2016 at 3:10 pm #1179492James
ParticipantHi 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
October 20, 2016 at 10:37 am #1179988Geoff B.
MemberThat 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.
November 11, 2016 at 8:35 am #1190918Support Droid
KeymasterHey 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 TeamMay 10, 2017 at 10:56 pm #1282176Barry
MemberHi!
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 🙂
-
AuthorPosts
- The topic ‘Translation File not showing change on front end.’ is closed to new replies.
