Cannot translate "Attendee"

Home Forums Ticket Products Event Tickets Plus Cannot translate "Attendee"

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1159235
    Ingo Storl
    Participant

    Hi 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

    #1159573
    Geoff B.
    Member

    Good 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:

    1. Go over to your language files for Event Tickets and Event Tickets Plus (located in the /lang/ folder of each plugin) and download them.
    2. Still in that folder, download the .pot file
    3. Open the .pot file on your computer (using PoEdit). Poedit should fix a glitch in the .pot file automatically.
    4. Save the .pot file
    5. Open each .po file and choose (Update from .pot file)
    6. 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.

    #1161382
    Ingo Storl
    Participant

    This reply is private.

    #1161851
    Geoff B.
    Member

    Good 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.

    #1161852
    Geoff B.
    Member

    Just 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’

     

    #1161898
    Ingo Storl
    Participant

    Way to go Geoff!!

    Problem solved, “Attendee” now reads “Teilnehmer”, thanks a lot!

    #1162156
    Geoff B.
    Member

    Good 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.

    #1182072
    Geoff B.
    Member

    Hey 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.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Cannot translate "Attendee"’ is closed to new replies.