Make WordPress Core

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

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

    old new  
    77                <?php while (have_posts()) : the_post(); ?>
    88                               
    99                        <div class="post">
    10                                 <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
     10                                <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to'); echo ' '; the_title(); ?>"><?php the_title(); ?></a></h2>
    1111                                <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    1212                               
    1313                                <div class="entry">
    14                                         <?php the_content('Read the rest of this entry &raquo;'); ?>
     14                                        <?php the_content(__('Read the rest of this entry &raquo;')); ?>
    1515                                </div>
    1616               
    17                                 <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
     17                                <p class="postmetadata"><?php _e('Posted in'); echo ' '; the_category(', ') ?> <strong>|</strong> <?php edit_post_link(__('Edit'),'','<strong>|</strong>'); ?>  <?php comments_popup_link(__('No Comments &#187;'), __('1 Comment &#187;'), __('% Comments &#187;')); ?></p>
    1818                               
    1919                                <!--
    2020                                <?php trackback_rdf(); ?>
     
    2424                <?php endwhile; ?>
    2525
    2626                <div class="navigation">
    27                         <div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    28                         <div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
     27                        <div class="alignleft"><?php posts_nav_link('','',__('&laquo; Previous Entries')) ?></div>
     28                        <div class="alignright"><?php posts_nav_link('',__('Next Entries &raquo;'),'') ?></div>
    2929                </div>
    3030               
    3131        <?php else : ?>
     
    4040
    4141<?php get_sidebar(); ?>
    4242
    43 <?php get_footer(); ?>
    44  No newline at end of file
     43<?php get_footer(); ?>