Support

Home Forums Event Espresso Premium Changing Language via Poedit

Changing Language via Poedit

Posted: July 16, 2015 at 11:30 am

Viewing 7 reply threads


Brenden Corr

July 16, 2015 at 11:30 am

Hello –

I was wondering if the instructions on this page here, https://eventespresso.com/wiki/how-to-change-wording-with-poedit/, are still current? I have followed the instructions for using POEDIT to change the language files – and noticed first that the upload directory was a bit different than what is mentioned in the article (the language file was not where the directory path was mentioned) and then secondly I am not finding the code for step #7 Edit your wp-config.php file. Where it says to change the define(‘WPLANG’, ”); change it to define(‘WPLANG’, ‘en_US’); in the wp-config.php file.

I am using the EE 4.7.8 and hosting with GoDaddy.

Thanks for any guidance!


Tony

  • Support Staff

July 16, 2015 at 11:39 am

Hi Brenden,

Can you check the full file name of the PO file and post it here please?

The directory you upload the language file to is /wp-content/uploads/espresso/languages/

WPLANG is no longer required within wp-config.php, this should be taken from your site settings within Dashboard -> Settings -> General -> Site Language.


Brenden Corr

July 16, 2015 at 12:24 pm

Thank you –

When I go to wp-content/uploads/espresso there is not a languages file located there…there is only css, gateways, logs, templates and tickets as folders.

The PO file that I downloaded was: event-espresso-4-en.po I made my modifications wanting to change the words “purchase” to “reserve” and saved the file and then uploaded the MO version to the languages file that I found in the wp-content/languages directory.


Tony

  • Support Staff

July 16, 2015 at 12:46 pm

Change the file name from event-espresso-4-en.po to event-espresso-4-en_US.po

Then open it up in POEdit and save once again to generate a MO file (or simply also rename the MO file to match)

If there is no language directory within /wp-content/uploads/espresso/ then you may need to manually create it.

/wp-content/languages/ is the wrong location and will not work as expected.

So if you manually create the language directory, then place the event-espresso-4-en_US.MO file within there (/wp-content/uploads/espresso/languages/) does it work?


Brenden Corr

July 16, 2015 at 1:46 pm

Hi Tony –

Okay – I double checked all of my naming/spelling and everything and did exactly as you suggested. I verified that I had inserted the translation for “Please note that a maximum number of %d tickets can be purchased for this event per order.”replacing the word purchased with reserved – saved it in a new languages folder in the correct directory and still nothing is happening to this replacement on the registration page. (I cleared my cache and all).

I know awhile ago we had paid for premium support to change the word “Tickets” to “Registration” and that was changed somewhere by a member of your team – could there be some sort of file overwriting what I am trying to do – or conflicting? Sorry – grasping for answers! Thank you again for any suggestions.


Tony

  • Support Staff

July 16, 2015 at 2:43 pm

could there be some sort of file overwriting what I am trying to do – or conflicting?

Possibly, but only if your translating the same string.

Can you send me your PO and MO file please?

If you can email them to support[at]eventespresso.com I’ll take a look.

We could also add this to function used previously to change the phrasing, but if you require more string changes the PO/MO files may be the better option as its easier to maintain once its working.

If you go to Dashboard -> Settings -> General.

Look at your ‘Site language’ setting, what is it currently set to?


Brenden Corr

July 16, 2015 at 3:39 pm

Thank you – my site language setting is set to English – US. I am emailing now the PO/MO file.


Lorenzo Orlando Caum

  • Support Staff

July 16, 2015 at 6:31 pm

Hi Brenden, are you trying to change the following message?

Please note that a maximum number of %d tickets can be purchased for this event per order.

…to this:

Please note that a maximum number of %d tickets can be reserved for this event per order.

If so, please use this instead:

https://gist.github.com/lorenzocaum/38baf9ceb1188185187d


Lorenzo

Viewing 7 reply threads

The support post ‘Changing Language via Poedit’ 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