Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifies i18n_usage check to consider explicit default textdomain usage a warning #722

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

felixarntz
Copy link
Member

Fixes #713.

Note: There's no way to do this via WPCS flags, so we need to rely on the error message to detect the relevant violation and downgrade it to a warning accordingly. This can be done with minimal additional code by overriding the relevant parent method.

@felixarntz felixarntz added [Type] Bug An existing feature is broken Checks Audit/test of the particular part of the plugin [Team] Plugin Review Issues owned by Plugin Review Team labels Oct 15, 2024
@felixarntz felixarntz added this to the 1.3.0 milestone Oct 15, 2024
Copy link

github-actions bot commented Oct 15, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: felixarntz <[email protected]>
Co-authored-by: swissspidy <[email protected]>
Co-authored-by: ernilambar <[email protected]>
Co-authored-by: frantorres <[email protected]>
Co-authored-by: davidperezgar <[email protected]>
Co-authored-by: ironprogrammer <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@swissspidy swissspidy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still not a fan of projects doing this but this is better than the current experience I suppose.

@ernilambar
Copy link
Member

Still not a fan of projects doing this but this is better than the current experience I suppose.

Agree. Personally I would want my plugin's string independent from core string and have full control to the plugin itself.

@ernilambar ernilambar merged commit e40ea2e into trunk Oct 16, 2024
30 of 31 checks passed
@ernilambar ernilambar deleted the fix/713-default-textdomain-warning branch October 16, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Checks Audit/test of the particular part of the plugin [Team] Plugin Review Issues owned by Plugin Review Team [Type] Bug An existing feature is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin i18n check complains about default text domain
3 participants