Opened 22 months ago
Last modified 10 months ago
#57231 new enhancement
Missing ":" in strings with links.
Reported by: | NekoJonez | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Text Changes | Keywords: | has-patch 2nd-opinion |
Focuses: | ui | Cc: |
Description
Personally, I think that strings with a link should have a ":". To separate the actual sentence with the link. There are a few places where this doesn't happen. In this ticket/PR I'm going to change that.
Attachments (1)
Change History (15)
This ticket was mentioned in PR #3709 on WordPress/wordpress-develop by @NekoJonez.
22 months ago
#1
- Keywords has-patch added
#2
follow-up:
↓ 3
@
22 months ago
- Keywords needs-refresh added
Thanks @NekoJonez for the ticket and PR.
I find a similar instance in Core files; can you search see http
in the whole directory and make the necessary changes?
#3
in reply to:
↑ 2
@
22 months ago
Replying to mukesh27:
Thanks @NekoJonez for the ticket and PR.
I find a similar instance in Core files; can you search
see http
in the whole directory and make the necessary changes?
I did it via translate.wp.org and searched that way... Is there a better way? Since it's the only one I was able to find.
#4
@
21 months ago
- Keywords 2nd-opinion added
Let's see how many instances there are in Core, and whether others agree with this proposal.
Personally, I don't have strong feelings one way or the other. However, it should be noted that if no colon is the prevaling format in Core, each string will need to be translated again if this change is introduced.
#5
follow-up:
↓ 6
@
21 months ago
Performing a regex search on the codebase using ['"].+see http.+['"]
seems to show this as the only instance in Core's user-facing strings.
#6
in reply to:
↑ 5
@
21 months ago
Replying to costdev:
Performing a regex search on the codebase using
['"].+see http.+['"]
seems to show this as the only instance in Core's user-facing strings.
I haven't done that once in my life... :/ How do I go about doing that? Installing the Github client?
#7
@
21 months ago
@NekoJonez I have the wordpress-develop
git repository cloned locally, so I used VS Code's "Find in files" feature, ticked the .*
symbol to enable regex and entered ['"].+see http.+['"]
#8
@
21 months ago
- Keywords dev-feedback added
@mukesh27 can you provide more detail on the results you found in other Core files?
#9
follow-up:
↓ 10
@
21 months ago
@costdev You can please search See http
in code base.
ex.
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-wp-site-icon.php#L44
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-wp-site-icon.php#L59
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-wp-community-events.php#L400
#10
in reply to:
↑ 9
@
21 months ago
Replying to mukesh27:
@costdev You can please search
See http
in code base.
ex.
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-wp-site-icon.php#L44
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-wp-site-icon.php#L59
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-wp-community-events.php#L400
Ahn, I see what's going on here and why I didn't see those... Those are in the docs. And those don't appear on translate.wp.org
I'll try to fix this, this weekend.
#11
follow-up:
↓ 12
@
21 months ago
- Keywords dev-feedback removed
@mukesh27 Saw those too but thought we were only talking about changing user-facing strings. Happy to broaden the scope to all instances of See http
, especially considering there are so few.
#12
in reply to:
↑ 11
@
21 months ago
Replying to costdev:
@mukesh27 Saw those too but thought we were only talking about changing user-facing strings. Happy to broaden the scope to all instances of
See http
, especially considering there are so few.
True, the search I did via VS Code gave me 290 results. All of them are either in comments OR in test flows. So, user facing strings... It's only those who appear on translate.wp.org and then my PR is for that string.
If wanted @mukesh27, I'm willing to make a new ticket for the ":" in the comments? Or should we make one ticket?
https://core.trac.wordpress.org/ticket/57231
Small fix for the above ticket.