<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[14544] trunk/wp-content/themes/twentyten: Various twentyten i18n fixes.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14544">14544</a></dd>
<dt>Author</dt> <dd>nbachiyski</dd>
<dt>Date</dt> <dd>2010-05-10 20:30:58 +0000 (Mon, 10 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Various twentyten i18n fixes. Props zeo, dimadin. Fixes <a href="http://trac.wordpress.org/ticket/13198">#13198</a> </pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentytenarchivephp">trunk/wp-content/themes/twentyten/archive.php</a></li>
<li><a href="#trunkwpcontentthemestwentytencategoryphp">trunk/wp-content/themes/twentyten/category.php</a></li>
<li><a href="#trunkwpcontentthemestwentytenheaderphp">trunk/wp-content/themes/twentyten/header.php</a></li>
<li><a href="#trunkwpcontentthemestwentytensinglephp">trunk/wp-content/themes/twentyten/single.php</a></li>
<li><a href="#trunkwpcontentthemestwentytentagphp">trunk/wp-content/themes/twentyten/tag.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentytenarchivephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/archive.php (14543 => 14544)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/archive.php        2010-05-10 20:22:01 UTC (rev 14543)
+++ trunk/wp-content/themes/twentyten/archive.php        2010-05-10 20:30:58 UTC (rev 14544)
</span><span class="lines">@@ -20,16 +20,17 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php the_post(); ?&gt;
</span><span class="cx"> 
</span><ins>+                        &lt;h1 class=&quot;page-title&quot;&gt;
</ins><span class="cx"> &lt;?php if ( is_day() ) : ?&gt;
</span><del>-                                &lt;h1 class=&quot;page-title&quot;&gt;&lt;?php printf( __( 'Daily Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date() ); ?&gt;&lt;/h1&gt;
</del><ins>+                                &lt;?php printf( __( 'Daily Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date() ); ?&gt;
</ins><span class="cx"> &lt;?php elseif ( is_month() ) : ?&gt;
</span><del>-                                &lt;h1 class=&quot;page-title&quot;&gt;&lt;?php printf( __( 'Monthly Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date('F Y') ); ?&gt;&lt;/h1&gt;
</del><ins>+                                &lt;?php printf( __( 'Monthly Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date('F Y') ); ?&gt;
</ins><span class="cx"> &lt;?php elseif ( is_year() ) : ?&gt;
</span><del>-                                &lt;h1 class=&quot;page-title&quot;&gt;&lt;?php printf( __( 'Yearly Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date('Y') ); ?&gt;&lt;/h1&gt;
</del><ins>+                                &lt;?php printf( __( 'Yearly Archives: &lt;span&gt;%s&lt;/span&gt;', 'twentyten' ), get_the_date('Y') ); ?&gt;
</ins><span class="cx"> &lt;?php else : ?&gt;
</span><del>-                                &lt;h1 class=&quot;page-title&quot;&gt;&lt;?php _e( 'Blog Archives', 'twentyten' ); ?&gt;&lt;/h1&gt;
</del><ins>+                                &lt;?php _e( 'Blog Archives', 'twentyten' ); ?&gt;
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span><del>-
</del><ins>+                        &lt;/h1&gt;
</ins><span class="cx"> &lt;?php rewind_posts(); ?&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx">         /* Run the loop for the archives page to output the posts.
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytencategoryphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/category.php (14543 => 14544)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/category.php        2010-05-10 20:22:01 UTC (rev 14543)
+++ trunk/wp-content/themes/twentyten/category.php        2010-05-10 20:30:58 UTC (rev 14544)
</span><span class="lines">@@ -16,7 +16,12 @@
</span><span class="cx">                                 &lt;h1 class=&quot;page-title&quot;&gt;&lt;?php
</span><span class="cx">                                         printf( __( 'Category Archives: %s', 'twentyten' ), '&lt;span&gt;' . single_cat_title( '', false ) . '&lt;/span&gt;' );
</span><span class="cx">                                 ?&gt;&lt;/h1&gt;
</span><del>-                                &lt;?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '&lt;div class=&quot;archive-meta&quot;&gt;' . $categorydesc . '&lt;/div&gt;' ); ?&gt;
</del><ins>+                                &lt;?php
+                                        $categorydesc = category_description();
+                                        if ( ! empty( $categorydesc ) ) {
+                                                echo apply_filters( 'archive_meta', '&lt;div class=&quot;archive-meta&quot;&gt;' . $categorydesc . '&lt;/div&gt;' );
+                                        }
+                                ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php
</span><span class="cx">                                 /* Run the loop for the category page to output the posts.
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytenheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/header.php (14543 => 14544)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/header.php        2010-05-10 20:22:01 UTC (rev 14543)
+++ trunk/wp-content/themes/twentyten/header.php        2010-05-10 20:30:58 UTC (rev 14544)
</span><span class="lines">@@ -14,8 +14,8 @@
</span><span class="cx"> &lt;html &lt;?php language_attributes(); ?&gt;&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx">         &lt;meta charset=&quot;&lt;?php bloginfo( 'charset' ); ?&gt;&quot; /&gt;
</span><del>-        &lt;title&gt;&lt;?php
-        // Returns the title based on the type of page being viewed
</del><ins>+        &lt;title&gt;
+        &lt;?php
</ins><span class="cx">                 if ( is_single() ) {
</span><span class="cx">                         single_post_title(); echo ' | '; bloginfo( 'name' );
</span><span class="cx">                 } elseif ( is_home() || is_front_page() ) {
</span><span class="lines">@@ -26,13 +26,14 @@
</span><span class="cx">                 } elseif ( is_page() ) {
</span><span class="cx">                         single_post_title( '' ); echo ' | '; bloginfo( 'name' );
</span><span class="cx">                 } elseif ( is_search() ) {
</span><del>-                        printf( __( 'Search results for &quot;%s&quot;', 'twentyten' ), get_search_query() ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
</del><ins>+                        printf( __( 'Search results for %s', 'twentyten' ), '&quot;'.get_search_query().'&quot;' ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
</ins><span class="cx">                 } elseif ( is_404() ) {
</span><span class="cx">                         _e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
</span><span class="cx">                 } else {
</span><span class="cx">                         wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number();
</span><span class="cx">                 }
</span><del>-        ?&gt;&lt;/title&gt;
</del><ins>+        ?&gt;
+        &lt;/title&gt;
</ins><span class="cx">         &lt;link rel=&quot;profile&quot; href=&quot;http://gmpg.org/xfn/11&quot; /&gt;
</span><span class="cx">         &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; href=&quot;&lt;?php bloginfo( 'stylesheet_url' ); ?&gt;&quot; /&gt;
</span><span class="cx">         &lt;?php if ( is_singular() &amp;&amp; get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytensinglephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/single.php (14543 => 14544)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/single.php        2010-05-10 20:22:01 UTC (rev 14543)
+++ trunk/wp-content/themes/twentyten/single.php        2010-05-10 20:30:58 UTC (rev 14544)
</span><span class="lines">@@ -38,10 +38,12 @@
</span><span class="cx">                                                         &lt;?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?&gt;
</span><span class="cx">                                                 &lt;/div&gt;&lt;!-- #author-avatar --&gt;
</span><span class="cx">                                                 &lt;div id=&quot;author-description&quot;&gt;
</span><del>-                                                        &lt;h2&gt;&lt;?php _e( 'About ', 'twentyten' ); ?&gt;&lt;?php the_author(); ?&gt;&lt;/h2&gt;
</del><ins>+                                                        &lt;h2&gt;&lt;?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?&gt;&lt;/h2&gt;
</ins><span class="cx">                                                         &lt;?php the_author_meta( 'description' ); ?&gt;
</span><span class="cx">                                                         &lt;div id=&quot;author-link&quot;&gt;
</span><del>-                                                                &lt;a href=&quot;&lt;?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?&gt;&quot;&gt;&lt;?php _e( 'View all posts by ', 'twentyten' ); ?&gt;&lt;?php the_author(); ?&gt; &amp;rarr;&lt;/a&gt;
</del><ins>+                                                                &lt;a href=&quot;&lt;?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?&gt;&quot;&gt;
+                                                                        &lt;?php printf( __( 'View all posts by %s &amp;rarr;', 'twentyten' ), get_the_author() ); ?&gt;
+                                                                &lt;/a&gt;
</ins><span class="cx">                                                         &lt;/div&gt;&lt;!-- #author-link        --&gt;
</span><span class="cx">                                                 &lt;/div&gt;&lt;!-- #author-description --&gt;
</span><span class="cx">                                         &lt;/div&gt;&lt;!-- .entry-author-info --&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytentagphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/tag.php (14543 => 14544)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/tag.php        2010-05-10 20:22:01 UTC (rev 14543)
+++ trunk/wp-content/themes/twentyten/tag.php        2010-05-10 20:30:58 UTC (rev 14544)
</span><span class="lines">@@ -15,9 +15,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php the_post(); ?&gt;
</span><span class="cx"> 
</span><del>-                                &lt;h1 class=&quot;page-title&quot;&gt;&lt;?php
-                                        printf( __( 'Tag Archives: %s', 'twentyten' ), '&lt;span&gt;' . single_tag_title( '', false ) . '&lt;/span&gt;' );
-                                ?&gt;&lt;/h1&gt;
</del><ins>+                                &lt;h1 class=&quot;page-title&quot;&gt;
+                                        &lt;?php printf( __( 'Tag Archives: %s', 'twentyten' ), '&lt;span&gt;' . single_tag_title( '', false ) . '&lt;/span&gt;' ); ?&gt;
+                                &lt;/h1&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php rewind_posts(); ?&gt;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>