Make WordPress Core

Ticket #16441: archive.diff

File archive.diff, 878 bytes (added by settle, 14 years ago)

My suggestion. Works fine in my localhost.

  • archive.php

     
    3232<?php if ( is_day() ) : ?>
    3333                                <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
    3434<?php elseif ( is_month() ) : ?>
    35                                 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'F Y' ) ); ?>
     35                                <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date(__('F Y', 'twentyten')) ); ?>
    3636<?php elseif ( is_year() ) : ?>
    37                                 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'Y' ) ); ?>
     37                                <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date(__('Y', 'twentyten')) ); ?>
    3838<?php else : ?>
    3939                                <?php _e( 'Blog Archives', 'twentyten' ); ?>
    4040<?php endif; ?>