From 256de085ec9e62cbd5b6784829dbceb0bf104c25 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 22 Jun 2014 14:15:55 +0000 Subject: [PATCH] Fix MediaElement i18n. props Namibia, eherman24. fixes #28366 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@28801 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 2bc9774cd8..4ef33a4a0b 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -303,7 +303,7 @@ function wp_default_scripts( &$scripts ) { $scripts->add( 'mediaelement', "/wp-includes/js/mediaelement/mediaelement-and-player.min.js", array('jquery'), '2.14.2', 1 ); did_action( 'init' ) && $scripts->localize( 'mediaelement', 'mejsL10n', array( - 'language' => get_bloginfo( 'language' ), + 'language' => substr( get_bloginfo( 'language' ), 0, 2 ), 'strings' => array( 'Close' => __( 'Close' ), 'Fullscreen' => __( 'Fullscreen' ),