From 89f6427e01b1e5a1dc168df81adcf31b83e543f5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 12 Jan 2017 04:27:17 +0000 Subject: [PATCH] I18N: Move "Site Language" setting above "Timezone". This brings all locale-specific site settings closer together and prevents the language setting from being pushed down by unrelated settings added by plugins. Props johnjamesjacoby. Fixes #38562. git-svn-id: https://develop.svn.wordpress.org/trunk@39885 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/options-general.php | 89 ++++++++++++++++---------------- 1 file changed, 44 insertions(+), 45 deletions(-) diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php index 22d475c2e2..9f05a9a05c 100644 --- a/src/wp-admin/options-general.php +++ b/src/wp-admin/options-general.php @@ -120,7 +120,50 @@ if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?> - + + + + + 'WPLANG', + 'id' => 'WPLANG', + 'selected' => $locale, + 'languages' => $languages, + 'translations' => $translations, + 'show_available_translations' => ( ! is_multisite() || is_super_admin() ) && wp_can_install_language_pack(), + ) ); + + // Add note about deprecated WPLANG constant. + if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) { + if ( is_super_admin() ) { + ?> +

+ WPLANG', 'wp-config.php' ); ?> +

+ + + + - - - - - - 'WPLANG', - 'id' => 'WPLANG', - 'selected' => $locale, - 'languages' => $languages, - 'translations' => $translations, - 'show_available_translations' => ( ! is_multisite() || is_super_admin() ) && wp_can_install_language_pack(), - ) ); - - // Add note about deprecated WPLANG constant. - if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) { - if ( is_super_admin() ) { - ?> -

- WPLANG', 'wp-config.php' ); ?> -

- - - -