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

Enforce coding guideline regarding the usage of quotation marks. #44305

Merged

Conversation

pagelab
Copy link
Contributor

@pagelab pagelab commented Sep 20, 2022

What

Updates text strings that don’t follow the coding guideline regarding the usage of the apostrophe instead of single-quote characters.

It also looks for double-quote characters (aka “straight quotes”) and replace then with appropriate “curly quotes”.

Why

Besides enforcing a coding guideline, this is a good opportunity to push for better typographic handling of text strings, as WordPress now focus more on design.

How

I just manually searched for instances of text strings that include single or double-quote characters and changed them accordingly where appropriate.

Several blocks already followed the guideline regarging the usage of the apostrophe, but there were many more that did not. Apostrophes or curly quotes are already used in user-facing messages in the following blocks:

  • Site title
  • Calendar
  • Unsupported
  • Reusable
  • Site logo

The following blocks include user-facing messages that include straight quotation marks:

  • Avatar
  • Block
  • Code
  • Comments
  • Comments title
  • More
  • Post excerpt
  • Query
  • Query Title
  • Quote
  • Read more
  • Site tagline

Testing Instructions

Add any of the above blocks in the site editor or post editor, and check user-facing messages for the use of the apostrophe or curly quotes.

2022-09-20 16 45 18

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Sep 20, 2022
@github-actions
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @pagelab! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@michalczaplinski michalczaplinski added the [Type] Code Quality Issues or PRs that relate to code quality label Sep 21, 2022
Copy link
Contributor

@michalczaplinski michalczaplinski left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

Also, kudos for the effort put into making the PR description clear and readable and adding the video in the Testing Instructions. An exemplary first PR!

Welcome to WordPress and Gutenberg! 👋

@michalczaplinski michalczaplinski merged commit aff7fc2 into WordPress:trunk Sep 21, 2022
@github-actions github-actions bot added this to the Gutenberg 14.2 milestone Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [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