diff --git a/wp-admin/js/inline-edit-post.js b/wp-admin/js/inline-edit-post.js index f997e17f14..5f3d2212e2 100644 --- a/wp-admin/js/inline-edit-post.js +++ b/wp-admin/js/inline-edit-post.js @@ -5,7 +5,7 @@ * @output wp-admin/js/inline-edit-post.js */ -/* global inlineEditL10n, ajaxurl, typenow, inlineEditPost */ +/* global ajaxurl, typenow, inlineEditPost */ window.wp = window.wp || {}; @@ -198,8 +198,8 @@ window.wp = window.wp || {}; if ( $(this).prop('checked') ) { c = false; var id = $(this).val(), theTitle; - theTitle = $('#inline_'+id+' .post_title').html() || inlineEditL10n.notitle; - te += '
X'+theTitle+'
'; + theTitle = $('#inline_'+id+' .post_title').html() || wp.i18n.__( '(no title)' ); + te += '
X'+theTitle+'
'; } }); @@ -327,7 +327,7 @@ window.wp = window.wp || {}; var terms = $(this), taxname = $(this).attr('id').replace('_' + id, ''), textarea = $('textarea.tax_input_' + taxname, editRow), - comma = inlineEditL10n.comma; + comma = wp.i18n._x( ',', 'tag delimiter' ).trim(); terms.find( 'img' ).replaceWith( function() { return this.alt; } ); terms = terms.text(); @@ -431,7 +431,7 @@ window.wp = window.wp || {}; $( this ).find( '.editinline' ) .attr( 'aria-expanded', 'false' ) .focus(); - wp.a11y.speak( inlineEditL10n.saved ); + wp.a11y.speak( wp.i18n.__( 'Changes saved.' ) ); }); } else { r = r.replace( /<.[^<>]*?>/g, '' ); @@ -441,8 +441,8 @@ window.wp = window.wp || {}; } } else { $errorNotice.removeClass( 'hidden' ); - $error.html( inlineEditL10n.error ); - wp.a11y.speak( inlineEditL10n.error ); + $error.text( wp.i18n.__( 'Error while saving the changes.' ) ); + wp.a11y.speak( wp.i18n.__( 'Error while saving the changes.' ) ); } }, 'html'); diff --git a/wp-admin/js/inline-edit-post.min.js b/wp-admin/js/inline-edit-post.min.js index ed3db02007..3e30c2b622 100644 --- a/wp-admin/js/inline-edit-post.min.js +++ b/wp-admin/js/inline-edit-post.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -window.wp=window.wp||{},function(h,a){window.inlineEditPost={init:function(){var i=this,t=h("#inline-edit"),e=h("#bulk-edit");i.type=h("table.widefat").hasClass("pages")?"page":"post",i.what="#post-",t.keyup(function(t){if(27===t.which)return inlineEditPost.revert()}),e.keyup(function(t){if(27===t.which)return inlineEditPost.revert()}),h(".cancel",t).click(function(){return inlineEditPost.revert()}),h(".save",t).click(function(){return inlineEditPost.save(this)}),h("td",t).keydown(function(t){if(13===t.which&&!h(t.target).hasClass("cancel"))return inlineEditPost.save(this)}),h(".cancel",e).click(function(){return inlineEditPost.revert()}),h('#inline-edit .inline-edit-private input[value="private"]').click(function(){var t=h("input.inline-edit-password-input");h(this).prop("checked")?t.val("").prop("disabled",!0):t.prop("disabled",!1)}),h("#the-list").on("click",".editinline",function(){h(this).attr("aria-expanded","true"),inlineEditPost.edit(this)}),h("#bulk-edit").find("fieldset:first").after(h("#inline-edit fieldset.inline-edit-categories").clone()).siblings("fieldset:last").prepend(h("#inline-edit label.inline-edit-tags").clone()),h('select[name="_status"] option[value="future"]',e).remove(),h("#doaction, #doaction2").click(function(t){var e;i.whichBulkButtonId=h(this).attr("id"),e=i.whichBulkButtonId.substr(2),"edit"===h('select[name="'+e+'"]').val()?(t.preventDefault(),i.setBulk()):0