[wp-meta] [Making WordPress.org] #5358: Warn on plugin upload if text domain and plugin slug don't match
Making WordPress.org
noreply at wordpress.org
Wed Aug 5 19:38:22 UTC 2020
#5358: Warn on plugin upload if text domain and plugin slug don't match
------------------------------+--------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Plugin Directory | Keywords:
------------------------------+--------------------
Per the [https://developer.wordpress.org/plugins/internationalization/how-
to-internationalize-your-plugin/#text-domains Plugin Handbook]:
> The text domain must match the `slug` of the plugin. If your plugin is a
single file called `my-plugin.php` or it is contained in a folder called
`my-plugin` the domain name must be `my-plugin`. If your plugin is hosted
on wordpress.org it must be the slug portion of your plugin URL
(`wordpress.org/plugins/<slug>`).
Unfortunately, this goes unnoticed or ignored by many authors until
translators and GTEs/PTEs complete the translation, only to find out that
it doesn't work as expected, leading to frustration.
By adding a check on plugin upload if text domain and plugin slug don't
match, with a link to the handbook article above, we can hopefully reduce
the confusion a bit.
Props to @fierevere for the idea.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5358>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list