-
Notifications
You must be signed in to change notification settings - Fork 111
Try: Escape apostrophe in translation functions. #537
Conversation
Preview changesYou can preview these changes by following the link below: I will update this comment with the latest preview links as you push more changes to this PR. |
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Why, what is the benefit of this change? |
From my experience working with translations, I see that many translators are not technical and don't know about these entities. The benefit would be that it'll be easier for translators to do their work. I believe historically, in core (and other products I've been involved with), the tendency is to use apostrophes rather than entities. |
That sounds very reasonable to me. It does not match how these symbols have been managed in the previous bundled themes. |
I also recognize that on trunk there seems to be a mix of slashes and entities which was not intended :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I would say these are fine to replace, and I see that some of the previous bundled themes already use the actual double quote characters instead of entities.
However, entities are generally used for better typography, so instead of the escaped apostrophe character, I would suggest using an actual single quote, which would not need escaping and also has a precedent in the previous bundled themes.
Left some suggestions, hope this helps 🙂
Co-authored-by: Sergey Biryukov <[email protected]>
Co-authored-by: Sergey Biryukov <[email protected]>
Thank you both! |
Description
Replacing
’
for an escaped apostrophe (\'
) in translatable texts.Screenshots
Testing Instructions