custom theme: english .mo file not working


I’m having an issue with a .mo file.

I have a fully functioning localized custom theme that’s running in four languages for the moment: Dutch, English, French and Spanish. There is one problem: the English localization doesn’t work. The other languages work just fine.

The translation plugin is polylang.
The plugin for creating .po and .mo files is CodeStyling Localization.

The .po and .mo files are situated in the folder /language/ inside my theme.

The theme is localized and works just fine in Dutch (default language), French and Spanish. When I’m in the English version of the website however, the default Dutch words appear on localized strings.

I’ve tried deleting the English .mo and .po files and recreating them anew but this didn’t help.
It isn’t a problem with the en_US.po or files. I just copied them from the site’s server and tried them on another WP install. Worked just fine.

I’m out of ideas. Does anybody have suggestions? Is there a way to test the call to the English .mo file and get some PHP feedback. Any ideas are welcome.

, Peter-L 4 years 2020-02-10T08:39:12-05:00 0 Answers 71 views 0

Leave an answer