Change RSVP Text

Home Forums Ticket Products Event Tickets Plus Change RSVP Text

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1517641
    Justin
    Participant

    Hi,
    i am looking fo a way to modify the RSVP Strings. his wording is quit unusual in germany. I found some forum topics with similar need and some code snippets. I tried the one from your knowledge base. However nothing changes. I think because the string is only changed in the english translation and the german one overrides it again.

    The german String “RSVP Bestätigung senden an:” is a good example of one that needs to be changed.

    Here is the used code:

    function tribe_custom_theme_text_with_context ( $translation, $text, $context, $domain ) {
     
    	// Put your custom text here in a key => value pair
    	// Example: 'Text you want to change' => 'This is what it will be changed to'
    	// The text you want to change is the key, and it is case-sensitive
    	// The text you want to change it to is the value
    	// You can freely add or remove key => values, but make sure to separate them with a comma
    	// This example changes the label "Venue" to "Location", and "Related Events" to "Similar Events"
    	$custom_text = array(
    		'Confirm RSVP' => 'Confirm Reservation',
    		'RSVP' => 'Reservierung',
    		'Please fill in the RSVP confirmation name and email fields.' => 'Bitte füllen Sie die Felder Name und E-Mail aus.',
    		'Send RSVP confirmation to:' => 'Bestätigung senden an:',
    	);
    	
    	// If this text domain starts with "tribe-", "the-events-", or "event-" and we have replacement text
        	if( (strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0 || strpos($domain, 'event-') === 0) && array_key_exists($translation, $custom_text) ) {
    		$translation = $custom_text[$translation];
    	}
        return $translation;
    }
    add_filter('gettext_with_context', 'tribe_custom_theme_text_with_context', 21, 4);
    #1521540
    Jennifer
    Keymaster

    Hello,

    Thanks for reaching out!

    I think your best bet here would be to follow the instructions here to override the translation files. This will let you change the German version of the strings to whatever you would like 🙂

    If the translations aren’t as accurate as they could be, we would love it if you could submit your updates so that we can get them corrected! This article has some instructions on doing so.

    Please let me know if you have any questions!

    Thanks,

    Jennifer

    #1538126
    Support Droid
    Keymaster

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change RSVP Text’ is closed to new replies.