Opened 10 years ago
Closed 10 years ago
#31349 closed defect (bug) (fixed)
Screen options posts/pages/etc. per page label
Reported by: | afercia | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Administration | Keywords: | needs-patch |
Focuses: | ui, accessibility | Cc: |
Description
One small thing reported by Jeff de Wit from the accessibility testers group that wasn't included in the last testing session summary:
The label for the posts per page (under screen options) just says "Posts" (or "Pages", or "Comments", or whatever list page you're on). ChromeVox simply announces it as such ("Posts, 20, edit text and numeric only"). It doesn't seem clear that it changes the amount of posts/pages/comments/whatever per page in the admin.
See screenshot:
Proposed patch just add some more context to the label text. Also some minor CSS adjustments. See screenshot after the patch:
Attachments (4)
Change History (20)
#3
in reply to:
↑ 2
@
10 years ago
Replying to ocean90:
The string in 31349.patch isn't translatable.
Sorry, totally forgot that. Aging issues :) See updated patch. I would propose to just add "per page" for now, which I guess it makes sense in all languages as translatable string. This would give some useful context to screen reader users, and handle the items singular/plural forms in the other tickets.
#5
@
10 years ago
printf( '%1$s %2$s', $per_page_label, __( 'per page' ) );
: This won't work for languages which need to translate this into something like per $per_page_label page
.
#15576 proposes using "Items" always (I'm +1 for it), that would make this easier.
#6
@
10 years ago
+1 for semplification.
@pavelevap suggested something like "number of items per page".
It would be great to reach some consensus for such a small thing after 4 years and no progress in the last 20 months :)
Then, what about $per_page_label
? it will work just as a "flag"?
This ticket was mentioned in Slack in #core by afercia. View the logs.
10 years ago
#8
@
10 years ago
Updated patch, as per Slack conversation and based on @pavelevap comment on related ticket https://core.trac.wordpress.org/ticket/15576#comment:21 uses always the same text in all screens. See example before/after screenshot:
#9
@
10 years ago
I love it, please commit :-)
"Number of items per page: %" would be more flexible for example for RTL languages, but there is not probably easy way in this case.
#10
@
10 years ago
- Milestone changed from Awaiting Review to 4.2
- Owner set to ocean90
- Status changed from new to accepted
I think we should enhance render_per_page_options()
to make 'label' => __( 'Number of items per page:' )
default.
This ticket was mentioned in Slack in #core by ocean90. View the logs.
10 years ago
#12
@
10 years ago
Refreshed patch. Use the new string as default in render_per_page_options()
as per @ocean90 suggestion.
The string in 31349.patch isn't translatable. Some related tickets for this string: #13673, #15576