I18N: Replace unnecessary context with translator comments in `wp_post_revision_title()` and `wp_post_revision_title_expanded()`.

Props ramiy.
Fixes #37778.
Built from https://develop.svn.wordpress.org/trunk@38324


git-svn-id: http://core.svn.wordpress.org/trunk@38265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-08-23 00:35:28 +00:00
parent fee26cf741
commit 372a19a435
2 changed files with 9 additions and 7 deletions

View File

@ -1639,10 +1639,10 @@ function wp_post_revision_title( $revision, $link = true ) {
/* translators: revision date format, see https://secure.php.net/date */
$datef = _x( 'F j, Y @ H:i:s', 'revision date format' );
/* translators: 1: date */
$autosavef = _x( '%1$s [Autosave]', 'post revision title extra' );
/* translators: 1: date */
$currentf = _x( '%1$s [Current Revision]', 'post revision title extra' );
/* translators: %s: revision date */
$autosavef = __( '%s [Autosave]' );
/* translators: %s: revision date */
$currentf = __( '%s [Current Revision]' );
$date = date_i18n( $datef, strtotime( $revision->post_modified ) );
if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) )
@ -1691,8 +1691,10 @@ function wp_post_revision_title_expanded( $revision, $link = true ) {
$date
);
$autosavef = __( '%1$s [Autosave]' );
$currentf = __( '%1$s [Current Revision]' );
/* translators: %s: revision date with author's Gravatar */
$autosavef = __( '%s [Autosave]' );
/* translators: %s: revision date with author's Gravatar */
$currentf = __( '%s [Current Revision]' );
if ( !wp_is_post_revision( $revision ) )
$revision_date_author = sprintf( $currentf, $revision_date_author );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38323';
$wp_version = '4.7-alpha-38324';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.