Proper translation of '<time> ago' in revisions. props johnbillion, fixes #24721.
git-svn-id: https://develop.svn.wordpress.org/trunk@24643 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
49596ff2c1
commit
e01a1a94bb
@ -91,7 +91,7 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id ) {
|
||||
'date' => date_i18n( __( 'M j, Y @ G:i' ), $modified_gmt ),
|
||||
'dateShort' => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified_gmt ),
|
||||
'dateUnix' => $modified_gmt,
|
||||
'timeAgo' => human_time_diff( $modified_gmt, $current ),
|
||||
'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $current ) ),
|
||||
'autosave' => wp_is_post_autosave( $revision ),
|
||||
'current' => $revision->post_modified_gmt === $post->post_modified_gmt,
|
||||
'restoreUrl' => urldecode( $restore_link ),
|
||||
|
@ -130,7 +130,7 @@ require_once( './admin-header.php' );
|
||||
<div class="revisions-tooltip-content">
|
||||
<# if ( 'undefined' !== typeof data && 'undefined' !== typeof data.author ) { #>
|
||||
{{{ data.author.avatar }}} {{{ data.author.name }}},
|
||||
{{{ data.timeAgo }}} <?php _e( 'ago' ); ?>
|
||||
{{{ data.timeAgo }}}
|
||||
({{{ data.dateShort }}})
|
||||
<# } #>
|
||||
</div>
|
||||
@ -159,7 +159,7 @@ require_once( './admin-header.php' );
|
||||
<strong><?php _ex( 'From:', 'Followed by post revision info' ); ?></strong>
|
||||
<# if ( 'undefined' !== typeof data.from ) { #>
|
||||
{{{ data.from.attributes.author.avatar }}} {{{ data.from.attributes.author.name }}},
|
||||
{{{ data.from.attributes.timeAgo }}} <?php _e( 'ago' ); ?>
|
||||
{{{ data.from.attributes.timeAgo }}}
|
||||
({{{ data.from.attributes.dateShort }}})
|
||||
<# } #>
|
||||
</div>
|
||||
@ -171,7 +171,7 @@ require_once( './admin-header.php' );
|
||||
<strong><?php _ex( 'To:', 'Followed by post revision info' ); ?></strong>
|
||||
<# if ( 'undefined' !== typeof data.to ) { #>
|
||||
{{{ data.to.attributes.author.avatar }}} {{{ data.to.attributes.author.name }}},
|
||||
{{{ data.to.attributes.timeAgo }}} <?php _e( 'ago' ); ?>
|
||||
{{{ data.to.attributes.timeAgo }}}
|
||||
({{{ data.to.attributes.dateShort }}})
|
||||
<# } #>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user