Support

Home Forums Event Espresso Premium Issue with changing receipt\invoice button text

Issue with changing receipt\invoice button text

Posted: July 29, 2017 at 7:30 pm

Viewing 7 reply threads


jlnewell

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?

https://02f4d67.netsolhost.com/site/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=invoice&context=purchaser&token=1-fb923d25fdb9c9858c2fd6b47c22632b&GRP_ID=7&id=7


Tony

  • Support Staff

July 31, 2017 at 5:25 am

I have tried to use the plug in way but got errors

Which plugin gave you errors?

the plugin recommended is 2 years or more old

Using the ‘Quick Localization’ plugin? Imo you should only use that as a last resort, there are quicker more efficient methods.

Compiled the .mo file and uploaded it to the right directory, and edited my wp-config to use English as instructed.

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?


jlnewell

July 31, 2017 at 12:57 pm

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


Tony

  • Support Staff

July 31, 2017 at 3:50 pm

I have English set in the general settings already.

Which English? English (United states) or English (United Kingdom) or even another?

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:

event-espresso-4-{locale}.mo

There is no en locale, it would be en_US for English (United States) or en_GB for English (UK).

The link above is a .po file, is that just a typo?

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.


jlnewell

July 31, 2017 at 4:41 pm

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.


Tony

  • Support Staff

July 31, 2017 at 4:55 pm

Change the filename to event-espresso-4-en_US.mo

Does it work for you then?


jlnewell

August 1, 2017 at 4:22 am

That worked!! Thanks for all the help.


Tony

  • Support Staff

August 1, 2017 at 4:44 am

You’re most welcome 🙂

Viewing 7 reply threads

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.

Event Espresso