From a4d9f02eef7a106cafb8c51bd2c8afd72c00cfc2 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 24 May 2019 20:42:06 +0000 Subject: [PATCH] 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 --- src/wp-admin/css/common.css | 6 ++++++ src/wp-admin/options-general.php | 2 +- src/wp-admin/user-edit.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 868978d55f..897895d21a 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -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); diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php index f47011aa0b..260d785424 100644 --- a/src/wp-admin/options-general.php +++ b/src/wp-admin/options-general.php @@ -162,7 +162,7 @@ if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPL if ( ! empty( $languages ) || ! empty( $translations ) ) { ?> - + - +