WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/18/2013 05:58:30 PM (7 years ago)
Author:
ryan
Message:

Fix i18n for revision diff strings displaying human time.

Props johnbillion
fixes #23723

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r23735 r23743  
    21352135
    21362136            $revision_from_date_author = sprintf(
    2137                 '%s %s, %s %s (%s)',
     2137                /* translators: post revision title: 1: author avatar, 2: author name, 3: time ago, 4: date */
     2138                _x( '%1$s %2$s, %3$s ago (%4$s)', 'post revision title' ),
    21382139                $compare_to_gravatar,
    21392140                $compare_to_author,
    21402141                human_time_diff( strtotime( $left_revision->post_modified ), current_time( 'timestamp' ) ),
    2141                 __( ' ago ' ),
    21422142                $compare_to_date
    21432143            );
     
    22062206        $date = date_i18n( $datef, strtotime( $revision->post_modified ) );
    22072207        $revision_date_author = sprintf(
    2208             '%s %s, %s %s (%s)',
     2208            /* translators: post revision title: 1: author avatar, 2: author name, 3: time ago, 4: date */
     2209            _x( '%1$s %2$s, %3$s ago (%4$s)', 'post revision title' ),
    22092210            $gravatar,
    22102211            $author,
    22112212            human_time_diff( strtotime( $revision->post_modified ), current_time( 'timestamp' ) ),
    2212             __( ' ago ' ),
    22132213            $date
    22142214        );
Note: See TracChangeset for help on using the changeset viewer.