Posts, Post Types: Simplify the wording in post locking notice.

Props munyagu.
Fixes #42023.

git-svn-id: https://develop.svn.wordpress.org/trunk@41706 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-10-03 15:10:38 +00:00
parent d4dff17627
commit fb06fab2e8

View File

@ -1595,9 +1595,13 @@ function _admin_notice_post_locked() {
<div class="post-locked-avatar"><?php echo get_avatar( $user->ID, 64 ); ?></div>
<p class="currently-editing wp-tab-first" tabindex="0">
<?php
_e( 'This content is currently locked.' );
if ( $override )
printf( ' ' . __( 'If you take over, %s will be blocked from continuing to edit.' ), esc_html( $user->display_name ) );
if ( $override ) {
/* translators: %s: user's display name */
printf( __( '%s is already editing this post. Do you want to take over?' ), esc_html( $user->display_name ) );
} else {
/* translators: %s: user's display name */
printf( __( '%s is already editing this post.' ), esc_html( $user->display_name ) );
}
?>
</p>
<?php