Make WordPress Core

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

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

    old new  
    2020                        for the day <?php the_time('l, F jS, Y'); ?>.</p>
    2121                       
    2222                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    23                         <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
    24                         for <?php the_time('F, Y'); ?>.</p>
     23                        <?php printf('<p>You are currently browsing the <a href="%s">%s</a> weblog archives
     24                                for %s.</p>',get_settings('siteurl'), get_bloginfo('name'), get_the_time('F, Y')); ?>
    2525
    2626      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    27                         <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
    28                         for the year <?php the_time('Y'); ?>.</p>
     27                        <?php printf('<p>You are currently browsing the <a href="%s">%s</a> weblog archives
     28                        for the year %s.</p>', get_settings('siteurl'), get_bloginfo('name'), get_the_time('Y')); ?>
     29
    2930                       
    30                  <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    31                         <p>You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
    32                         for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
     31                 <?php /* If this is a search results page */ } elseif (is_search()) { ?>
     32                        <?php printf('<p>You have searched the <a href="%s">%s</a> weblog archives
     33                                for <strong>\'%s\'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>', get_settings('siteurl'), get_bloginfo('name'), wp_specialchars($s)); ?>
     34
     35                        <?php /* If we are moving through pages */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
     36                        <?php printf('<p>You are currently browsing the <a href="%s">%s</a> weblog archives.</p>', get_settings('siteurl'), get_bloginfo('name')); ?>
    3337
    34                         <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    35                         <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
    3638
    3739                        <?php } ?>
    3840                        </li>