Support

Home Forums Event Espresso Premium Language file is not used anymore after updating WordPress core to v6.7

Language file is not used anymore after updating WordPress core to v6.7

Posted: November 13, 2024 at 8:03 am

Viewing 3 reply threads


Manuel

November 13, 2024 at 8:03 am

This morning I updated the WordPress core to the latest version 5.7. However it seems that Event Espresso doesn’t use the Dutch language file anymore after updating, even though the Dutch language files is present and everything worked before.


Tony

  • Support Staff

November 14, 2024 at 5:51 am

Hi there,

Where is your Dutch language file saved?

EE can load language files from multiple locations and I’ve just tested an update from 6.6.2 to 6.7 without issue.

Before: https://monosnap.com/file/HIOYYGPbSmbZp8fnYG4PRMhPbXKUVM

After: https://monosnap.com/file/qkyCXGNpn0ECGuWkdjasfAdVQvk1kZ

So I’m guessing it doesn’t like the file location?


Manuel

November 14, 2024 at 6:20 am

Hello Tony,

I dit not changed anything to the location of the language file. The language file is located: plugins/event-espresso-core-reg/languages/event_espresso-nl_NL.po

Screenshot: https://pevaz.be/wp-content/uploads/Schermafbeelding-2024-11-14-141835.png. You will see that the admin is in Dutch, but the menu items from Event Espresso is in English. Also other plugins are displayed in Dutch without any problems.

Thank you to take a look into this

Manuel


Tony

  • Support Staff

November 14, 2024 at 11:38 pm

Ok, so I’ve been looking into this and 6.7 changes when the translation files load, see:

https://wordpress.org/support/topic/known-issues-with-wordpress-6-7/
https://wordpress.org/support/topic/known-issue-with-just-in-time-text-domain-loading/

Whilst some of this is likely to change and we are investigating how to move forward with EE’s default translations, EE has a method of loading custom translations which should still work (it does for me).

So, in Loco translate go to:

Loco -> Plugins -> Event Espresso -> Setup

You should see something like this:

https://monosnap.com/file/s71P8x68RWrsmAMYzNLEUfDVsB3QRz

Click ‘Import from XML’ file.

Copy and paste the contents of this file to import:

https://gist.github.com/Pebblo/5fcf72d96e59889dad4532937b4b9519

Now, in the Overview, you should see something like this:

https://monosnap.com/file/7cFJXXFCJnyvLSDWSc2PQqpakPMh3j

Find your Dutch translation and hover over it.

Click copy.

Make sure ‘Other’ is set for location and that it uses uploads/espresso/languages/{filename}

Copy the translations and not just the English source.

UNcheck use this file as a template when running Sync.

Like so: https://monosnap.com/file/Pqj0vTPSf8oehlOopx7R7suJ6Gqu9Q

Click Start Translating (note you’re not finished yet!)

Click the ‘Relocate’ tab at the top, then advanced.

Here: https://monosnap.com/file/7XFurtIqr29WU6IQLQzn5wueyztx1m

Change the filename at the top from event_espresso-nl_NL.po to event-espresso-4-nl_NL.po

Click Move files.

What all of that has done is set up Loco translate to use a custom directory for translations:

/wp-content/uploads/espresso/languages/

Within that directory Event Espresso will load either event_espresso-{locale}.mo files using load_plugin_textdomain() (which has now changed and is causing issues for many people see Loco’s support) OR event-espresso-4-{locale}.mo which loads using load_textdomain() (which as it stands, works, but may change).

If you want to customize the translations you use the one under event-espresso-4 in Loco: https://monosnap.com/file/Quijgnm7JGwJgoRl7lvuh89OqnumwL

Viewing 3 reply threads

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso