I18N: Add a language icon next to language selectors.
This change means that users who can't read the site's current language can more easily identify controls that allow them to change either the site language or their own admin area language. Props janak007, atlasmahesh, afercia, birgire, JoshuaWold Fixes #43144 git-svn-id: https://develop.svn.wordpress.org/trunk@45402 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
971b5daa74
commit
a4d9f02eef
@ -645,6 +645,12 @@ code {
|
||||
color: #124964;
|
||||
}
|
||||
|
||||
/* Dashicon for language options on General Settings and Profile screens */
|
||||
.form-table th label[for="locale"] .dashicons,
|
||||
.form-table th label[for="WPLANG"] .dashicons {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.wrap .page-title-action:focus {
|
||||
border-color: #5b9dd9;
|
||||
box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
|
||||
|
@ -162,7 +162,7 @@ if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPL
|
||||
if ( ! empty( $languages ) || ! empty( $translations ) ) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><label for="WPLANG"><?php _e( 'Site Language' ); ?></label></th>
|
||||
<th scope="row"><label for="WPLANG"><?php _e( 'Site Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label></th>
|
||||
<td>
|
||||
<?php
|
||||
$locale = get_locale();
|
||||
|
@ -327,7 +327,7 @@ endif; // $_wp_admin_css_colors
|
||||
<tr class="user-language-wrap">
|
||||
<th scope="row">
|
||||
<?php /* translators: The user language selection field label */ ?>
|
||||
<label for="locale"><?php _e( 'Language' ); ?></label>
|
||||
<label for="locale"><?php _e( 'Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label>
|
||||
</th>
|
||||
<td>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user