Home › Forums › Ticket Products › Event Tickets Plus › Cannot translate "Attendee"
- This topic has 8 replies, 3 voices, and was last updated 9 years, 5 months ago by
Geoff B..
-
AuthorPosts
-
September 2, 2016 at 6:51 am #1159235
Ingo Storl
ParticipantHi there,
I am aware that this topic has been discussed previously a lot. However, I can’t seam to get this sorted on my end.
after reading through all the threads created on this, I could not find a solution.I have searched the PHP files to see if I can get the text string “attendee” from where it’s generated, no luck there.
Strangely I found the text string in the translation files in singular and plural and they have been translated correctly with “Teilnehmer” in my language (German). But the translation does not show in the front end. Attached are 3 screenshots to display this.
There have been a couple translation issues that I needed to sort out, this took my quite a while since not all could be resolved with loco, rather had to be changed in the php and placed in the template override folder.
Please help me translate this one word. Thanks a million – Regards Ingo
September 2, 2016 at 7:50 pm #1159573Geoff B.
MemberGood evening Ingo and welcome back!
Thank you for reaching out to us.
We are sorry to hear about that missing translation.
I would love to help you with this topic.As a first troubleshooting step, could you please provide us with your complete system information in a private reply using the instructions found in the following link?
https://theeventscalendar.com/knowledgebase/sharing-sys-info/
As it stands, this could be caused by a glitch we have recently been experiencing with translation files for the Event Tickets family.
There is a bug ticket opened and this should be addressed fairly quickly. We do apologize for the inconvenience.
In the meantime, there are a couple of workarounds available:
- Go over to your language files for Event Tickets and Event Tickets Plus (located in the /lang/ folder of each plugin) and download them.
- Still in that folder, download the .pot file
- Open the .pot file on your computer (using PoEdit). Poedit should fix a glitch in the .pot file automatically.
- Save the .pot file
- Open each .po file and choose (Update from .pot file)
- Save each .po file and put them back in their language folders.
As an alternative, you could use the following snippet in the functions.php file of your WordPress theme: https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/
Let me know how that goes.
Best regards,
Geoff B.September 8, 2016 at 12:02 am #1161382Ingo Storl
ParticipantThis reply is private.
September 8, 2016 at 7:55 pm #1161851Geoff B.
MemberGood evening Ingo,
Thank you for your system information.
I believe I have found the cause of this string not translating properly.
The translation domain is incorrect in the file /wp-content/plugins/event-tickets-plus/src/views/tickets-plus/orders-tickets.php at line 70.
You need to change that line to
echo sprintf( esc_html__( ‘Attendee %d’, ‘event-tickets-plus’ ), $i + 1 );
I will open a bug ticket so that this gets resolved as well.
Let me know how that goes.
Best regards,
Geoff B.September 8, 2016 at 7:56 pm #1161852Geoff B.
MemberJust to clarify, you still need to keep the php opening and closing tags.
Basically, you only need to change ‘event-tickets’ to ‘event-tickets-plus’September 9, 2016 at 12:07 am #1161898Ingo Storl
ParticipantWay to go Geoff!!
Problem solved, “Attendee” now reads “Teilnehmer”, thanks a lot!
September 9, 2016 at 10:46 am #1162156Geoff B.
MemberGood afternoon Ingo,
I’m super stoked that this helped fix things for you.
You are welcome back on our support forums any time 🙂
For now, I am going to close this thread.
Have a great weekend!
Geoff B.
October 24, 2016 at 12:43 pm #1182072Geoff B.
MemberHey Ingo,
Just a quick note to let you know this has been fixed as part of our latest updates.
Have a great week!
Best regards,
Geoff B.
-
AuthorPosts
- The topic ‘Cannot translate "Attendee"’ is closed to new replies.
