Comma on Sortable Table Example #3066
Labels
enhancement
Any addition or improvement that doesn't fix a code bug or prose inaccuracy
Example Page
Related to a page containing an example implementation of a pattern
Feedback
Issue raised by or for collecting input from people outside APG task force
Milestone
Hi!
On the Sortable Table Example page, there's this example:
I understand that the idea here is that the first part is shown visually to everyone, and the second part is only "shown" to accessibility software. However, if you ignore the markup, it's comma splice in terms of English grammar and style, which is already a bit of a problem. And when you need to make this text localizable, it becomes even more of a problem.
The reason I'm bringing up localization is that this example was actually used almost verbatim by frontend designers and developers in a translatable string in the project in which I provide support to the localizers. Translating this is a bit hard because this looks like one sentence, but its two parts don't sound so related. It would be nice to split it into two translatable strings, but splitting a translatable string in the middle of a sentence is not a great practice.
Would it be possible to split it without a comma? For example:
This looks more like two parts that can be separated cleanly: if you ignore the markup, it becomes "Students currently enrolled in WAI-ARIA 101 (column headers with buttons are sortable)", which is a good English sentence without comma splice, and it can also be split into two translatable strings without hurting understanding or structure.
I suggested this to our frontend developers, but they were reluctant about it because they wanted to follow W3C's example. Usually, following W3C's example is great, but perhaps this particular example could be changed? :)
Thanks!
The text was updated successfully, but these errors were encountered: