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

Remove GB i18n domain from block-library. #64701

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

peterwilsoncc
Copy link
Contributor

What?

Removes the gutenberg i18n domain from several block library strings.

It would be good if this could be included in the 19.1 version of Gutenberg to allow the test package update in WordPress-Develop to proceed cc @artemiomorales

Why?

As these files are distributed to WordPress in an unaltered form, the domain needs to be removed to be added to the WordPress translations.

How?

  1. Regex search for __\(.*, 'gutenberg' in the packages directory
  2. Strip the gutenberg domain.

Testing Instructions

Check strings display as expected in the modified blocks:

  • comment-date human readable time
  • form submissions
  • post-date human readable time

Testing Instructions for Keyboard

N/A

Screenshots or screencast

@peterwilsoncc peterwilsoncc added [Type] Code Quality Issues or PRs that relate to code quality [Package] Block library /packages/block-library labels Aug 21, 2024
Copy link

github-actions bot commented Aug 21, 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: peterwilsoncc <[email protected]>
Co-authored-by: ramonjd <[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

@ramonjd ramonjd left a comment

Choose a reason for hiding this comment

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

I checked the form/date blocks

LGTM

@peterwilsoncc peterwilsoncc merged commit 66b8b61 into trunk Aug 22, 2024
68 checks passed
@peterwilsoncc peterwilsoncc deleted the fix/i18n-gutenberg-domain-packages branch August 22, 2024 03:16
gziolo pushed a commit that referenced this pull request Aug 23, 2024
#64701).

As these files are distributed to WordPress in an unaltered form, the domain needs to be removed to allow it to be added to the WordPress translations.

Co-authored-by: peterwilsoncc <[email protected]>
Co-authored-by: ramonjd <[email protected]>
peterwilsoncc added a commit to peterwilsoncc/wordpress-develop that referenced this pull request Aug 23, 2024
bph pushed a commit to bph/gutenberg that referenced this pull request Aug 31, 2024
WordPress#64701).

As these files are distributed to WordPress in an unaltered form, the domain needs to be removed to allow it to be added to the WordPress translations.

Co-authored-by: peterwilsoncc <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Block library /packages/block-library [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants