Home › Forums › Calendar Products › Events Calendar PRO › Change "Organizer" to "Contact" and "Venue" to "Location"
- This topic has 7 replies, 5 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
July 14, 2013 at 10:25 am #55094David DolencParticipant
What would be the best way to change text “Organizer” to “Contact” and “Venue” to “Location” on the event page?
Also, is there a way to apply these two changes globally so that the two words would also be replaced everywhere on the Dashboard?
Thank you!July 15, 2013 at 3:50 pm #55293JonahParticipantHi koledarcek,
The easiest way to do this is via a filter like so:
function filter_translations($translation, $text, $domain) {
if ($domain == 'tribe-events-calendar') {
switch ($text) {
case 'Venue':
$translation = 'Place';
break;
}
}return $translation;
}
add_filter('gettext', 'filter_translations', 10, 3);
With this approach you need to do each string individually. The alternative to this would be to edit the english translation files and change all the values to what you want them to be. Aside from that, any other approach is going to be even more hacky. I hope this helps but let me know if you have any other questions.– Jonah
July 16, 2013 at 11:56 am #55492David DolencParticipantThank you! It works great.
Is there a similar way to change the two words in the Dashboard? I’m assuming that this might not be worth doing unless there is a way to change a name globally.July 17, 2013 at 1:45 pm #55755JonahParticipantYou’re welcome. Unfortunately there is no global way to do it, so you’d need to track down every instance. The global find feature in Sublime Text 2 can make this process a little easier. Hopefully what I provided you will give you an idea of what else needs to be done.
– Jonah
August 11, 2013 at 1:22 pm #59890Arlene WelcherParticipantThanks for this info… I’m looking to make a similar change. Could you please clarify for me, in what file should I include the filter?
Thanks.August 11, 2013 at 1:24 pm #59891Arlene WelcherParticipantI got it working in my theme functions.php file, but wonder if there is a better place.
August 16, 2013 at 1:36 pm #60806RobMemberFunctions.php is indeed the appropriate location, given our current architecture. Thanks for confirming!
July 7, 2015 at 6:27 am #980168Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Change "Organizer" to "Contact" and "Venue" to "Location"’ is closed to new replies.