Home › Forums › Calendar Products › Events Calendar PRO › Change the word "Events" throughout the system to "Meetings"
- This topic has 11 replies, 4 voices, and was last updated 11 years, 11 months ago by
Brook.
-
AuthorPosts
-
March 12, 2014 at 7:53 pm #118118
kosovichmedia
ParticipantI need to change the phrasing of “Events” in the various buttons and headings throughout the Events Calendar Pro system to the word “Meetings” instead. Are there multiple places this needs to be changed or can I modify a language file to change the word “Events” to “Meetings” instead?
March 14, 2014 at 5:53 am #118685reddishpink
ParticipantI also need to do something like this. Change the word ‘Events’ to something else.
March 14, 2014 at 7:25 am #118712Brook
ParticipantHowdy kosovichmedia & reddishpink,
This example snippet will allow you to change any text in our plugins, or even others if you really wanted. It taps into the WordPress text API to override the text from WP language files. Just paste it into your theme’s functions.php file and modify it to match the specific text you want to override, then on line 13 swap that text string out with what you want to change it to.
Please let me know if that helps. Thanks!
– Brook
March 14, 2014 at 7:44 am #118786reddishpink
ParticipantThanks for that!
March 14, 2014 at 8:44 am #118843kosovichmedia
ParticipantThank you for the answer and I have a follow-up question.
I place the code in the functions file and modified as suggested so that “Find Events” would be replaced by “Find Meetings” and it worked.
I was hopeful that if I simply took away the word “Find” that the system would then look for any word resembling “Events” and replace it simply with “Meetings” but for some reason the system didn’t make any changes.
Will I need to replicate that block of code for every unique reference like “Find Events” or “Upcoming Events” or “Events From” and insert “Find Meetings” and “Upcoming Meetings” and “Meetings From” and so on and on to make all the changes?
Just looking for the most simple option to reduce likelihood of errors or missing some specific phrase.
Thank you for you help. Please let me know.
Chris
March 14, 2014 at 11:26 am #118909reddishpink
ParticipantGood point. I need to change every instance of Events as well.
March 14, 2014 at 12:24 pm #118918Brook
ParticipantHello again,
I am glad you are able to get the code at least partially working! That’s a big step in the right direction.
You have two options:
1) Copy/replace the condition if {} statement and match/replace each block of text you want to change. This guarantees that you will not replace any text you do not accidentally mean to, but yes you could miss something.
2) If you are familiar with regex or PHP’s search/replace functions you could use those as well to accomplish what you need. The drawback is that it will replace the word events everywhere. If you keep the text_domain condition then you could at least limit the replacement to text within that domain.
You might search through the WP Language file included with our plugin to find each bit of text you would need to replace. This could help you decide between option 1 or 2.
Sadly, none of this will make sense unless you are pretty familiar with PHP. If that does not describe you and you do not know someone whom you can hire, have no fear. We actually keep a list of freelancers who are quite capable of making changes on your behalf. You can obtain this list by emailing [email protected] and requesting it.
Does that help you guys? I want to be as helpful as I these forums allow so please let me know.
– Brook
March 20, 2014 at 2:39 am #121390reddishpink
ParticipantHey thanks for the help! getting there
Im happy to change the language file but where do I find this:WP Language file included with our plugin
March 20, 2014 at 7:14 am #121470Brook
ParticipantGood question! There are a few different language files, usually one for each plugin. You will generally find them within the /plugin-name/lang/ directory. For instance, for the core Events plugin here is the English language file:
/wp-content/plugins/the-events-calendar/lang/tribe-events-calendar.potAre you able to find it now?
– Brook
May 19, 2014 at 5:14 pm #166747bobski
ParticipantHi Trying to do the same thing but the language file tribe-events-calendar.pot doesn’t seem to change when you edit it. I have made a few changes to different terms in the language file so as to reflect the correct terminology for ‘Courses’ instead of ‘Events’…
Changing the /wp-content/plugins/the-events-calendar/lang/tribe-events-calendar.pot file doesnt seem to control the default english language file.
Anyone any ideas ?
Thanks in advance
Bob
May 20, 2014 at 5:52 am #167426bobski
ParticipantAnyone got any idea how to change the terms in the english language file ?
May 20, 2014 at 10:02 am #167714Brook
ParticipantHowdy bobski!
The best way to change the wording of something is definitely by using the snippet I posted above:
This example snippet will allow you to change any text in our plugins,
Editing the language file directly is not a good idea, especially for the default language file. It does not always work as you have discovered, and each time we update the plugin you will have to migrate your custom code into our new and updated language file. However, using the nisppet above you will not face this issue.
If you have further issues, would you mind opening up a new topic here about your issue? In this forum we try to keep our threads focused on just one user’s problem. This ensures that we are addressing your specific problem instead of a general group one, and not possibly missing anything unique your situation. I hope you understand our reasoning here and do not mind this extra step, we have just found it serves our users best.
Cheers!
– Brook
-
AuthorPosts
- The topic ‘Change the word "Events" throughout the system to "Meetings"’ is closed to new replies.
