<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[27620] trunk/src: More translation cleanups.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/27620">27620</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2014-03-19 08:17:08 +0000 (Wed, 19 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>More translation cleanups.

Affects widgets (see <a href="http://core.trac.wordpress.org/ticket/27112">#27112</a>), custom headers (see <a href="http://core.trac.wordpress.org/ticket/21785">#21785</a>), theme installer (see <a href="http://core.trac.wordpress.org/ticket/27055">#27055</a>, reverts <a href="http://core.trac.wordpress.org/changeset/27614">[27614]</a>), and some media stuff. Untranslates some complicated strings that need additional study.

see <a href="http://core.trac.wordpress.org/ticket/27453">#27453</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminthemeinstallphp">trunk/src/wp-admin/theme-install.php</a></li>
<li><a href="#trunksrcwpadminthemesphp">trunk/src/wp-admin/themes.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizecontrolphp">trunk/src/wp-includes/class-wp-customize-control.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizewidgetsphp">trunk/src/wp-includes/class-wp-customize-widgets.php</a></li>
<li><a href="#trunksrcwpincludesjscustomizeviewsjs">trunk/src/wp-includes/js/customize-views.js</a></li>
<li><a href="#trunksrcwpincludesmediatemplatephp">trunk/src/wp-includes/media-template.php</a></li>
<li><a href="#trunksrcwpincludesmediaphp">trunk/src/wp-includes/media.php</a></li>
<li><a href="#trunksrcwpincludesscriptloaderphp">trunk/src/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminthemeinstallphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/theme-install.php (27619 => 27620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/theme-install.php     2014-03-19 07:23:19 UTC (rev 27619)
+++ trunk/src/wp-admin/theme-install.php        2014-03-19 08:17:08 UTC (rev 27620)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">  'l10n' => array(
</span><span class="cx">          'addNew' => __( 'Add New Theme' ),
</span><span class="cx">          'search'  => __( 'Search Themes' ),
</span><del>-               'searchPlaceholder' => __( 'Search themes&hellip;' ),
</del><ins>+                'searchPlaceholder' => __( 'Search themes...' ), // placeholder (no ellipsis)
</ins><span class="cx">           'upload' => __( 'Upload Theme' ),
</span><span class="cx">          'back'   => __( 'Back' ),
</span><span class="cx">          'error'  => ( 'There was a problem trying to load the themes. Please, try again.' ), // @todo improve
</span></span></pre></div>
<a id="trunksrcwpadminthemesphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/themes.php (27619 => 27620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/themes.php    2014-03-19 07:23:19 UTC (rev 27619)
+++ trunk/src/wp-admin/themes.php       2014-03-19 08:17:08 UTC (rev 27620)
</span><span class="lines">@@ -104,7 +104,7 @@
</span><span class="cx">          'l10n' => array(
</span><span class="cx">                  'addNew' => __( 'Add New Theme' ),
</span><span class="cx">                  'search'  => __( 'Search Installed Themes' ),
</span><del>-               'searchPlaceholder' => __( 'Search installed themes...' ),
</del><ins>+                'searchPlaceholder' => __( 'Search installed themes...' ), // placeholder (no ellipsis)
</ins><span class="cx">           ),
</span><span class="cx"> ) );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizecontrolphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/class-wp-customize-control.php (27619 => 27620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/class-wp-customize-control.php     2014-03-19 07:23:19 UTC (rev 27619)
+++ trunk/src/wp-includes/class-wp-customize-control.php        2014-03-19 08:17:08 UTC (rev 27620)
</span><span class="lines">@@ -748,12 +748,6 @@
</span><span class="cx">                          'add' => wp_create_nonce( 'header-add' ),
</span><span class="cx">                          'remove' => wp_create_nonce( 'header-remove' ),
</span><span class="cx">                  ),
</span><del>-                       'l10n' => array(
-                               /* translators: header images uploaded by user */
-                               'uploaded' => __( 'uploaded' ),
-                               /* translators: header images suggested by the current theme */
-                               'default' => __( 'suggested' )
-                       ),
</del><span class="cx">                   'uploads' => $this->uploaded_headers,
</span><span class="cx">                  'defaults' => $this->default_headers
</span><span class="cx">          ) );
</span><span class="lines">@@ -972,20 +966,15 @@
</span><span class="cx"> 
</span><span class="cx">          <div class="customize-control-content">
</span><span class="cx">                  <p class="customizer-section-intro">
</span><del>-                               <?php _e( 'Personalize your site with your own header image.' ); ?>
</del><span class="cx">                           <?php
</span><ins>+                               // @todo translate (and look to custom-header.php for inspiration)
+                               echo ( 'Personalize your site with your own header image.' );
</ins><span class="cx">                           if ( $width && $height ) {
</span><del>-                                       printf( __( 'While you can crop images to your liking after clicking <strong>%s</strong>, your theme recommends a header size of <strong>%dx%d</strong> pixels.' ),
-                                               _x( 'Add new', 'header image' ), $width, $height );
</del><ins>+                                        printf( ( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header size of <strong>%d &times; %d</strong> pixels.' ), $width, $height );
+                               } elseif ( $width ) {
+                                       printf( ( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header width of <strong>%d</strong> pixels.' ), $width );
</ins><span class="cx">                           } else {
</span><del>-                                       if ( $width ) {
-                                               printf( __( 'While you can crop images to your liking after clicking <strong>%s</strong>, your theme recommends a header width of <strong>%d</strong> pixels.' ),
-                                                       _x( 'Add new', 'header image' ), $width );
-                                       }
-                                       if ( $height ) {
-                                               printf( __( 'While you can crop images to your liking after clicking <strong>%s</strong>, your theme recommends a header height of <strong>%d</strong> pixels.' ),
-                                                       _x( 'Add new', 'header image' ), $height );
-                                       }
</del><ins>+                                        printf( ( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header height of <strong>%d</strong> pixels.' ), $height );
</ins><span class="cx">                           }
</span><span class="cx">                          ?>
</span><span class="cx">                  </p>
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizewidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/class-wp-customize-widgets.php (27619 => 27620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/class-wp-customize-widgets.php     2014-03-19 07:23:19 UTC (rev 27619)
+++ trunk/src/wp-includes/class-wp-customize-widgets.php        2014-03-19 08:17:08 UTC (rev 27620)
</span><span class="lines">@@ -296,6 +296,7 @@
</span><span class="cx">                          $section_id = sprintf( 'sidebar-widgets-%s', $sidebar_id );
</span><span class="cx">                          if ( $is_active_sidebar ) {
</span><span class="cx">                                  $section_args = array(
</span><ins>+                                               /* translators: %s: sidebar name */
</ins><span class="cx">                                           'title' => sprintf( __( 'Widgets: %s' ), $GLOBALS['wp_registered_sidebars'][$sidebar_id]['name'] ),
</span><span class="cx">                                          'description' => $GLOBALS['wp_registered_sidebars'][$sidebar_id]['description'],
</span><span class="cx">                                          'priority' => 1000 + array_search( $sidebar_id, array_keys( $wp_registered_sidebars ) ),
</span><span class="lines">@@ -457,20 +458,17 @@
</span><span class="cx">          }
</span><span class="cx"> 
</span><span class="cx">          $widget_reorder_nav_tpl = sprintf(
</span><del>-                       '<div class="widget-reorder-nav"><span class="move-widget" tabindex="0" title="%1$s">%2$s</span><span class="move-widget-down" tabindex="0" title="%3$s">%4$s</span><span class="move-widget-up" tabindex="0" title="%5$s">%6$s</span></div>',
-                       esc_attr__( 'Move to another area...' ),
-                       esc_html__( 'Move to another area...' ),
-                       esc_attr__( 'Move down' ),
-                       esc_html__( 'Move down' ),
-                       esc_attr__( 'Move up' ),
-                       esc_html__( 'Move up' )
</del><ins>+                        '<div class="widget-reorder-nav"><span class="move-widget" tabindex="0">%1$s</span><span class="move-widget-down" tabindex="0">%2$s</span><span class="move-widget-up" tabindex="0">%3$s</span></div>',
+                       __( 'Move to another area&hellip;' ),
+                       __( 'Move down' ),
+                       __( 'Move up' )
</ins><span class="cx">           );
</span><span class="cx"> 
</span><span class="cx">          $move_widget_area_tpl = str_replace(
</span><span class="cx">                  array( '{description}', '{btn}' ),
</span><span class="cx">                  array(
</span><del>-                               esc_html__( 'Select an area to move this widget into:' ),
-                               esc_html__( 'Move' ),
</del><ins>+                                ( 'Select an area to move this widget into:' ), // @todo translate
+                               esc_html_x( 'Move', 'move widget' ),
</ins><span class="cx">                   ),
</span><span class="cx">                  '
</span><span class="cx">                          <div class="move-widget-area">
</span><span class="lines">@@ -497,10 +495,11 @@
</span><span class="cx">                  'registered_widgets' => $GLOBALS['wp_registered_widgets'],
</span><span class="cx">                  'available_widgets' => $available_widgets, // @todo Merge this with registered_widgets
</span><span class="cx">                  'i18n' => array(
</span><del>-                               'save_btn_label' => _x( 'Apply', 'button to save changes to a widget' ),
-                               'save_btn_tooltip' => _x( 'Save and preview changes before publishing them.', 'tooltip on the widget save button' ),
-                               'remove_btn_label' => _x( 'Remove', 'link to move a widget to the inactive widgets sidebar' ),
-                               'remove_btn_tooltip' => _x( 'Trash widget by moving it to the inactive widgets sidebar.', 'tooltip on btn a widget to move it to the inactive widgets sidebar' ),
</del><ins>+                                'save_btn_label' => __( 'Apply' ),
+                               // @todo translate? do we want these tooltips?
+                               'save_btn_tooltip' => ( 'Save and preview changes before publishing them.' ),
+                               'remove_btn_label' => __( 'Remove' ),
+                               'remove_btn_tooltip' => ( 'Trash widget by moving it to the inactive widgets sidebar.' ),
</ins><span class="cx">                   ),
</span><span class="cx">                  'tpl' => array(
</span><span class="cx">                          'widget_reorder_nav' => $widget_reorder_nav_tpl,
</span><span class="lines">@@ -733,7 +732,7 @@
</span><span class="cx">                  'registered_sidebars' => array_values( $GLOBALS['wp_registered_sidebars'] ),
</span><span class="cx">                  'registered_widgets' => $GLOBALS['wp_registered_widgets'],
</span><span class="cx">                  'i18n' => array(
</span><del>-                               'widget_tooltip' => __( 'Press shift and then click to edit widget in customizer...' ),
</del><ins>+                                'widget_tooltip' => ( 'Shift-click to edit this widget.' ),
</ins><span class="cx">                   ),
</span><span class="cx">          );
</span><span class="cx">          foreach ( $exports['registered_widgets'] as &$registered_widget ) {
</span><span class="lines">@@ -1031,13 +1030,13 @@
</span><span class="cx"> 
</span><span class="cx">          try {
</span><span class="cx">                  if ( ! check_ajax_referer( self::UPDATE_WIDGET_AJAX_ACTION, self::UPDATE_WIDGET_NONCE_POST_KEY, false ) ) {
</span><del>-                               throw new Widget_Customizer_Exception( __( 'Nonce check failed. Reload and try again?' ) );
</del><ins>+                                throw new Widget_Customizer_Exception( ( 'Nonce check failed. Reload and try again?' ) );
</ins><span class="cx">                   }
</span><span class="cx">                  if ( ! current_user_can( 'edit_theme_options' ) ) {
</span><del>-                               throw new Widget_Customizer_Exception( __( 'Current user cannot!' ) );
</del><ins>+                                throw new Widget_Customizer_Exception( ( 'Current user cannot!' ) ); // @todo translate
</ins><span class="cx">                   }
</span><span class="cx">                  if ( ! isset( $_POST['widget-id'] ) ) {
</span><del>-                               throw new Widget_Customizer_Exception( __( 'Incomplete request' ) );
</del><ins>+                                throw new Widget_Customizer_Exception( ( 'Incomplete request' ) ); // @todo translate
</ins><span class="cx">                   }
</span><span class="cx"> 
</span><span class="cx">                  unset( $_POST[self::UPDATE_WIDGET_NONCE_POST_KEY], $_POST['action'] );
</span></span></pre></div>
<a id="trunksrcwpincludesjscustomizeviewsjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/customize-views.js (27619 => 27620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/customize-views.js      2014-03-19 07:23:19 UTC (rev 27619)
+++ trunk/src/wp-includes/js/customize-views.js 2014-03-19 08:17:08 UTC (rev 27620)
</span><span class="lines">@@ -135,13 +135,10 @@
</span><span class="cx">          },
</span><span class="cx"> 
</span><span class="cx">          extendedModel: function() {
</span><del>-                       var c = this.model.get('collection'),
-                               t = _wpCustomizeHeader.l10n[c.type] || '';
-
</del><ins>+                        var c = this.model.get('collection');
</ins><span class="cx">                   return _.extend(this.model.toJSON(), {
</span><span class="cx">                          // -1 to exclude the randomize button
</span><del>-                               nImages: c.size() - 1,
-                               type: t
</del><ins>+                                nImages: c.size() - 1
</ins><span class="cx">                   });
</span><span class="cx">          },
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunksrcwpincludesmediatemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/media-template.php (27619 => 27620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/media-template.php 2014-03-19 07:23:19 UTC (rev 27619)
+++ trunk/src/wp-includes/media-template.php    2014-03-19 08:17:08 UTC (rev 27620)
</span><span class="lines">@@ -512,8 +512,8 @@
</span><span class="cx"> 
</span><span class="cx">          <?php
</span><span class="cx">          $playlist_styles = array(
</span><del>-                       'light' => _x( 'Light', 'light playlist theme' ),
-                       'dark'  => _x( 'Dark', 'dark playlist theme' )
</del><ins>+                        'light' => _x( 'Light', 'playlist theme' ),
+                       'dark'  => _x( 'Dark', 'playlist theme' )
</ins><span class="cx">           );
</span><span class="cx"> 
</span><span class="cx">          /** This filter is documented in wp-includes/media.php */
</span><span class="lines">@@ -814,7 +814,7 @@
</span><span class="cx">                          <div class="setting preload">
</span><span class="cx">                                  <span><?php _e( 'Preload' ); ?></span>
</span><span class="cx">                                  <div class="button-group button-large" data-setting="preload">
</span><del>-                                               <button class="button" value="auto"><?php _e( 'Auto' ); ?></button>
</del><ins>+                                                <button class="button" value="auto"><?php _ex( 'Auto', 'auto preload video' ); ?></button>
</ins><span class="cx">                                           <button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
</span><span class="cx">                                          <button class="button active" value="none"><?php _e( 'None' ); ?></button>
</span><span class="cx">                                  </div>
</span><span class="lines">@@ -919,7 +919,7 @@
</span><span class="cx">                          <div class="clear"></div>
</span><span class="cx"> 
</span><span class="cx">                          <label class="setting" data-setting="content">
</span><del>-                                       <span><?php _e( 'Tracks (subtitles, captions, descriptions, chapters or metadata)' ); ?></span>
</del><ins>+                                        <span><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span>
</ins><span class="cx">                                   <#
</span><span class="cx">                                  var content = '';
</span><span class="cx">                                  if ( ! _.isEmpty( data.model.content ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludesmediaphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/media.php (27619 => 27620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/media.php  2014-03-19 07:23:19 UTC (rev 27619)
+++ trunk/src/wp-includes/media.php     2014-03-19 08:17:08 UTC (rev 27620)
</span><span class="lines">@@ -1124,8 +1124,8 @@
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="cx">  $playlist_styles = array(
</span><del>-               'light' => _x( 'Light', 'light playlist theme' ),
-               'dark'  => _x( 'Dark', 'dark playlist theme' )
</del><ins>+                'light' => _x( 'Light', 'playlist theme' ),
+               'dark'  => _x( 'Dark', 'playlist theme' )
</ins><span class="cx">   );
</span><span class="cx"> 
</span><span class="cx">  /**
</span><span class="lines">@@ -2480,20 +2480,13 @@
</span><span class="cx">          'editImage'             => __( 'Edit Image' ),
</span><span class="cx"> 
</span><span class="cx">          // Crop Image
</span><del>-               /* translators: title for Media Manager library view */
</del><span class="cx">           'chooseImage' => __( 'Choose Image' ),
</span><del>-               /* translators: button to select an image from the MM library to crop */
</del><span class="cx">           'selectAndCrop' => __( 'Select and Crop' ),
</span><del>-               /* translators: button to choose not to crop the selected image */
</del><span class="cx">           'skipCropping' => __( 'Skip Cropping' ),
</span><del>-               /* translators: button to choose to crop the selected image */
</del><span class="cx">           'cropImage' => __( 'Crop Image' ),
</span><span class="cx">          'cropYourImage' => __( 'Crop your image' ),
</span><del>-               /* translators: button label changes to this while the image is being cropped server-side */
-               'cropping' => __( 'Cropping...' ),
-               /* translators: suggested width of header image in pixels */
</del><ins>+                'cropping' => __( 'Cropping&hellip;' ),
</ins><span class="cx">           'suggestedWidth' => __( 'Suggested width is %d pixels.' ),
</span><del>-               /* translators: suggested height of header image in pixels */
</del><span class="cx">           'suggestedHeight' => __( 'Suggested height is %d pixels.' ),
</span><span class="cx"> 
</span><span class="cx">          'mediaHTML5Text'        => __( 'Add alternate sources for maximum HTML5 playback:' ),
</span></span></pre></div>
<a id="trunksrcwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/script-loader.php (27619 => 27620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/script-loader.php  2014-03-19 07:23:19 UTC (rev 27619)
+++ trunk/src/wp-includes/script-loader.php     2014-03-19 08:17:08 UTC (rev 27620)
</span><span class="lines">@@ -497,7 +497,7 @@
</span><span class="cx"> 
</span><span class="cx">          $scripts->add( 'media', "/wp-admin/js/media$suffix.js", array( 'jquery' ), false, 1 );
</span><span class="cx">          did_action( 'init' ) && $scripts->localize( 'media', 'attachMediaBoxL10n', array(
</span><del>-                       'error' => __( 'An error has occured. Please reload the page and try again.' )
</del><ins>+                        'error' => __( 'An error has occurred. Please reload the page and try again.' ),
</ins><span class="cx">           ));
</span><span class="cx"> 
</span><span class="cx">          $scripts->add( 'image-edit', "/wp-admin/js/image-edit$suffix.js", array('jquery', 'json2', 'imgareaselect'), false, 1 );
</span></span></pre>
</div>
</div>

</body>
</html>