{"id":1517641,"date":"2018-04-27T03:16:40","date_gmt":"2018-04-27T10:16:40","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/"},"modified":"2018-04-27T03:16:40","modified_gmt":"2018-04-27T10:16:40","slug":"change-rsvp-text","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/","title":{"rendered":"Change RSVP Text"},"content":{"rendered":"<p>Hi,<br \/>\ni 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.<\/p>\n<p>The german String &#8220;RSVP Best\u00e4tigung senden an:&#8221; is a good example of one that needs to be changed.<\/p>\n<p>Here is the used code: <\/p>\n<pre><code>function tribe_custom_theme_text_with_context ( $translation, $text, $context, $domain ) {\n \n\t\/\/ Put your custom text here in a key =&gt; value pair\n\t\/\/ Example: &#039;Text you want to change&#039; =&gt; &#039;This is what it will be changed to&#039;\n\t\/\/ The text you want to change is the key, and it is case-sensitive\n\t\/\/ The text you want to change it to is the value\n\t\/\/ You can freely add or remove key =&gt; values, but make sure to separate them with a comma\n\t\/\/ This example changes the label &quot;Venue&quot; to &quot;Location&quot;, and &quot;Related Events&quot; to &quot;Similar Events&quot;\n\t$custom_text = array(\n\t\t&#039;Confirm RSVP&#039; =&gt; &#039;Confirm Reservation&#039;,\n\t\t&#039;RSVP&#039; =&gt; &#039;Reservierung&#039;,\n\t\t&#039;Please fill in the RSVP confirmation name and email fields.&#039; =&gt; &#039;Bitte f\u00fcllen Sie die Felder Name und E-Mail aus.&#039;,\n\t\t&#039;Send RSVP confirmation to:&#039; =&gt; &#039;Best\u00e4tigung senden an:&#039;,\n\t);\n\t\n\t\/\/ If this text domain starts with &quot;tribe-&quot;, &quot;the-events-&quot;, or &quot;event-&quot; and we have replacement text\n    \tif( (strpos($domain, &#039;tribe-&#039;) === 0 || strpos($domain, &#039;the-events-&#039;) === 0 || strpos($domain, &#039;event-&#039;) === 0) &amp;&amp; array_key_exists($translation, $custom_text) ) {\n\t\t$translation = $custom_text[$translation];\n\t}\n    return $translation;\n}\nadd_filter(&#039;gettext_with_context&#039;, &#039;tribe_custom_theme_text_with_context&#039;, 21, 4);<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1517641","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Change RSVP Text -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change RSVP Text -\" \/>\n<meta property=\"og:description\" content=\"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 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/\",\"name\":\"Change RSVP Text -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-04-27T10:16:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Change RSVP Text\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Change RSVP Text -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/","og_locale":"en_US","og_type":"article","og_title":"Change RSVP Text -","og_description":"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 [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/","name":"Change RSVP Text -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-04-27T10:16:40+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-text\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Change RSVP Text"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1517641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1517641\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1517641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}