Posted: July 29, 2017 at 7:30 pm
I am trying to change a button that comes on a invoice from “change to receipt” to “change to order confirmation” The link is below. I have followed the process here – https://eventespresso.com/wiki/how-to-change-wording-with-poedit/ Compiled the .mo file and uploaded it to the right directory, and edited my wp-config to use English as instructed. However the text on the button does not change. I have tried to use the plug in way but got errors and the plugin recommended is 2 years or more old. Ideas? |
|
Which plugin gave you errors?
Using the ‘Quick Localization’ plugin? Imo you should only use that as a last resort, there are quicker more efficient methods.
What is the full filename of the .mo file you are using? What did you add wp_lang? (You actually don’t need this anymore its in the guide for backwards compatability, if you go to Dashboard -> Settings -> General. WHat is you site language set to?) What is the full path you uploaded the mo file to? |
|
I have English set in the general settings already. Full path is https://02f4d67.netsolhost.com/site/wp-content/uploads/espresso/languages/event-espresso-4-en.po |
|
Which English? I’m asking because it affects the filename you need to use and which translations you should be using to begin with. In either case, your current filename is wrong, the format of the file name is:
There is no The link above is a Another option you have is to use a custom function to translate the string: https://gist.github.com/Pebblo/c087dd8284ee2f87e983c83fa21aec5a You can add that to a custom functions plugin by following the steps here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ The function is better for a few translations, but if you want to translate multiple strings it’s better to use the po/mo files. |
|
Sorry i didn’t have access to FTP where i was earlier. Its US English. the filename is event-espresso-4-en.mo. I would like to figure out this way of doing it since i have other things i want to change. |
|
Change the filename to Does it work for you then? |
|
That worked!! Thanks for all the help. |
|
You’re most welcome 🙂 |
|
The support post ‘Issue with changing receipt\invoice button text’ 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.