Lost translation since version 6.7

[ad_1]

Hello WordPress community,

I am currently facing an issue with translations in my plugin that only appeared after the update to WordPress 6.7. Before this update, everything was working perfectly.

Despite verifying that my text domain is consistent throughout my code and ensuring that my translation files (e.g., my-plugin-fr_FR.mo) are correctly placed in the /languages folder within my plugin directory, the translations are not being loaded properly.

I am still using the load_plugin_textdomain() function to load my translations, even though I am aware that this has not been mandatory for a while now, as WordPress should automatically handle the loading of translations for plugins hosted on WordPress.org.

I’ve noticed that calling load_textdomain() manually works, but this approach is not ideal as it loads only one specific language and bypasses WordPress’s automatic language loading mechanism. Additionally, when I check with Query Monitor, it seems that WordPress is searching for translation files in the root of the plugin directory instead of in the /languages subdirectory.

Has anyone else experienced translation issues after updating to WordPress 6.7? Are there any new requirements or changes in translation handling that I should be aware of?

Thank you in advance for any help or insights you can provide!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer