WordPress.org

Make WordPress Core

Changeset 45402


Ignore:
Timestamp:
05/24/2019 08:42:06 PM (3 months ago)
Author:
johnbillion
Message:

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

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r45301 r45402  
    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;
  • trunk/src/wp-admin/options-general.php

    r45140 r45402  
    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
  • trunk/src/wp-admin/user-edit.php

    r45140 r45402  
    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>
Note: See TracChangeset for help on using the changeset viewer.