Ticket #3661: i18n-date-formats.diff

File i18n-date-formats.diff, 2.7 kB (added by nbachiyski, 2 years ago)
  • wp-admin/admin-functions.php

    old new  
    830830      <?php echo $pad; ?><?php the_title() ?> 
    831831    </td>  
    832832    <td><?php the_author() ?></td> 
    833     <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( 'Y-m-d g:i a', $post->post_modified ); ?></td>  
     833    <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( __('Y-m-d g:i a'), $post->post_modified ); ?></td>  
    834834        <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e( 'View' ); ?></a></td> 
    835835    <td><?php if ( current_user_can( 'edit_page', $id ) ) { echo "<a href='page.php?action=edit&amp;post=$id' class='edit'>" . __( 'Edit' ) . "</a>"; } ?></td>  
    836836    <td><?php if ( current_user_can( 'delete_page', $id ) ) { echo "<a href='" . wp_nonce_url( "page.php?action=delete&amp;post=$id", 'delete-page_' . $id ) .  "' class='delete' onclick=\"return deleteSomething( 'page', " . $id . ", '" . js_escape(sprintf( __("You are about to delete the '%s' page.\n'OK' to delete, 'Cancel' to stop." ), get_the_title() ) ) . "' );\">" . __( 'Delete' ) . "</a>"; } ?></td>  
  • wp-admin/options-general.php

    old new  
    6060<table class="optiontable">  
    6161<tr>  
    6262<th scope="row"><?php _e('<abbr title="Coordinated Universal Time">UTC</abbr> time is:') ?> </th>  
    63 <td><code><?php echo gmdate('Y-m-d g:i:s a'); ?></code></td>  
     63<td><code><?php echo gmdate(__('Y-m-d g:i:s a')); ?></code></td>  
    6464</tr> 
    6565<tr> 
    6666<th scope="row"><?php _e('Times in the weblog should differ by:') ?> </th> 
  • wp-admin/edit.php

    old new  
    177177 
    178178        case 'date': 
    179179                ?> 
    180                 <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?></td> 
     180                <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else the_time(_('Y-m-d \<\b\r \/\> g:i:s a')); ?></td> 
    181181                <?php 
    182182                break; 
    183183        case 'title': 
     
    279279 
    280280<?php comment_text() ?> 
    281281 
    282 <p><?php comment_date('M j, g:i A');  ?> &#8212; [ 
     282<p><?php comment_date(__('M j, g:i A'));  ?> &#8212; [ 
    283283<?php 
    284284if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 
    285285        echo " <a href='comment.php?action=editcomment&amp;c=".$comment->comment_ID."'>" .  __('Edit') . '</a>';