Skip to content

Commit a4d9f02

Browse files
committed
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
1 parent 971b5da commit a4d9f02

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/wp-admin/css/common.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,12 @@ code {
645645
color: #124964;
646646
}
647647

648+
/* Dashicon for language options on General Settings and Profile screens */
649+
.form-table th label[for="locale"] .dashicons,
650+
.form-table th label[for="WPLANG"] .dashicons {
651+
margin-left: 5px;
652+
}
653+
648654
.wrap .page-title-action:focus {
649655
border-color: #5b9dd9;
650656
box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);

src/wp-admin/options-general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
if ( ! empty( $languages ) || ! empty( $translations ) ) {
163163
?>
164164
<tr>
165-
<th scope="row"><label for="WPLANG"><?php _e( 'Site Language' ); ?></label></th>
165+
<th scope="row"><label for="WPLANG"><?php _e( 'Site Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label></th>
166166
<td>
167167
<?php
168168
$locale = get_locale();

src/wp-admin/user-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
<tr class="user-language-wrap">
328328
<th scope="row">
329329
<?php /* translators: The user language selection field label */ ?>
330-
<label for="locale"><?php _e( 'Language' ); ?></label>
330+
<label for="locale"><?php _e( 'Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label>
331331
</th>
332332
<td>
333333
<?php

0 commit comments

Comments
 (0)