-
Notifications
You must be signed in to change notification settings - Fork 113
WIP: Add translation functions to text strings #489
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. |
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.
Thank you for all the hard work you've put in. I'll leave some feedback, even though it's all small things.
P.S. I don't think this is required, but if there is only one placeholder in the text, it might be better to use Example: twentytwentyfive/patterns/footer-columns.php Lines 72 to 73 in 2319f98
|
Co-authored-by: Aki Hamano <[email protected]>
Co-authored-by: Aki Hamano <[email protected]>
Co-authored-by: Aki Hamano <[email protected]>
Looks like the handbook recommends using |
@beafialho Can you help clarify the separator in the post terms block? Because the default is a comma and a space, but in the theme it is set to a comma and two spaces. Because it is not the default value, it needs to be translation ready, which creates extra work including moving one block to a new pattern. |
Apologies but I'm not understanding clearly what it is you're asking. |
@beafialho I will try again :) If not, there is a part of the default single post template, that needs to be created as a pattern, only to add this second space, which feels wasteful and not performant. |
Thanks, I got what you meant now :) I am seeing the separator as a comma followed by a space when I add post terms though. |
Yes, when we insert a new copy of the block it uses the default. It is in some of the patterns and in the default single post that it is using two spaces. |
I'm sorry if it's obvious or written somewhere, but could you tell me which ones use the two spaces? |
I have replaced the example dates with a single date, because the number of unique text strings to translate is very large, 266. |
The term "Now" was already present when the pattern was first created, and it appears to be so in the Figma file: #174 I don't know what it means too...
I agree with this. It's not translated in the Twenty Tweny-Four theme either: |
I am interpreting "Now" as a "'Link to a page with information about what the person is working on right now." |
I am going to merge this to unblock some other pattern changes, because I want to avoid merge conflicts. |
Description
This PR adds translation functions around text strings in patterns.
I have;
To do:
<!-- wp:post-terms {"term":"category","separator":", ","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
Testing Instructions
Review the code changes to find mistakes and things that can be improved further. ❤️
Preview and place templates and patterns to make sure there are no block validation errors.