Home › Forums › Ticket Products › Event Tickets Plus › Translation in tribe tickets meta row
- This topic has 5 replies, 2 voices, and was last updated 9 years, 11 months ago by
Nico.
-
AuthorPosts
-
May 17, 2016 at 11:58 pm #1115748
Manuela Hernandez Perez
ParticipantHi,
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,
ManuelaMay 18, 2016 at 6:02 am #1115813Nico
MemberHowdy 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,
NicoMay 18, 2016 at 6:51 am #1115834Manuela Hernandez Perez
ParticipantHi 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?May 19, 2016 at 7:02 am #1116372Nico
MemberWow 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,
NicoMay 19, 2016 at 7:43 am #1116402Manuela Hernandez Perez
ParticipantThanks a lot, Nico! After 2 failed attempts, I finally figured out how it is done ;)) it’s working perfect now!!
Best regards,
ManuelaMay 19, 2016 at 11:12 am #1116581Nico
MemberGlad 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 -
AuthorPosts
- The topic ‘Translation in tribe tickets meta row’ is closed to new replies.
