gettext for twentyten. see #12170
git-svn-id: http://svn.automattic.com/wordpress/trunk@13024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3ff118e774
commit
0ad559106d
|
@ -20,7 +20,7 @@ endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( have_comments() ) : ?>
|
<?php if ( have_comments() ) : ?>
|
||||||
<h3 id="comments-title"><?php comments_number('No Responses to', 'One Response to', '% Responses to' );?> <em><?php the_title(); ?></em></h3>
|
<h3 id="comments-title"><?php comments_number( __('No Responses to', 'twentyten'), __('One Response to', 'twentyten'), __('% Responses to', 'twentyten') );?> <em><?php the_title(); ?></em></h3>
|
||||||
|
|
||||||
<?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?>
|
<?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?>
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
|
@ -46,7 +46,7 @@ endif;
|
||||||
|
|
||||||
<?php else : // if comments are closed ?>
|
<?php else : // if comments are closed ?>
|
||||||
|
|
||||||
<p class="nocomments">Comments are closed.</p>
|
<p class="nocomments"><?php _e('Comments are closed.', 'twentyten'); ?></p>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -55,17 +55,17 @@ endif;
|
||||||
|
|
||||||
<div id="respond">
|
<div id="respond">
|
||||||
|
|
||||||
<h3 id="reply-title"><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?> <small><?php cancel_comment_reply_link('Cancel reply'); ?></small></h3>
|
<h3 id="reply-title"><?php comment_form_title( __('Leave a Reply', 'twentyten'), __('Leave a Reply to %s', 'twentyten') ); ?> <small><?php cancel_comment_reply_link( __('Cancel reply', 'twentyten') ); ?></small></h3>
|
||||||
|
|
||||||
<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
|
<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
|
||||||
<p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
|
<p><?php printf( __('You must be <a href="%s">logged in</a> to post a comment.', 'twentyten'), wp_login_url( get_permalink() ) ); ?></p>
|
||||||
|
|
||||||
<?php else : // here's the big comment form ?>
|
<?php else : // here's the big comment form ?>
|
||||||
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
|
<form action="<?php echo site_url('wp-comments-post.php'); ?>" method="post" id="commentform">
|
||||||
|
|
||||||
<?php if ( $user_ID ) : ?>
|
<?php if ( $user_ID ) : ?>
|
||||||
<p id="login"><?php printf(__('<span class="loggedin">Logged in as <a href="%1$s" title="Logged in as %2$s">%2$s</a>.</span> <span class="logout"><a href="%3$s" title="Log out of this account">Log out?</a></span>', 'twentyten'),
|
<p id="login"><?php printf(__('<span class="loggedin">Logged in as <a href="%1$s" title="Logged in as %2$s">%2$s</a>.</span> <span class="logout"><a href="%3$s" title="Log out of this account">Log out?</a></span>', 'twentyten'),
|
||||||
get_option('siteurl') . '/wp-admin/profile.php',
|
admin_url('profile.php'),
|
||||||
wp_specialchars($user_identity, true),
|
wp_specialchars($user_identity, true),
|
||||||
wp_logout_url(get_permalink()) ) ?></p>
|
wp_logout_url(get_permalink()) ) ?></p>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="site-generator">
|
<div id="site-generator">
|
||||||
Proudly powered by <span id="generator-link"><a href="http://wordpress.org/" title="<?php _e( 'Semantic Personal Publishing Platform', 'twentyten' ) ?>" rel="generator"><?php _e( 'WordPress', 'twentyten' ) ?></a>.</span>
|
<?php printf( __('Proudly powered by <span id="generator-link">%s</span>.', 'twentyten'), '<a href="http://wordpress.org/" title="' . __( 'Semantic Personal Publishing Platform', 'twentyten' ) . '" rel="generator">' . __( 'WordPress', 'twentyten' ) . '</a>' ); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div><!-- #colophon -->
|
</div><!-- #colophon -->
|
||||||
|
|
|
@ -26,7 +26,7 @@ the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<div class="gallery-thumb"><a class="size-thumbnail" href="<?php permalink_link() ?>"><?php $hilite = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment' LIMIT 1" ); echo wp_get_attachment_image( $hilite, 'thumbnail' );?></a></div>
|
<div class="gallery-thumb"><a class="size-thumbnail" href="<?php permalink_link() ?>"><?php $hilite = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment' LIMIT 1" ); echo wp_get_attachment_image( $hilite, 'thumbnail' );?></a></div>
|
||||||
|
|
||||||
<p><em>This gallery contains <a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php echo $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment'" ); ?> photos</a>.</em></p>
|
<p><em><?php printf( __('This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten'), 'href="' . get_permalink() . '" title="' . sprintf( __('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ) . '" rel="bookmark"', $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment'" )); ?></em></p>
|
||||||
|
|
||||||
<?php the_excerpt(''); ?>
|
<?php the_excerpt(''); ?>
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
@ -75,7 +75,7 @@ the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><
|
||||||
<a href="<?php
|
<a href="<?php
|
||||||
the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
|
the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
|
||||||
<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
|
<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
|
||||||
<span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
|
<span class="author vcard"><a class="url fn n"2 href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
|
||||||
</div><!-- .entry-meta -->
|
</div><!-- .entry-meta -->
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<form id="searchform" name="searchform" method="get" action="/">
|
<form id="searchform" name="searchform" method="get" action="/">
|
||||||
<div>
|
<div>
|
||||||
<label for="s">Search</label>
|
<label for="s"><?php _e('Search', 'twentyten'); ?></label>
|
||||||
<input type="text" id="s" name="s" />
|
<input type="text" id="s" name="s" />
|
||||||
<input type="submit" id="searchsubmit" value="<?php _e('Search', 'twentyten'); ?>" />
|
<input type="submit" id="searchsubmit" value="<?php _e('Search', 'twentyten'); ?>" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue