Opened 7 years ago
Closed 6 years ago
#43144 closed enhancement (fixed)
Add a language icon next to language selectors
Reported by: | johnbillion | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | I18N | Keywords: | has-screenshots has-patch |
Focuses: | administration | Cc: |
Description
The Site Language
option on the General Settings screen can be hard to identify if the site is using a language that the user cannot understand. The Language
option on the user's profile screen has a similar problem, although less so.
The problem is especially noticeable for users who are not familiar with the WordPress interface.
An icon should be placed next to the field name so that it's more easily identifiable as a language switcher for users who cannot understand the current language.
There is a translation icon in Dashicons that can be used. There's also the Language Icon that could be an option if an icon specific to language selection is needed.
Attachments (5)
Change History (16)
This ticket was mentioned in Slack in #core by atlasmahesh. View the logs.
7 years ago
#5
@
7 years ago
Adding an element, for example a <span>
, with an aria-hidden="true"
attribute and target that for the dashicon would be preferable See #40428
In a few words: some screen readers already read out CSS generated content and more will do in the next future.
#6
@
7 years ago
Adding this icon looks like a good visual aid.
With the aria-hidden="true"
added to the span tag, I'm wondering about this approach:
<label for="WPLANG"><?php _e( 'Site Language' ); ?> <span aria-hidden="true" class="dashicons dashicons-translation"></span></label>
where we add a space between the Site Language text and the span tag, similar to [40643].
If we don't want the space, then it could be added via CSS as in 43144.patch.
This ticket was mentioned in Slack in #design by joshuawold. View the logs.
6 years ago
#8
@
6 years ago
We just reviewed this issue in our #design triage in Slack.
- Adding the icon definitely makes sense.
- The icon chosen works
- Without a space is probably ok in this instance
Thank you!
#9
@
6 years ago
- Keywords ui-feedback removed
- Milestone changed from Awaiting Review to 5.3
- Owner set to johnbillion
- Status changed from new to reviewing
#10
@
6 years ago
43144.diff takes into account the feedback from @afercia and adds the icon to the Language option on the user profile screen too.
Site Language field