WordPress.org

Make WordPress Core

Ticket #23897: 23897.2.diff

File 23897.2.diff, 3.6 KB (added by DrewAPicture, 8 years ago)

adds some context

  • wp-admin/css/wp-admin-rtl.css

     
    959959        font-family: Consolas, Monaco, monospace;
    960960}
    961961
     962#comparetworevisions {
     963        float: left;
     964        left: 10px;
     965        right: auto;
     966}
     967
     968.diff-from-title, .diff-to-title {
     969        float: right;
     970        margin-left: 5px;
     971        margin-right: 0;
     972        text-align: left;
     973}
     974
     975#difftitlefrom,
     976#difftitle {
     977        float: right;
     978}
     979
     980#diffrestore {
     981        float: right;
     982}
     983
    962984/*------------------------------------------------------------------------------
    963985  11.3 - Featured Images
    964986------------------------------------------------------------------------------*/
  • wp-admin/revision.php

     
    8181
    8282//TODO - Some of the translations below split things into multiple strings that are contextually related and this makes it pretty impossible for RTL translation.
    8383//TODO can we pass the context in a better way
    84 $wpRevisionsSettings = array( 'post_id' => $post->ID,
    85                                                 'nonce' => wp_create_nonce( 'revisions-ajax-nonce' ),
    86                                                 'revision_id' => $revision_id );
     84$wpRevisionsSettings = array(
     85        'post_id' => $post->ID,
     86        'nonce' => wp_create_nonce( 'revisions-ajax-nonce' ),
     87        'revision_id' => $revision_id
     88);
     89
    8790wp_localize_script( 'revisions', 'wpRevisionsSettings', $wpRevisionsSettings );
    8891
    8992$comparetworevisionslink = get_edit_post_link( $revision->ID );
     
    114117<script id="tmpl-revision" type="text/html">
    115118        <div id="diffsubheader" class="diff-left-hand-meta-row">
    116119                <div id="diff_from_current_revision">
    117                         <?php printf( '<b>%1$s</b> %2$s.' , __( 'From:' ), __( 'the current version' ) ); ?>
     120                        <?php _e( '<strong>From:</strong> the current version' ); ?>
    118121                </div>
    119122                <div id="difftitlefrom">
    120                         <div class="diff-from-title"><?php _e( 'From:' ); ?></div>{{{ data.revision_from_date_author }}}
     123                        <div class="diff-from-title"><?php _ex( 'From:', 'revision' ); ?></div>{{{ data.revision_from_date_author }}}
    121124                </div>
    122125        </div>
    123126
    124127        <div id="diffsubheader">
    125128                <div id="difftitle">
    126                         <div class="diff-to-title"><?php _e( 'To:' ); ?></div>{{{ data.revision_date_author }}}
     129                        <div class="diff-to-title"><?php _ex( 'To:', 'revision' ); ?></div>{{{ data.revision_date_author }}}
    127130                </div>
    128131                <div id="diffrestore">
    129                         <input class="button button-primary restore-button" onClick="document.location='{{{ data.restoreaction }}}'" type="submit" id="restore" value="<?php esc_attr_e( 'Restore This Revision' )?>" />
     132                        <input class="button button-primary restore-button" onClick="document.location='{{{ data.restoreaction }}}'" type="submit" id="restore" value="<?php esc_attr_e( 'Restore This Revision' ) ?>" />
    130133                </div>
    131134                <div id="comparetworevisions">
    132135                        <input type="checkbox" id="comparetwo" value="comparetwo" {{{ data.comparetwochecked }}} name="comparetwo"/>
     
    143146
    144147<script id="tmpl-revisionvinteract" type="text/html">
    145148        <div id="diffheader">
    146                 <div id="diffprevious"><input class="button" type="submit" id="previous" value="<?php esc_attr_e( 'Previous' ); ?>" />
     149                <div id="diffprevious"><input class="button" type="submit" id="previous" value="<?php echo esc_attr_x( 'Previous', 'revision' ); ?>" />
    147150                </div>
    148                 <div id="diffnext"><input class="button" type="submit" id="next" value="<?php esc_attr_e( 'Next' ); ?>" />
     151                <div id="diffnext"><input class="button" type="submit" id="next" value="<?php echo esc_attr_x( 'Next', 'revision' ); ?>" />
    149152                </div>
    150153                <div id="diffslider">
    151154                        <div id="slider" class="wp-slider">