Change the word "Events" throughout the system to "Meetings"

Home Forums Calendar Products Events Calendar PRO Change the word "Events" throughout the system to "Meetings"

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #118118
    kosovichmedia
    Participant

    I 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?

    #118685
    reddishpink
    Participant

    I also need to do something like this. Change the word ‘Events’ to something else.

    #118712
    Brook
    Participant

    Howdy 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

    #118786
    reddishpink
    Participant

    Thanks for that!

    #118843
    kosovichmedia
    Participant

    Thank 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

    #118909
    reddishpink
    Participant

    Good point. I need to change every instance of Events as well.

    #118918
    Brook
    Participant

    Hello 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

    #121390
    reddishpink
    Participant

    Hey 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

    #121470
    Brook
    Participant

    Good 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.pot

    Are you able to find  it now?

    – Brook

    #166747
    bobski
    Participant

    Hi 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

    #167426
    bobski
    Participant

    Anyone got any idea how to change the terms in the english language file ?

    #167714
    Brook
    Participant

    Howdy 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

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Change the word "Events" throughout the system to "Meetings"’ is closed to new replies.