#26553 closed defect (bug) (fixed)
Remove title attributes: comment-template.php
Reported by: | joedolson | Owned by: | joedolson |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | has-patch, commit, title-attribute |
Focuses: | accessibility | Cc: |
Description (last modified by )
Related: #24766
// comment-template.php comments_popup_link() comment_form()
Attachments (7)
Change History (45)
#5
@
10 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
This ticket was mentioned in Slack in #accessibility by garyj. View the logs.
10 years ago
#9
@
10 years ago
New patch removes title attribute and adds screen reader text to WP core default values.
#10
@
10 years ago
- Milestone changed from Future Release to 4.2
- Owner set to joedolson
- Priority changed from normal to high
- Status changed from new to assigned
#11
@
10 years ago
I'd like to see us have a canonical blog post on the screen-reader-text class and advice for theme on how to use it (and why they should us it) that we can point people to as a part of this change set. Is there one on the make/accessibility blog already?
#13
@
10 years ago
I can certainly write something up on the usage of the screen-reader-text class and how to use it; I don't believe there's an existing article on that at make/accessibility, but I could get that written fairly quickly.
I'll try to get it written today and have it reviewed by the accessibility team during their meeting this afternoon. No guarantees on that, however.
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
10 years ago
#15
@
10 years ago
Written, open for comments:
https://docs.google.com/document/d/1Iy7BJmkpbtdeVisNGGxZg_OcgiSEw0cfl_2NEqnKlDE/edit?usp=sharing
#16
@
10 years ago
@joedolson: What's the status of the patch on this ticket? Are there changes yet to make, or is it good to go?
#17
@
10 years ago
Well, it's had no feedback; it should probably be reviewed. Nobody has suggested a change, at any rate.
#19
@
10 years ago
- Keywords needs-patch added; has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
The strings need some translator comments so translators now what the variables are for.
#20
@
10 years ago
- Keywords has-patch added; needs-patch removed
Above patch adds translator comments.
#21
@
10 years ago
[31389] missed the ticket.
[31388] changed the %
in __( '% Comments' )
(later replaced in get_comments_number_text()) to the actual number. We should either continue to use %
and leave the i18n issues for #13651, or use _n()
and add number_format_i18n()
.
26553.2.diff does the latter. That still does not resolve #13651 for all themes, just sets a correct default value.
This ticket was mentioned in Slack in #core by sergeybiryukov. View the logs.
10 years ago
#23
@
10 years ago
We usually put simple HTML into strings for translation. If the order of string elements are being re-arranged in a translated string, it's much easier to make a mistake if you're dealing with placeholders, rather than a tag.
#26
@
10 years ago
Am I correct in thinking that both this ticket is now committed and should be closed as fixed, or are we still considering switching this to incorporate the HTML in the string?
#27
@
10 years ago
- Keywords dev-feedback 2nd-opinion added
@pento raises a good point in comment:23. Any objections to 26553.3.diff?
#28
@
10 years ago
None from me. The only reason I went with the four argument pattern in the first place was because I thought we were trying to avoid HTML in translations; allowing simple HTML patterns is totally reasonable to me, and certainly makes the job easier to understand for translators and the code more readable.
#29
@
10 years ago
- Keywords needs-refresh added; dev-feedback 2nd-opinion removed
Looks like 26553.3.diff needs a refresh. Otherwise +1 for commit here.
This ticket was mentioned in Slack in #polyglots by ocean90. View the logs.
10 years ago
#32
@
10 years ago
Is there a reason to generally eliminate the translator comments? I can count ~100 places in core where we have translator comments for one argument.
comments_popup_link() falls into that awkward ground of "not done right, but impacts themes". Backwards-compatibility obviously has to be an issue. The ideal here would be concealed screen-reader-text so that the post title was available in the link text, but making that change would undoubtedly have a huge visual impact on millions of web sites. Would appreciate second opinions on this; it's a themeable characteristic, so can easily be fixed in a theme, with well-chosen values for $zero, $one, and $more.
comment_form() only uses title attribute for the <abbr> elaboration, as far as I can see; which is acceptable, as far as I'm concerned.