Skip to content

Plugin i18n check complains about default text domain #713

@felixarntz

Description

@felixarntz

I just noticed that as of 1.2.0, the Plugin Check complains about usage of the default text domain in plugins. I believe that this is not correct. It is explicitly allowed to use WordPress Core's text domain if it is for strings that are taken directly from Core. Not doing so creates unnecessary work for translators.

It looks like the relevant change was made in #681. I believe we need to update that code so that in addition to the plugin's own text domain we pass default there so that it is allowed too.

Here's the example where I noticed this check suddenly failing: https://github.com/felixarntz/ai-services/actions/runs/11282317040/job/31379501989?pr=11

It is worth noting that this was also automatically flagged during the review of that plugin when I submitted it to the directory, however after clarification it was allowed. So this confirms to me that this is simply a bug in the tooling, and we should allow default.

cc @davidperezgar @ernilambar

Metadata

Metadata

Assignees

No one assigned

    Labels

    ChecksAudit/test of the particular part of the plugin[Team] PluginsIssues owned by Plugins Team[Type] BugAn existing feature is broken

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions