You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When theme has no i18n translation, the Theme Check fails with the message - REQUIRED: This theme text domain does not match the theme's slug. The text domain used: This theme's correct slug and text-domain is no-i18n.
Further, the INFO log for text-domain seems to be rendering an empty text-domain (Notice the 'domain found is .' part) - INFO: Only one text-domain is being used in this theme. Make sure it matches the theme's slug correctly so that the theme will be compatible with WordPress.org language packs. The domain found is .
This commit addresses issue WordPress#430. When a theme doesn't use any of the internationalization functions, the `TextDomain_Check` class doesn't account for an empty array of found domains.
Initially reported in #themereview channel - https://wordpress.slack.com/archives/C02RP4Y3K/p1662993132324669 (requires login).
When theme has no i18n translation, the Theme Check fails with the message -
REQUIRED: This theme text domain does not match the theme's slug. The text domain used: This theme's correct slug and text-domain is no-i18n.
Further, the INFO log for text-domain seems to be rendering an empty text-domain (Notice the 'domain found is .' part) -
INFO: Only one text-domain is being used in this theme. Make sure it matches the theme's slug correctly so that the theme will be compatible with WordPress.org language packs. The domain found is .
== Testing Environment ==
PHP Version: 8.1.4
WordPress Version: 6.0.2
Theme Check Version: 20211203
Theme Slug: no-i18n
== To Replicate ==
I've created a basic theme with no translation to test this out quickly.
Repository - no-i18n
Theme Download Link - no-i18n.zip
The text was updated successfully, but these errors were encountered: