Why is my WordPess widget not properly prepared for the new localization?

This WordPress plugin is not properly prepared for translate.wordpress.org

The text domain must match the slug of the plugin

Tags:
PHP

What is the slug of my WordPress plugin?

You don't need any more fils in the language directory. All you need is to register and use translate.wordpress.org

In some cases you get this hint: "This plugin is not properly prepared for localization."

Your WordPress PlugIn localization at translate.wordpress.org can't be translatet.

You added the header with the Plugin Name, Author and Text Domain well. But this warning above isn't extinguish. So you have to check the Text Domain. It is the slug of your PlugIn.

If you want to migrat your WordPress PlugIn translations and localizations to translate.wordpress.org

The slug of your PlugIn is the Url path of your WordPress repository or the Url path: 'category-posts'.

The text domain is a unique identifier, which makes sure WordPress can distinguish between all loaded translations.

For translate.wordpress.org the plugin slug isn't a name of a single PHP file or it isn't a folder were your plugin is contained in! Translate.wordpress.org is more restricted to extinguish between all loaded translations as the linked How to documentation for internationalize your plugin on https://developer.wordpress.org/plugins/internationalization.

The PlugIn slug is the widget Url path, e.g. 'category-posts'.

This name is given by WordPress only one time and is so unique.

If your plugin Url is https://wordpress.org/plugins/category-posts, the plugin slug is: 'category-posts'.

... or you can find the PlugIn slug with the widget repository name, e.g. 'category-posts'.

Wordpress makes sure that it is a unique name.

The same shows the plugin SVN repository Url path: Is the Url http://plugins.svn.wordpress.org/category-posts/ the plugin slug is: 'category-posts'.

After changeing to the right slag for your Text Domain. Only few seconds tanslate.wordpress.org shows all widget translation files and have the possibility to translate all translation arguments.

Now the Readme and all other translation files can be set with trnsalte.wordpress.org
© Kometschuh.de | Impressum | GitHub | Facebook |