Skip to content

Conversation

@exterkamp
Copy link
Member

Summary
Translators were confused by these titles, and looking into it, they don't seem to make sense. This should be more accurate to the audit itself.

Deque Link

@exterkamp exterkamp changed the title a11y: rewrite td-header-attr titles a11y: rewrite td-headers-attr titles Aug 21, 2019
@exterkamp exterkamp requested a review from robdodson August 21, 2019 17:40
Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

🙇the i18n 👑!!!

:)

Co-Authored-By: Patrick Hulce <[email protected]>
@paulirish
Copy link
Member

cc @kaycebasques

Copy link
Contributor

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

LGTM

thanks for decoding this one @exterkamp :)

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

TIL [headers] attribute.
TIL axe's docs on this audit are mostly about scope which the audit doesnt care about. dequelabs/axe-core#1782

our docs on it are also a bit confusing because it uses header but the example is seemingly incorrect not because it Week isn't an [id] in the table but because "one column has multiple table headers".

plus i bet this attribute doesn't get much use anyhow.

bleh.

@exterkamp exterkamp requested a review from kaycebasques August 21, 2019 19:14
},
"lighthouse-core/audits/accessibility/td-headers-attr.js | failureTitle": {
"message": "Cells in a `<table>` element that use the `[headers]` attribute do not refer to headers of the same table."
"message": "Cells in a `<table>` element that use the `[headers]` attribute refer to element `id`s not found within the same table."
Copy link
Collaborator

Choose a reason for hiding this comment

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

@exterkamp is the plurliazation of a placeholder not a problem then? I noticed you did it in #9590 too

Copy link
Member Author

Choose a reason for hiding this comment

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

Shouldn't be, it's only a problem when we have a variable amount of things. If we passed in a variable like idCount and needed a variable amount of ids then it would be a problem.

Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't be, it's only a problem when we have a variable amount of things. If we passed in a variable like idCount and needed a variable amount of ids then it would be a problem.

but is there a single character (or equivalent characters) in other languages that means "make the attached word plural"?

Seems better to reword, even if it gets into plural awkwardness (and even better if we can reword to avoid the awkwardness) "refer to an element id not found within the same table" or whatever

Copy link
Member Author

Choose a reason for hiding this comment

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

Gotcha. Done!

Copy link
Collaborator

Choose a reason for hiding this comment

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

ya brendan much better worded my concern :) 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants