Make WordPress Core

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

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

    old new  
    66
    77                 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    88<?php /* If this is a category archive */ if (is_category()) { ?>                               
    9                 <h2 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</h2>
     9                <h2 class="pagetitle"><?php printf(__('Archive for the %s Category'), single_cat_title('',false)); ?></h2>
    1010               
    1111          <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    1212                <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
     
    3030
    3131
    3232                <div class="navigation">
    33                         <div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    34                         <div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
     33                        <div class="alignleft"><?php posts_nav_link('','',__('&laquo; Previous Entries')) ?></div>
     34                        <div class="alignright"><?php posts_nav_link('',__('Next Entries &raquo;'),'') ?></div>
    3535                </div>
    3636
    3737                <?php while (have_posts()) : the_post(); ?>
    3838                <div class="post">
    39                                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
     39                                <h3 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></h3>
    4040                                <small><?php the_time('l, F jS, Y') ?></small>
    4141                               
    4242                                <div class="entry">
    4343                                        <?php the_excerpt() ?>
    4444                                </div>
    4545               
    46                                 <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>
     46                                <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>
    4747                               
    4848                                <!--
    4949                                <?php trackback_rdf(); ?>
     
    5353                <?php endwhile; ?>
    5454
    5555                <div class="navigation">
    56                         <div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    57                         <div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
     56                        <div class="alignleft"><?php posts_nav_link('','',__('&laquo; Previous Entries')) ?></div>
     57                        <div class="alignright"><?php posts_nav_link('',__('Next Entries &raquo;'),'') ?></div>
    5858                </div>
    5959       
    6060        <?php else : ?>
    6161
    62                 <h2 class="center">Not Found</h2>
     62                <h2 class="center"><?php _e('Not Found'); ?></h2>
    6363                <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    6464
    6565        <?php endif; ?>
     
    6868
    6969<?php get_sidebar(); ?>
    7070
    71 <?php get_footer(); ?>
    72  No newline at end of file
     71<?php get_footer(); ?>