• Resolved albedo0

    (@albedo0)


    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 www.ads-software.com.

    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!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Take a look at this announcement from some weeks ago: https://make.www.ads-software.com/core/2024/10/21/i18n-improvements-6-7/

    Thread Starter albedo0

    (@albedo0)

    Thanks for your help! I finally found the problem…

    I had read this announcement but missed an important detail: the use of the get_plugin_data() function.

    Nice if I could help. You are welcome to set the topic to solved.

    cloudchan

    (@cloudchan)

    Dear all,

    I have the same problem but I am not one programmer.

    Does anyone have any method such as adding some code to functions.php or reverse the WP back to previous version safely in order to make my plugins to show the local language ?

    Thanks !

    Best Regards. Cloud

    Thread Starter albedo0

    (@albedo0)

    @cloudchan You can use the backup system provided by your web host (if you made a backup before the upgrade) or a plugin to restore a previous version of WordPress. There are several plugins that can do the job.

    • This reply was modified 1 week ago by albedo0.
    cloudchan

    (@cloudchan)

    Dear albedo0,

    Thanks for your reply !

    I host my WordPress on my owned server but I use rsync to synchronize the WordPress Folder to another disk per day. So I have just coped back the previous version to the root folder of WordPress. It seems working but there are still some few plugins still showing English without showing the local language translated by me.

    Besdies, I can see WordPress Upgrade Dashboard is showing me that I can upgrade to WordPress 6.7–en_US。 I am using CHN_HK version for my local language but -en_US is US English version. Do you know why it is NOT upgraded to the version with the same language ?

    And wny are there still few plugins showing English without showing my local language from my .po ?

    Thanks !

    Best Regards. Cloud

    threadi

    (@threadi)

    @cloudchan: the language you are using will also be updated after the WordPress core update. For further questions, I would recommend that you create your own topic in accordance with the forum guidelines: https://www.ads-software.com/support/forum/wp-advanced/#new-topic-0

    I fixed the problem already after restoring to the previous version of WordPress.

    Thanks to everybody !!

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.