Changeset 48391
- Timestamp:
- 07/07/2020 06:00:37 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/inline-edit-post.js
r48318 r48391 6 6 */ 7 7 8 /* global inlineEditL10n,ajaxurl, typenow, inlineEditPost */8 /* global ajaxurl, typenow, inlineEditPost */ 9 9 10 10 window.wp = window.wp || {}; … … 199 199 c = false; 200 200 var id = $(this).val(), theTitle; 201 theTitle = $('#inline_'+id+' .post_title').html() || inlineEditL10n.notitle;202 te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+ inlineEditL10n.ntdeltitle+'">X</a>'+theTitle+'</div>';201 theTitle = $('#inline_'+id+' .post_title').html() || wp.i18n.__( '(no title)' ); 202 te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+ wp.i18n.__( 'Remove From Bulk Edit' ) +'">X</a>'+theTitle+'</div>'; 203 203 } 204 204 }); … … 328 328 taxname = $(this).attr('id').replace('_' + id, ''), 329 329 textarea = $('textarea.tax_input_' + taxname, editRow), 330 comma = inlineEditL10n.comma;330 comma = wp.i18n._x( ',', 'tag delimiter' ).trim(); 331 331 332 332 terms.find( 'img' ).replaceWith( function() { return this.alt; } ); … … 432 432 .attr( 'aria-expanded', 'false' ) 433 433 .focus(); 434 wp.a11y.speak( inlineEditL10n.saved);434 wp.a11y.speak( wp.i18n.__( 'Changes saved.' ) ); 435 435 }); 436 436 } else { … … 442 442 } else { 443 443 $errorNotice.removeClass( 'hidden' ); 444 $error. html( inlineEditL10n.error);445 wp.a11y.speak( inlineEditL10n.error);444 $error.text( wp.i18n.__( 'Error while saving the changes.' ) ); 445 wp.a11y.speak( wp.i18n.__( 'Error while saving the changes.' ) ); 446 446 } 447 447 }, -
trunk/src/js/_enqueues/admin/inline-edit-tax.js
r47122 r48391 5 5 */ 6 6 7 /* global inlineEditL10n,ajaxurl, inlineEditTax */7 /* global ajaxurl, inlineEditTax */ 8 8 9 9 window.wp = window.wp || {}; … … 225 225 .attr( 'aria-expanded', 'false' ) 226 226 .focus(); 227 wp.a11y.speak( inlineEditL10n.saved);227 wp.a11y.speak( wp.i18n.__( 'Changes saved.' ) ); 228 228 }); 229 229 … … 239 239 } else { 240 240 $errorNotice.removeClass( 'hidden' ); 241 $error. html( inlineEditL10n.error);242 wp.a11y.speak( inlineEditL10n.error);241 $error.text( wp.i18n.__( 'Error while saving the changes.' ) ); 242 wp.a11y.speak( wp.i18n.__( 'Error while saving the changes.' ) ); 243 243 } 244 244 } -
trunk/src/wp-includes/script-loader.php
r48387 r48391 1255 1255 1256 1256 $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'tags-suggest', 'wp-a11y' ), false, 1 ); 1257 did_action( 'init' ) && $scripts->localize( 1258 'inline-edit-post', 1259 'inlineEditL10n', 1260 array( 1261 'error' => __( 'Error while saving the changes.' ), 1262 'ntdeltitle' => __( 'Remove From Bulk Edit' ), 1263 'notitle' => __( '(no title)' ), 1264 'comma' => trim( _x( ',', 'tag delimiter' ) ), 1265 'saved' => __( 'Changes saved.' ), 1266 ) 1267 ); 1257 $scripts->set_translations( 'inline-edit-post' ); 1268 1258 1269 1259 $scripts->add( 'inline-edit-tax', "/wp-admin/js/inline-edit-tax$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 ); 1270 did_action( 'init' ) && $scripts->localize( 1271 'inline-edit-tax', 1272 'inlineEditL10n', 1273 array( 1274 'error' => __( 'Error while saving the changes.' ), 1275 'saved' => __( 'Changes saved.' ), 1276 ) 1277 ); 1260 $scripts->set_translations( 'inline-edit-tax' ); 1278 1261 1279 1262 $scripts->add( 'plugin-install', "/wp-admin/js/plugin-install$suffix.js", array( 'jquery', 'jquery-ui-core', 'thickbox' ), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.