Make WordPress Core

Ticket #24183: 24183.4.patch

File 24183.4.patch, 1.5 KB (added by SergeyBiryukov, 12 years ago)
  • wp-includes/script-loader.php

     
    281281        $scripts->add( 'imgareaselect', "/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js", array('jquery'), '0.9.8', 1 );
    282282
    283283        $scripts->add( 'mediaelement', "/wp-includes/js/mediaelement/mediaelement-and-player.js", array('jquery'), '2.12.0', 1 );
     284        did_action( 'init' ) && $scripts->localize( 'mediaelement', 'mejsL10n', array(
     285                'language' => get_bloginfo( 'language' ),
     286                'strings'  => array(
     287                        'Close'               => __( 'Close' ),
     288                        'Fullscreen'          => __( 'Fullscreen' ),
     289                        'Download File'       => __( 'Download File' ),
     290                        'Download Video'      => __( 'Download Video' ),
     291                        'Play/Pause'          => __( 'Play/Pause' ),
     292                        'Mute Toggle'         => __( 'Mute Toggle' ),
     293                        'None'                => __( 'None' ),
     294                        'Turn off Fullscreen' => __( 'Turn off Fullscreen' ),
     295                        'Go Fullscreen'       => __( 'Go Fullscreen' ),
     296                        'Unmute'              => __( 'Unmute' ),
     297                        'Mute'                => __( 'Mute' ),
     298                        'Captions/Subtitles'  => __( 'Captions/Subtitles' )
     299                ),
     300        ) );
     301
     302
    284303        $scripts->add( 'wp-mediaelement', "/wp-includes/js/mediaelement/wp-mediaelement.js", array('mediaelement'), false, 1 );
    285304
    286305        $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), false, 1 );