WordPress.org

Make WordPress Core

Ticket #23917: revision-i18n.diff

File revision-i18n.diff, 2.1 KB (added by nao, 13 months ago)

Adds translation context to Revisions UI.

  • wp-admin/revision.php

     
    114114<script id="tmpl-revision" type="text/html"> 
    115115        <div id="diffsubheader" class="diff-left-hand-meta-row"> 
    116116                <div id="diff_from_current_revision"> 
    117                         <?php printf( '<b>%1$s</b> %2$s.' , __( 'From:' ), __( 'the current version' ) ); ?> 
     117                        <?php printf( '<b>%1$s</b> %2$s.' , _x( 'From:', 'Followed by older post revision info' ), __( 'the current version' ) ); ?> 
    118118                </div> 
    119119                <div id="difftitlefrom"> 
    120                         <div class="diff-from-title"><?php _e( 'From:' ); ?></div>{{{ data.revision_from_date_author }}} 
     120                        <div class="diff-from-title"><?php _ex( 'From:', 'Followed by older post revision info' ); ?></div>{{{ data.revision_from_date_author }}} 
    121121                </div> 
    122122        </div> 
    123123 
    124124        <div id="diffsubheader"> 
    125125                <div id="difftitle"> 
    126                         <div class="diff-to-title"><?php _e( 'To:' ); ?></div>{{{ data.revision_date_author }}} 
     126                        <div class="diff-to-title"><?php _ex( 'To:', 'Followed by newer post revision info' ); ?></div>{{{ data.revision_date_author }}} 
    127127                </div> 
    128128                <div id="diffrestore"> 
    129129                        <input class="button button-primary restore-button" onClick="document.location='{{{ data.restoreaction }}}'" type="submit" id="restore" value="<?php esc_attr_e( 'Restore This Revision' )?>" /> 
     
    143143 
    144144<script id="tmpl-revisionvinteract" type="text/html"> 
    145145        <div id="diffheader"> 
    146                 <div id="diffprevious"><input class="button" type="submit" id="previous" value="<?php esc_attr_e( 'Previous' ); ?>" /> 
     146                <div id="diffprevious"><input class="button" type="submit" id="previous" value="<?php echo esc_attr_x( 'Previous', 'Button label for a previous revision' ); ?>" /> 
    147147                </div> 
    148                 <div id="diffnext"><input class="button" type="submit" id="next" value="<?php esc_attr_e( 'Next' ); ?>" /> 
     148                <div id="diffnext"><input class="button" type="submit" id="next" value="<?php echo esc_attr_x( 'Next', 'Button label for a next revision' ); ?>" /> 
    149149                </div> 
    150150                <div id="diffslider"> 
    151151                        <div id="slider" class="wp-slider">