Changeset 48392
- Timestamp:
- 07/07/2020 06:13:14 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/plugin-install.js
r48168 r48392 5 5 */ 6 6 7 /* global plugininstallL10n,tb_click, tb_remove, tb_position */7 /* global tb_click, tb_remove, tb_position */ 8 8 9 9 jQuery( document ).ready( function( $ ) { … … 157 157 $( '.wrap' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) { 158 158 // The `data-title` attribute is used only in the Plugin screens. 159 var title = $( this ).data( 'title' ) ? plugininstallL10n.plugin_information + ' ' + $( this ).data( 'title' ) : plugininstallL10n.plugin_modal_label; 159 var title = $( this ).data( 'title' ) ? 160 wp.i18n.sprintf( 161 // translators: %s: Plugin name. 162 wp.i18n.__( 'Plugin: %s' ), 163 $( this ).data( 'title' ) 164 ) : 165 wp.i18n.__( 'Plugin details' ); 160 166 161 167 e.preventDefault(); … … 171 177 .attr({ 172 178 'role': 'dialog', 173 'aria-label': plugininstallL10n.plugin_modal_label179 'aria-label': wp.i18n.__( 'Plugin details' ) 174 180 }) 175 181 .addClass( 'plugin-details-modal' ); -
trunk/src/wp-includes/script-loader.php
r48391 r48392 1261 1261 1262 1262 $scripts->add( 'plugin-install', "/wp-admin/js/plugin-install$suffix.js", array( 'jquery', 'jquery-ui-core', 'thickbox' ), false, 1 ); 1263 did_action( 'init' ) && $scripts->localize( 1264 'plugin-install', 1265 'plugininstallL10n', 1266 array( 1267 'plugin_information' => __( 'Plugin:' ), 1268 'plugin_modal_label' => __( 'Plugin details' ), 1269 'ays' => __( 'Are you sure you want to install this plugin?' ), 1270 ) 1271 ); 1263 $scripts->set_translations( 'plugin-install' ); 1272 1264 1273 1265 $scripts->add( 'site-health', "/wp-admin/js/site-health$suffix.js", array( 'clipboard', 'jquery', 'wp-util', 'wp-a11y' ), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.