Make WordPress Core

Changeset 14544


Ignore:
Timestamp:
05/10/2010 08:30:58 PM (15 years ago)
Author:
nbachiyski
Message:

Various twentyten i18n fixes. Props zeo, dimadin. Fixes #13198

Location:
trunk/wp-content/themes/twentyten
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/archive.php

    r13885 r14544  
    2121<?php the_post(); ?>
    2222
     23            <h1 class="page-title">
    2324<?php if ( is_day() ) : ?>
    24                 <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?></h1>
     25                <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
    2526<?php elseif ( is_month() ) : ?>
    26                 <h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ); ?></h1>
     27                <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ); ?>
    2728<?php elseif ( is_year() ) : ?>
    28                 <h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ); ?></h1>
     29                <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ); ?>
    2930<?php else : ?>
    30                 <h1 class="page-title"><?php _e( 'Blog Archives', 'twentyten' ); ?></h1>
     31                <?php _e( 'Blog Archives', 'twentyten' ); ?>
    3132<?php endif; ?>
    32 
     33            </h1>
    3334<?php rewind_posts(); ?>
    3435<?php
  • trunk/wp-content/themes/twentyten/category.php

    r13885 r14544  
    1717                    printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
    1818                ?></h1>
    19                 <?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
     19                <?php
     20                    $categorydesc = category_description();
     21                    if ( ! empty( $categorydesc ) ) {
     22                        echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' );
     23                    }
     24                ?>
    2025
    2126                <?php
  • trunk/wp-content/themes/twentyten/header.php

    r14535 r14544  
    1515<head>
    1616    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    17     <title><?php
    18     // Returns the title based on the type of page being viewed
     17    <title>
     18    <?php
    1919        if ( is_single() ) {
    2020            single_post_title(); echo ' | '; bloginfo( 'name' );
     
    2727            single_post_title( '' ); echo ' | '; bloginfo( 'name' );
    2828        } elseif ( is_search() ) {
    29             printf( __( 'Search results for "%s"', 'twentyten' ), get_search_query() ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
     29            printf( __( 'Search results for %s', 'twentyten' ), '"'.get_search_query().'"' ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
    3030        } elseif ( is_404() ) {
    3131            _e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
     
    3333            wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number();
    3434        }
    35     ?></title>
     35    ?>
     36    </title>
    3637    <link rel="profile" href="http://gmpg.org/xfn/11" />
    3738    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  • trunk/wp-content/themes/twentyten/single.php

    r14541 r14544  
    3939                        </div><!-- #author-avatar -->
    4040                        <div id="author-description">
    41                             <h2><?php _e( 'About ', 'twentyten' ); ?><?php the_author(); ?></h2>
     41                            <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
    4242                            <?php the_author_meta( 'description' ); ?>
    4343                            <div id="author-link">
    44                                 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php _e( 'View all posts by ', 'twentyten' ); ?><?php the_author(); ?> &rarr;</a>
     44                                <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
     45                                    <?php printf( __( 'View all posts by %s &rarr;', 'twentyten' ), get_the_author() ); ?>
     46                                </a>
    4547                            </div><!-- #author-link -->
    4648                        </div><!-- #author-description -->
  • trunk/wp-content/themes/twentyten/tag.php

    r13885 r14544  
    1616<?php the_post(); ?>
    1717
    18                 <h1 class="page-title"><?php
    19                     printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_tag_title( '', false ) . '</span>' );
    20                 ?></h1>
     18                <h1 class="page-title">
     19                    <?php printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?>
     20                </h1>
    2121
    2222<?php rewind_posts(); ?>
Note: See TracChangeset for help on using the changeset viewer.