Make WordPress Core

Ticket #769: i18n-theme-single-php.diff

File i18n-theme-single-php.diff, 4.3 KB (added by nbachiyski, 21 years ago)
  • wp-content/themes/default/single.php

    old new  
    1010                </div>
    1111       
    1212                <div class="post">
    13                         <h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
     13        <h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link:'); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    1414       
    1515                        <div class="entrytext">
    16                                 <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
     16                                <?php the_content(__('<p class="serif">Read the rest of this entry &raquo;</p>')); ?>
    1717       
    18                                 <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
     18                                <?php link_pages(__('<p><strong>Pages:</strong> ', '</p>', 'number')); ?>
    1919       
    2020                                <p class="postmetadata alt">
    2121                                        <small>
    22                                                 This entry was posted
    23                                                 <?php /* This is commented, because it requires a little adjusting sometimes.
     22                                        <?php
     23                                                printf(__('This entry was posted %s on %s at %s and is filed under %s. You can follow any responses to this entry through the <a href="%s">RSS 2.0</a> feed.'), '',
     24                                                        /* This is commented, because it requires a little adjusting sometimes.
    2425                                                        You'll need to download this plugin, and follow the instructions:
    2526                                                        http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
    26                                                         /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
    27                                                 on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
    28                                                 and is filed under <?php the_category(', ') ?>.
    29                                                 You can follow any responses to this entry through the <a href="<?php bloginfo_rss('comments_rss2_url'); ?>">RSS 2.0</a>
    30                                                 feed.
    31                                                
    32                                                 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    33                                                         // Both Comments and Pings are open ?>
    34                                                         You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(display); ?>">trackback</a> from your own site.
    35                                                
    36                                                 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    37                                                         // Only Pings are Open ?>
    38                                                         Responses are currently closed, but you can <a href="<?php trackback_url(display); ?> ">trackback</a> from your own site.
    39                                                
    40                                                 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    41                                                         // Comments are open, Pings are not ?>
    42                                                         You can skip to the end and leave a response. Pinging is currently not allowed.
    43                        
    44                                                 <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    45                                                         // Neither Comments, nor Pings are open ?>
    46                                                         Both comments and pings are currently closed.                   
    47                                                
    48                                                 <?php } edit_post_link('Edit this entry.','',''); ?>
     27                                                        /* time_since(abs(strtotime($post->post_date) - (60*120))).' ago' */
     28                                                        get_the_time('l, F jS, Y'),
     29                                                        get_the_time(),
     30                                                        the_category(', ', '', false),
     31                                                        get_bloginfo_rss('comments_rss2_url'));
     32                                        ?>
     33                                        <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
     34                                                        // Both Comments and Pings are open
     35                                                        printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s">trackback</a> from your own site. '), trackback_url(false));
     36                                        ?>
     37                                        <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
     38                                                        // Only Pings are Open
     39                                                        printf(__('Responses are currently closed, but you can <a href="%s">trackback</a> from your own site.'), trackback_url(false));
     40                                        ?>
     41                                        <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
     42                                                        // Comments are open, Pings are not
     43                                                        _e('You can skip to the end and leave a response. Pinging is currently not allowed.');
     44                                        ?>
     45                                        <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
     46                                                        // Neither Comments, nor Pings are open
     47                                                        _e('Both comments and pings are currently closed.');
     48                                        ?>
     49                                        <?php } edit_post_link(__('Edit this entry.'),'',''); ?>
    4950                                               
    5051                                        </small>
    5152                                </p>
     
    6364       
    6465        </div>
    6566
    66 <?php get_footer(); ?>
    67  No newline at end of file
     67<?php get_footer(); ?>