Translation in tribe tickets meta row

Home Forums Ticket Products Event Tickets Plus Translation in tribe tickets meta row

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1115748

    Hi,
    how can I translate “Send RSVP confirmation to” and “Full Name” (see frontend: http://prntscr.com/b5ej9u) ?
    I saved the translation by Loco Translate as well as by editing the .po and .mo file via FTP transfer (see backend: http://prntscr.com/b5eilc). But the plugin doesn’t react – there’s still the english version online.
    Best regards,
    Manuela

    #1115813
    Nico
    Member

    Howdy Manuela,

    Welcome to our support forums and thanks for reaching out to us. I’ll help you here…

    To achieve this you can use a version of the snippet in this article: Change the wording of any bit of text or string. Just paste the code below in your theme (or chidl theme) functions.php file and it should the trick for you:


    /**
    * Change translations in Event Tickets
    */
    function tribe_custom_theme_text ( $translations, $text, $domain ) {

    $custom_text = array(
    'Send RSVP confirmation to:' => 'Enviar RSVP a:',
    'Full Name' => 'Nombre Completo',
    );

    if((strpos($domain, 'event-tickets') === 0 ) && array_key_exists($text, $custom_text) ) {
    $text = $custom_text[$text];
    }

    return $text;
    }
    add_filter('gettext', 'tribe_custom_theme_text', 20, 3);

    You can also use the Say What? plugin to change translations via GUI.

    Please let me know if this works for you,
    Best,
    Nico

    #1115834

    Hi Nico,
    thank you very much for your fast reply! Unfortunately it didn’t work. I copied your code into the functions.php file of my theme, but after I saved it, I got a blank page and neither backend nor frontend worked anymore. What did I do wrong?

    #1116372
    Nico
    Member

    Wow sorry to hear Manuela!

    I’m not sure about it, it’s working fine in my local install and the original snippet is used by many folks and don’t seem to cause this issue. Maybe there’s a formatting issue whn you copied over to your functions.php file? Can you delete the snippet and re-past from the embed below?

    https://gist.github.com/niconerd/8fa951807ea0e1f89a930602c2962ad2

    Please let me know about it in case there are still issues please send me a copy of your functions.php file in a private reply,
    Best,
    Nico

    #1116402

    Thanks a lot, Nico! After 2 failed attempts, I finally figured out how it is done ;)) it’s working perfect now!!
    Best regards,
    Manuela

    #1116581
    Nico
    Member

    Glad to hear Manuela 🙂

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Translation in tribe tickets meta row’ is closed to new replies.