Some translation .mo files not loading
-
Hi
My dual language (Englisk UK and Greek) site Give is not loading the Greek give-el.mo translation file. I use Polylang to switch between languages and LocoTranslate (as recommended) to create the translation files.
If the Greek .po and .mo files are in the /wp-content/languages/plugins/ folder (what LocoTranslate calls the System folder) they load correctly but this could be overwritten by updates. This is where the en_GB files are located as they are now provided by Give (thanks!) and they load correctly.
I have created a /wp-content/languages/give folder as instructed here. If they are in this folder or in LocoTranslate’s “safe” folder /wp-content/languages/loco/plugins/ they do not load.
I have tried disabling all plugins and reverting to the Twenty Twenty theme, but the issue persists.
From the LocoTranslate faq on custom folder loading and reviewing the give.php file it seems Give uses the WP function load_plugin_textdomain correctly. Can you confirm?
While give.php seems to have code to add the wp-content/languages/give folder to those searched for language files, Debug MO Translations appears to suggest that Give is only looking in /wp-content/languages/plugins and (oddly) /wp-content/languages/themes.
Edit: however -el.mo files for the currency switcher and gift aid addons in /languages/loco/plugins/ ARE loaded correctly.
So it looks like either the call is too early as the faq suggests (I have tried the LocoTranslate fix but it didn’t work), or there is some other issue (affecting the core plugin only).
I’m stumped! Any help greatly appreciated!!
Julian
The page I need help with: [log in to see the link]
The topic ‘Some translation .mo files not loading’ is closed to new replies.