Ticket #769: i18n-theme-archive-php.diff
| File i18n-theme-archive-php.diff, 2.9 KB (added by , 21 years ago) |
|---|
-
wp-content/themes/default/archive.php
old new 6 6 7 7 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> 8 8 <?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> 10 10 11 11 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 12 12 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> … … 30 30 31 31 32 32 <div class="navigation"> 33 <div class="alignleft"><?php posts_nav_link('','', '« Previous Entries') ?></div>34 <div class="alignright"><?php posts_nav_link('', 'Next Entries »','') ?></div>33 <div class="alignleft"><?php posts_nav_link('','',__('« Previous Entries')) ?></div> 34 <div class="alignright"><?php posts_nav_link('',__('Next Entries »'),'') ?></div> 35 35 </div> 36 36 37 37 <?php while (have_posts()) : the_post(); ?> 38 38 <div class="post"> 39 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title=" Permanent Link to <?phpthe_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> 40 40 <small><?php the_time('l, F jS, Y') ?></small> 41 41 42 42 <div class="entry"> 43 43 <?php the_excerpt() ?> 44 44 </div> 45 45 46 <p class="postmetadata"> Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></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 »'), __('1 Comment »'), __('% Comments »')); ?></p> 47 47 48 48 <!-- 49 49 <?php trackback_rdf(); ?> … … 53 53 <?php endwhile; ?> 54 54 55 55 <div class="navigation"> 56 <div class="alignleft"><?php posts_nav_link('','', '« Previous Entries') ?></div>57 <div class="alignright"><?php posts_nav_link('', 'Next Entries »','') ?></div>56 <div class="alignleft"><?php posts_nav_link('','',__('« Previous Entries')) ?></div> 57 <div class="alignright"><?php posts_nav_link('',__('Next Entries »'),'') ?></div> 58 58 </div> 59 59 60 60 <?php else : ?> 61 61 62 <h2 class="center"> Not Found</h2>62 <h2 class="center"><?php _e('Not Found'); ?></h2> 63 63 <?php include (TEMPLATEPATH . '/searchform.php'); ?> 64 64 65 65 <?php endif; ?> … … 68 68 69 69 <?php get_sidebar(); ?> 70 70 71 <?php get_footer(); ?> 72 No newline at end of file 71 <?php get_footer(); ?>