Make WordPress Core

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

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

    old new  
    44
    55        <?php if (have_posts()) : ?>
    66
    7                 <h2 class="pagetitle">Search Results</h2>
     7                <h2 class="pagetitle"><?php _e('Search Results'); ?></h2>
    88               
    99                <div class="navigation">
    10                         <div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    11                         <div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
     10                        <div class="alignleft"><?php posts_nav_link('','',__('&laquo; Previous Entries')) ?></div>
     11                        <div class="alignright"><?php posts_nav_link('',__('Next Entries &raquo;'),'') ?></div>
    1212                </div>
    1313
    1414
    1515                <?php while (have_posts()) : the_post(); ?>
    1616                               
    1717                        <div class="post">
    18                                 <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>
     18                                <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>
    1919                                <small><?php the_time('l, F jS, Y') ?></small>
    2020                               
    2121                                <div class="entry">
    2222                                        <?php the_excerpt() ?>
    2323                                </div>
    2424               
    25                                 <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>
     25                        <p class="postmetadata"><?php _e('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>
    2626                               
    2727                                <!--
    2828                                <?php trackback_rdf(); ?>
     
    3232                <?php endwhile; ?>
    3333
    3434                <div class="navigation">
    35                         <div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    36                         <div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
     35                        <div class="alignleft"><?php posts_nav_link('','',__('&laquo; Previous Entries')) ?></div>
     36                        <div class="alignright"><?php posts_nav_link('',__('Next Entries &raquo;'),'') ?></div>
    3737                </div>
    3838       
    3939        <?php else : ?>
     
    4747
    4848<?php get_sidebar(); ?>
    4949
    50 <?php get_footer(); ?>
    51  No newline at end of file
     50<?php get_footer(); ?>