mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 22:24:36 +00:00
Update MediaElement.js to include i18n fixes that were accepted upstream. Add strings to script-loader.
props SergeyBiryukov. see #24183. git-svn-id: https://develop.svn.wordpress.org/trunk@24755 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -281,7 +281,26 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'imgareaselect', "/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js", array('jquery'), '0.9.8', 1 );
|
||||
|
||||
$scripts->add( 'mediaelement', "/wp-includes/js/mediaelement/mediaelement-and-player.js", array('jquery'), '2.12.0', 1 );
|
||||
$scripts->add( 'mediaelement', "/wp-includes/js/mediaelement/mediaelement-and-player.js", array('jquery'), '2.12.0-20130719', 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'mediaelement', 'mejsL10n', array(
|
||||
'language' => get_bloginfo( 'language' ),
|
||||
'strings' => array(
|
||||
'Close' => __( 'Close' ),
|
||||
'Fullscreen' => __( 'Fullscreen' ),
|
||||
'Download File' => __( 'Download File' ),
|
||||
'Download Video' => __( 'Download Video' ),
|
||||
'Play/Pause' => __( 'Play/Pause' ),
|
||||
'Mute Toggle' => __( 'Mute Toggle' ),
|
||||
'None' => __( 'None' ),
|
||||
'Turn off Fullscreen' => __( 'Turn off Fullscreen' ),
|
||||
'Go Fullscreen' => __( 'Go Fullscreen' ),
|
||||
'Unmute' => __( 'Unmute' ),
|
||||
'Mute' => __( 'Mute' ),
|
||||
'Captions/Subtitles' => __( 'Captions/Subtitles' )
|
||||
),
|
||||
) );
|
||||
|
||||
|
||||
$scripts->add( 'wp-mediaelement', "/wp-includes/js/mediaelement/wp-mediaelement.js", array('mediaelement'), false, 1 );
|
||||
|
||||
$scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), false, 1 );
|
||||
|
||||
Reference in New Issue
Block a user