From 7f118d4b05a71fca9ae0d25e3ac03c7f9bde004d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 29 Jan 2012 20:49:34 +0000 Subject: [PATCH] Load admin-$locale.mo in setup-config.php. see #19852, see #18180. git-svn-id: https://develop.svn.wordpress.org/trunk@19787 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/load.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/load.php b/wp-includes/load.php index a744e9ad7a..0f1e063789 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -724,6 +724,8 @@ function wp_load_translations_early() { foreach ( $locations as $location ) { if ( file_exists( $location . '/' . $locale . '.mo' ) ) { load_textdomain( 'default', $location . '/' . $locale . '.mo' ); + if ( defined( 'WP_SETUP_CONFIG' ) && file_exists( $location . '/admin-' . $locale . '.mo' ) ) + load_textdomain( 'default', $location . '/admin-' . $locale . '.mo' ); if ( WP_Locale::is_locale_rtl( $locale ) ) $text_direction = 'rtl'; break 2;