From 906029f327c8ac96c8bcfa4165d4a0f0c3e8a5bf Mon Sep 17 00:00:00 2001 From: Nikolay Bachiyski Date: Mon, 10 May 2010 05:11:11 +0000 Subject: [PATCH] =?UTF-8?q?Twentyten=20attachment.php=20copy=20and=20i18n?= =?UTF-8?q?=20fixes.=20Props=20dimadin=20and=20zeo.=20See=20#13198=20=20*?= =?UTF-8?q?=20Removed=20the=20Post=20a=20comment=20link,=20since=20it's=20?= =?UTF-8?q?not=20present=20on=20any=20other=20single=20post=20page=20=20*?= =?UTF-8?q?=20The=20text=20and=20link=20to=20the=20full-size=20image=20wer?= =?UTF-8?q?en't=20clear=20and=20hard=20to=20i18n.=20Changed=20to=20Full=20?= =?UTF-8?q?size=20is=203872=20=C3=97=202592=20pixel,=20where=20the=20size?= =?UTF-8?q?=20is=20the=20link=20=20*=20Whitespace=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://develop.svn.wordpress.org/trunk@14532 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/attachment.php | 52 +++++++++++----------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/wp-content/themes/twentyten/attachment.php b/wp-content/themes/twentyten/attachment.php index de81ec0119..7f17f2c3b9 100644 --- a/wp-content/themes/twentyten/attachment.php +++ b/wp-content/themes/twentyten/attachment.php @@ -22,24 +22,34 @@
By %3$s', 'twentyten'), - get_author_posts_url( get_the_author_meta( 'ID' ) ), - sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), - get_the_author() + printf(__('By %2$s', 'twentyten'), + 'meta-prep meta-prep-author', + sprintf( '%3$s', + get_author_posts_url( get_the_author_meta( 'ID' ) ), + sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), + get_the_author() + ) ); ?> - | + | Published ', 'twentyten'), - esc_attr( get_the_time() ), - get_the_date() + printf( __('Published %2$s', 'twentyten'), + 'meta-prep meta-prep-entry-date', + sprintf( '', + esc_attr( get_the_time() ), + get_the_date() + ) ); if ( wp_attachment_is_image() ) { + echo ' | '; $size = getimagesize( wp_get_attachment_url() ); - printf( __( ' at %2$s × %3$s', 'twentyten'), - wp_get_attachment_url(), - $size[0], - $size[1] + printf( __( 'Full size is %s pixels', 'twentyten'), + sprintf( '%3$s × %4$s', + wp_get_attachment_url(), + esc_attr( __('Link to full-size image', 'twentyten') ), + $size[0], + $size[1] + ) ); } ?> @@ -50,7 +60,7 @@

ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. ?>

@@ -62,9 +72,9 @@
-
post_excerpt ) ) the_excerpt(); ?>
+
post_excerpt ) ) the_excerpt(); ?>
-→', 'twentyten' ) ); ?> +→', 'twentyten' ) ); ?> '' ) ); ?>
@@ -72,7 +82,7 @@
permalink.', 'twentyten' ); } else { $utility_text = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'twentyten' ); @@ -86,16 +96,6 @@ get_post_comments_feed_link() ); ?> - - - Post a comment or leave a trackback: Trackback URL.', 'twentyten' ), get_trackback_url() ); ?> - - Trackback URL.', 'twentyten' ), get_trackback_url() ); ?> - - post a comment.', 'twentyten' ); ?> - - - ', '' ); ?>