Posted: May 25, 2015 at 3:45 pm
|
Hi, We use EventEspresso for registering students in our classes. Therefore, the term “ticket” is confusing to some of them. They don’t understand why they’d purchase a ticket for a class, rather than a spot or some other word. How can I change the word “ticket” through EE4 so that it is clearer for my clients? Thanks, Paul |
|
Hi, The best way to do that would be via the language files, we have a guide to a few options on how to go about his here: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/ |
|
Hi, Tried all three methods. None seem to work. I’m trying to change “AVAILABLE TICKETS” header for instance on the registration page and nothing seems to make a difference. Any other suggestions? Paul |
|
Hi, I tested with the gettext function in a site specific plugin and it worked fine: http://take.ms/s2au0 I didn’t retest the language files but those are usually tried and tested methods already. More info on site specific plugins: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
That seems to work for some things, but not others. For instance, I can change the AVAILABLE TICKETS to SPACES AVAILABLE, but underneath the description where it says the maxinum tickets available for purchase, I cannot change that ticket text to something else. Similarly, I cannot change the headings for the event details where it lists: EVENT DATE THIS TICKET THIS TICKET TOTAL TICKETS Not sure what the difference is. Paul |
Hi Paul, You’ll see the difference if you open up Event Espresso in your IDE. Here are a few examples:
The above %s are there to allow for dynamically adding html, without directly adding the html to the translated string. |
|
|
Josh, But, I’m just trying to change the word ticket to space and tickets to spaces. And that doesn’t seem to work and I’m at a loss as to why. Even if I have the code search for Ticket%sSold and replace it with Spots%sSold, it doesn’t work. Paul |
|
Hi, The thing with string translation in WordPress, is that you can’t change individual words in a string, you have to change the full string (even if you are keeping most of it the same). This will change the tickets sold area wording.
|
|
Okay, So the one string left giving me difficulty is: * Please note that a maximum number of 4 tickets can be purchased for this event per order. Where I want to change “tickets” to “spots” Thanks, Paul |
This is the string in full with a suggested replacement:
|
|
The support post ‘Changing the word ticket to something else’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.