I’m creating a new plugin actually, the plugin is working perfectly, but it’s not available yet in the wordpress.org website, I have an issue with the translation, I will not use wordpress.org for the translation, it’s a local translation, so I generated the PO and MO files using POedit, and I followed all the steps here : https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/
from :
- writing a perfect header in the main plugin file till adding php code in the same file in order to load text domain and the MO file.
When I change the wordpress language from English to French, the plugin still with EN language,
What can be the issue ? is it because the plugin is not on the wordpress.org yet ?
Here’s my laptop config :
locahost : wampserver
Windows 10
Php version : 8.1
Thanks in advance !
I followed all the steps in this link https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/
,
So I changed the WordPress language from EN to FR in order to check if the Plugin translation works or not,
So WP is changing its language very well, but the plugin still in English language, normally it should use the PO and MO file to translate the admin plugin interface into french language.
Sam94 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.