Ticket #35056: 35056.patch
File 35056.patch, 12.6 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/ajax-actions.php
1765 1765 switch ( $post->post_status ) { 1766 1766 case 'publish' : 1767 1767 case 'private' : 1768 $stat = _ _('Published');1768 $stat = _x( 'Published', 'post status' ); 1769 1769 break; 1770 1770 case 'future' : 1771 $stat = _ _('Scheduled');1771 $stat = _x( 'Scheduled', 'post status' ); 1772 1772 break; 1773 1773 case 'pending' : 1774 $stat = _ _('Pending Review');1774 $stat = _x( 'Pending Review', 'post status' ); 1775 1775 break; 1776 1776 case 'draft' : 1777 $stat = _ _('Draft');1777 $stat = _x( 'Draft', 'post status' ); 1778 1778 break; 1779 1779 } 1780 1780 -
src/wp-admin/includes/class-wp-posts-list-table.php
942 942 } 943 943 944 944 if ( 'publish' === $post->post_status ) { 945 _e ( 'Published' );945 _ex( 'Published', 'post status' ); 946 946 } elseif ( 'future' === $post->post_status ) { 947 947 if ( $time_diff > 0 ) { 948 948 echo '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>'; 949 949 } else { 950 _e ( 'Scheduled' );950 _ex( 'Scheduled', 'post status' ); 951 951 } 952 952 } else { 953 953 _e( 'Last Modified' ); … … 1370 1370 </em> 1371 1371 <label class="alignleft inline-edit-private"> 1372 1372 <input type="checkbox" name="keep_private" value="private" /> 1373 <span class="checkbox-title"><?php _e ( 'Private' ); ?></span>1373 <span class="checkbox-title"><?php _ex( 'Private', 'post status' ); ?></span> 1374 1374 </label> 1375 1375 </div> 1376 1376 … … 1537 1537 <option value="-1"><?php _e( '— No Change —' ); ?></option> 1538 1538 <?php endif; // $bulk ?> 1539 1539 <?php if ( $can_publish ) : // Contributors only get "Unpublished" and "Pending Review" ?> 1540 <option value="publish"><?php _e ( 'Published' ); ?></option>1541 <option value="future"><?php _e ( 'Scheduled' ); ?></option>1540 <option value="publish"><?php _ex( 'Published', 'post status' ); ?></option> 1541 <option value="future"><?php _ex( 'Scheduled', 'post status' ); ?></option> 1542 1542 <?php if ( $bulk ) : ?> 1543 <option value="private"><?php _e ( 'Private' ) ?></option>1543 <option value="private"><?php _ex( 'Private', 'post status' ) ?></option> 1544 1544 <?php endif; // $bulk ?> 1545 1545 <?php endif; ?> 1546 <option value="pending"><?php _e ( 'Pending Review' ); ?></option>1547 <option value="draft"><?php _e ( 'Draft' ); ?></option>1546 <option value="pending"><?php _ex( 'Pending Review', 'post status' ); ?></option> 1547 <option value="draft"><?php _ex( 'Draft', 'post status' ); ?></option> 1548 1548 </select> 1549 1549 </label> 1550 1550 … … 1553 1553 <?php if ( $bulk ) : ?> 1554 1554 1555 1555 <label class="alignright"> 1556 <span class="title"><?php _e ( 'Sticky' ); ?></span>1556 <span class="title"><?php _ex( 'Sticky', 'post visibility' ); ?></span> 1557 1557 <select name="sticky"> 1558 1558 <option value="-1"><?php _e( '— No Change —' ); ?></option> 1559 1559 <option value="sticky"><?php _e( 'Sticky' ); ?></option> 1560 <option value="unsticky"><?php _e ( 'Not Sticky' ); ?></option>1560 <option value="unsticky"><?php _ex( 'Not Sticky', 'post visibility' ); ?></option> 1561 1561 </select> 1562 1562 </label> 1563 1563 -
src/wp-admin/includes/meta-boxes.php
79 79 <?php 80 80 switch ( $post->post_status ) { 81 81 case 'private': 82 _e ('Privately Published');82 _ex( 'Privately Published', 'post status' ); 83 83 break; 84 84 case 'publish': 85 _e ('Published');85 _ex( 'Published', 'post status' ); 86 86 break; 87 87 case 'future': 88 _e ('Scheduled');88 _ex( 'Scheduled', 'post status' ); 89 89 break; 90 90 case 'pending': 91 _e ('Pending Review');91 _ex( 'Pending Review', 'post status' ); 92 92 break; 93 93 case 'draft': 94 94 case 'auto-draft': 95 _e ('Draft');95 _ex( 'Draft', 'post status' ); 96 96 break; 97 97 } 98 98 ?> … … 104 104 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ('auto-draft' == $post->post_status ) ? 'draft' : $post->post_status); ?>" /> 105 105 <select name='post_status' id='post_status'> 106 106 <?php if ( 'publish' == $post->post_status ) : ?> 107 <option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e ('Published')?></option>107 <option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _ex( 'Published', 'post status' ); ?></option> 108 108 <?php elseif ( 'private' == $post->post_status ) : ?> 109 <option<?php selected( $post->post_status, 'private' ); ?> value='publish'><?php _e ('Privately Published')?></option>109 <option<?php selected( $post->post_status, 'private' ); ?> value='publish'><?php _ex( 'Privately Published', 'post status' ); ?></option> 110 110 <?php elseif ( 'future' == $post->post_status ) : ?> 111 <option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e ('Scheduled')?></option>111 <option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _ex( 'Scheduled', 'post status' ); ?></option> 112 112 <?php endif; ?> 113 <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e ('Pending Review')?></option>113 <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _ex( 'Pending Review', 'post status' ); ?></option> 114 114 <?php if ( 'auto-draft' == $post->post_status ) : ?> 115 <option<?php selected( $post->post_status, 'auto-draft' ); ?> value='draft'><?php _e ('Draft')?></option>115 <option<?php selected( $post->post_status, 'auto-draft' ); ?> value='draft'><?php _ex( 'Draft', 'post status' ); ?></option> 116 116 <?php else : ?> 117 <option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e ('Draft')?></option>117 <option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _ex( 'Draft', 'post status' ); ?></option> 118 118 <?php endif; ?> 119 119 </select> 120 120 <a href="#post_status" class="save-post-status hide-if-no-js button"><?php _e('OK'); ?></a> … … 130 130 if ( 'private' == $post->post_status ) { 131 131 $post->post_password = ''; 132 132 $visibility = 'private'; 133 $visibility_trans = _ _('Private');133 $visibility_trans = _x( 'Private', 'post status' ); 134 134 } elseif ( !empty( $post->post_password ) ) { 135 135 $visibility = 'password'; 136 $visibility_trans = _ _('Password protected');136 $visibility_trans = _x( 'Password protected', 'post visibility' ); 137 137 } elseif ( $post_type == 'post' && is_sticky( $post->ID ) ) { 138 138 $visibility = 'public'; 139 $visibility_trans = _ _('Public, Sticky');139 $visibility_trans = _x( 'Public, Sticky', 'post visibility' ); 140 140 } else { 141 141 $visibility = 'public'; 142 $visibility_trans = _ _('Public');142 $visibility_trans = _x( 'Public', 'post visibility' ); 143 143 } 144 144 145 145 echo esc_html( $visibility_trans ); ?></span> … … 152 152 <input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" <?php checked(is_sticky($post->ID)); ?> /> 153 153 <?php endif; ?> 154 154 <input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo esc_attr( $visibility ); ?>" /> 155 <input type="radio" name="visibility" id="visibility-radio-public" value="public" <?php checked( $visibility, 'public' ); ?> /> <label for="visibility-radio-public" class="selectit"><?php _e ('Public'); ?></label><br />155 <input type="radio" name="visibility" id="visibility-radio-public" value="public" <?php checked( $visibility, 'public' ); ?> /> <label for="visibility-radio-public" class="selectit"><?php _ex( 'Public', 'post visibility' ); ?></label><br /> 156 156 <?php if ( $post_type == 'post' && current_user_can( 'edit_others_posts' ) ) : ?> 157 157 <span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky" <?php checked( is_sticky( $post->ID ) ); ?> /> <label for="sticky" class="selectit"><?php _e( 'Stick this post to the front page' ); ?></label><br /></span> 158 158 <?php endif; ?> 159 <input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e ('Password protected'); ?></label><br />159 <input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _ex( 'Password protected', 'post visibility' ); ?></label><br /> 160 160 <span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo esc_attr($post->post_password); ?>" maxlength="20" /><br /></span> 161 <input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e ('Private'); ?></label><br />161 <input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _ex( 'Private', 'post status' ); ?></label><br /> 162 162 163 163 <p> 164 164 <a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a> -
src/wp-admin/includes/template.php
1677 1677 $post_status = ''; 1678 1678 1679 1679 if ( !empty($post->post_password) ) 1680 $post_states['protected'] = _ _('Password protected');1680 $post_states['protected'] = _x( 'Password protected', 'post visibility' ); 1681 1681 if ( 'private' == $post->post_status && 'private' != $post_status ) 1682 $post_states['private'] = _ _('Private');1682 $post_states['private'] = _x( 'Private', 'post status' ); 1683 1683 if ( 'draft' == $post->post_status && 'draft' != $post_status ) 1684 $post_states['draft'] = _ _('Draft');1684 $post_states['draft'] = _x( 'Draft', 'post status' ); 1685 1685 if ( 'pending' == $post->post_status && 'pending' != $post_status ) 1686 $post_states['pending'] = _x( 'Pending', 'post status');1686 $post_states['pending'] = _x( 'Pending', 'post status' ); 1687 1687 if ( is_sticky($post->ID) ) 1688 $post_states['sticky'] = _ _('Sticky');1688 $post_states['sticky'] = _x( 'Sticky', 'post visibility' ); 1689 1689 1690 1690 if ( 'future' === $post->post_status ) { 1691 $post_states['scheduled'] = _ _( 'Scheduled' );1691 $post_states['scheduled'] = _x( 'Scheduled', 'post status' ); 1692 1692 } 1693 1693 1694 1694 if ( 'page' === get_option( 'show_on_front' ) ) { -
src/wp-includes/post.php
595 595 */ 596 596 function get_post_statuses() { 597 597 $status = array( 598 'draft' => _ _( 'Draft' ),599 'pending' => _ _( 'Pending Review' ),600 'private' => _ _( 'Private' ),601 'publish' => _ _( 'Published' )598 'draft' => _x( 'Draft', 'post status' ), 599 'pending' => _x( 'Pending Review', 'post status' ), 600 'private' => _x( 'Private', 'post status' ), 601 'publish' => _x( 'Published', 'post status' ) 602 602 ); 603 603 604 604 return $status; … … 616 616 */ 617 617 function get_page_statuses() { 618 618 $status = array( 619 'draft' => _ _( 'Draft' ),620 'private' => _ _( 'Private' ),621 'publish' => _ _( 'Published' )619 'draft' => _x( 'Draft', 'post status' ), 620 'private' => _x( 'Private', 'post status' ), 621 'publish' => _x( 'Published', 'post status' ) 622 622 ); 623 623 624 624 return $status; -
src/wp-includes/script-loader.php
517 517 'update' => __('Update'), 518 518 'savePending' => __('Save as Pending'), 519 519 'saveDraft' => __('Save Draft'), 520 'private' => _ _('Private'),521 'public' => _ _('Public'),522 'publicSticky' => _ _('Public, Sticky'),523 'password' => _ _('Password Protected'),524 'privatelyPublished' => _ _('Privately Published'),525 'published' => _ _('Published'),520 'private' => _x('Private', 'post status'), 521 'public' => _x('Public', 'post visibility'), 522 'publicSticky' => _x('Public, Sticky', 'post visibility'), 523 'password' => _x('Password Protected', 'post visibility'), 524 'privatelyPublished' => _x('Privately Published', 'post status'), 525 'published' => _x('Published', 'post status'), 526 526 'saveAlert' => __('The changes you made will be lost if you navigate away from this page.'), 527 527 'savingText' => __('Saving Draft…'), 528 528 'permalinkSaved' => __( 'Permalink saved' ),