Skip to content

Mismatched text domain #2

@samikeijonen

Description

@samikeijonen

Mismatched text domain. Expected 'kala' but got 'meom-blocks'.
| | (WordPress.WP.I18n.TextDomainMismatch)

Above is outputted when using command ./vendor/bin/phpcs htdocs/wp-content/plugins/meomblocks with this .phpcs.xml.dist in meoblocks root.

<?xml version="1.0"?>
<ruleset name="Project Rules">
    <rule ref="MEOM-default" />

    <!-- Verify that the text_domain is set to the desired text-domain.
            Multiple valid text domains can be provided as a new element. -->
    <rule ref="WordPress.WP.I18n">
        <properties>
            <property name="text_domain" type="array">
                <element value="meom-blocks"/>
            </property>
        </properties>
    </rule>
</ruleset>

Maybe we need to remove checking kala text-domain check from this main PHPCS rules and it in theme or plugin root folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions