WordPress.org

Make WordPress Core

Ticket #7307: kubrik.r8701.patch

File kubrik.r8701.patch, 36.8 KB (added by msi08, 12 years ago)
  • comments.php

     
    11<?php // Do not delete these lines
    22        if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    3                 die ('Please do not load this page directly. Thanks!');
     3                die ( __('Please do not load this page directly. Thanks!') );
    44
    55        if (!empty($post->post_password)) { // if there's a password
    66                if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
    77                        ?>
    88
    9                         <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
     9                        <p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments"); ?>.</p>
    1010
    1111                        <?php
    1212                        return;
     
    2020<!-- You can start editing here. -->
    2121
    2222<?php if ($comments) : ?>
    23         <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
     23        <h3 id="comments"><?php comments_number( __('No Responses'), __('One Response'), __('% Responses') );?> <?php _e("to"); ?> &#8220;<?php the_title(); ?>&#8221;</h3>
    2424
    2525        <ol class="commentlist">
    2626
     
    2828
    2929                <li <?php comment_class($oddcomment) ?>id="comment-<?php comment_ID() ?>">
    3030                        <?php echo get_avatar( $comment, 32 ); ?>
    31                         <cite><?php comment_author_link() ?></cite> Says:
     31                        <cite><?php comment_author_link() ?></cite> <?php _e("Says"); ?>:
    3232                        <?php if ($comment->comment_approved == '0') : ?>
    33                         <em>Your comment is awaiting moderation.</em>
     33                        <em><?php _e("Your comment is awaiting moderation"); ?>.</em>
    3434                        <?php endif; ?>
    3535                        <br />
    3636
    37                         <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit','&nbsp;&nbsp;',''); ?></small>
     37                        <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php printf( _c('%1$s at %2$s|1: date, 2: time'), get_comment_date( get_option('date_format') ), get_comment_time() ); ?></a> <?php edit_comment_link( __('edit'),'&nbsp;&nbsp;',''); ?></small>
    3838
    3939                        <?php comment_text() ?>
    4040
     
    5656
    5757         <?php else : // comments are closed ?>
    5858                <!-- If comments are closed. -->
    59                 <p class="nocomments">Comments are closed.</p>
     59                <p class="nocomments"><?php _e("Comments are closed"); ?>.</p>
    6060
    6161        <?php endif; ?>
    6262<?php endif; ?>
     
    6464
    6565<?php if ('open' == $post->comment_status) : ?>
    6666
    67 <h3 id="respond">Leave a Reply</h3>
     67<h3 id="respond"><?php _e("Leave a Reply"); ?></h3>
    6868
    6969<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    70 <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
     70<p><?php printf( _c('You must be <a href="%1$s">logged in</a> to post a comment.|1: login URL'), get_option('siteurl') . "/wp-login.php?redirect_to=" . urlencode(get_permalink()) ); ?></p>
    7171<?php else : ?>
    7272
    7373<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    7474
    7575<?php if ( $user_ID ) : ?>
    7676
    77 <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log out &raquo;</a></p>
     77<p><?php printf( _c('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out &raquo;</a>|1: profile URL, 2: user name, 3: logout URL'), get_option('siteurl') . "/wp-admin/profile.php", $user_identity, get_option('siteurl') . "/wp-login.php?action=logout" ); ?></p>
    7878
    7979<?php else : ?>
    8080
    8181<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
    82 <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
     82<label for="author"><small><?php _e("Name"); ?> <?php if ($req) _e("(required)");; ?></small></label></p>
    8383
    8484<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    85 <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
     85<label for="email"><small><?php _e("Mail (will not be published)"); ?> <?php if ($req) _e("(required)"); ?></small></label></p>
    8686
    8787<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    88 <label for="url"><small>Website</small></label></p>
     88<label for="url"><small><?php _e("Website"); ?></small></label></p>
    8989
    9090<?php endif; ?>
    9191
    92 <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
     92<!--<p><small><strong>XHTML:</strong> <?php printf( __("You can use these tags: %s"), "<code>" . allowed_tags() . "</code>" ); ?></small></p>-->
    9393
    9494<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
    9595
    96 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
     96<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" />
    9797<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    9898</p>
    9999<?php do_action('comment_form', $post->ID); ?>
  • image.php

     
    1010                                <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
    1111                <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
    1212
    13                                 <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
     13                                <?php the_content('<p class="serif">' . __('Read the rest of this entry') . ' &raquo;</p>'); ?>
    1414
    1515                                <div class="navigation">
    1616                                        <div class="alignleft"><?php previous_image_link() ?></div>
     
    2020
    2121                                <p class="postmetadata alt">
    2222                                        <small>
    23                                                 This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
    24                                                 and is filed under <?php the_category(', ') ?>.
     23                                                <?php printf( _c('This entry was posted on %1$s at %2$s and is filed under %3$s.|1: date, 2: time, 3: categories'), get_the_time( get_option('date_format') ), get_the_time( get_option('time_format') ), get_the_category_list(', ') ); ?>
    2524                                                <?php the_taxonomies(); ?>
    26                                                 You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
     25                                                <?php printf( _c('You can follow any responses to this entry through the %1$s feed.|1: comments feed URL'), '<a href="' . get_post_comments_feed_link() . '">' . __("RSS 2.0") . '</a>' ); ?>
    2726
    2827                                                <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    2928                                                        // Both Comments and Pings are open ?>
    30                                                         You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
     29                                                        <?php printf( __("You can <a href='#respond'>leave a response</a>, or <a href='%s' rel='trackback'>trackback</a> from your own site"), get_trackback_url() ); ?>.
    3130
    3231                                                <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3332                                                        // Only Pings are Open ?>
    34                                                         Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
     33                                                        <?php printf( __("Responses are currently closed, but you can <a href='%s' rel='trackback'>trackback</a> from your own site"), get_trackback_url() ); ?>.
    3534
    3635                                                <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    3736                                                        // Comments are open, Pings are not ?>
    38                                                         You can skip to the end and leave a response. Pinging is currently not allowed.
     37                                                        <?php _e("You can skip to the end and leave a response. Pinging is currently not allowed"); ?>.
    3938
    4039                                                <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4140                                                        // Neither Comments, nor Pings are open ?>
    42                                                         Both comments and pings are currently closed.
     41                                                        <?php _e("Both comments and pings are currently closed"); ?>.
    4342
    44                                                 <?php } edit_post_link('Edit this entry.','',''); ?>
     43                                                <?php } edit_post_link( __('Edit this entry'),'','.'); ?>
    4544
    4645                                        </small>
    4746                                </p>
     
    5453
    5554        <?php endwhile; else: ?>
    5655
    57                 <p>Sorry, no attachments matched your criteria.</p>
     56                <p><?php _e("Sorry, no attachments matched your criteria"); ?>.</p>
    5857
    5958<?php endif; ?>
    6059
  • archive.php

     
    66
    77          <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    88          <?php /* If this is a category archive */ if (is_category()) { ?>
    9                 <h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
     9                <h2 class="pagetitle"><?php printf( __("Archive for the &#8216;%s&#8217; Category"), single_cat_title( '', false ) ); ?></h2>
    1010          <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    11                 <h2 class="pagetitle">Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
     11                <h2 class="pagetitle"><?php printf( __("Posts Tagged &#8216;%s&#8217;"), single_tag_title( '', false ) ); ?></h2>
    1212          <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    13                 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
     13                <h2 class="pagetitle"><?php printf( __("Archive for %s"), get_the_time( __('F jS, Y') ) ); ?></h2>
    1414          <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    15                 <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
     15                <h2 class="pagetitle"><?php printf( __("Archive for %s"), get_the_time( __('F, Y' ) ) ); ?></h2>
    1616          <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    17                 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
     17                <h2 class="pagetitle"><?php printf( __("Archive for %s"), get_the_time( __('Y' )) ); ?></h2>
    1818          <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    19                 <h2 class="pagetitle">Author Archive</h2>
     19                <h2 class="pagetitle"><?php printf( __("Archive for %s"), get_the_time( __('Y' )) ); ?></h2>
    2020          <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    21                 <h2 class="pagetitle">Blog Archives</h2>
     21                <h2 class="pagetitle"><?php _e("Blog Archives"); ?></h2>
    2222          <?php } ?>
    2323
    2424
    2525                <div class="navigation">
    26                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    27                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
     26                        <div class="alignleft"><?php next_posts_link( __('&laquo; Older Entries' ) ) ?></div>
     27                        <div class="alignright"><?php previous_posts_link( __('Newer Entries &raquo;' ) ) ?></div>
    2828                </div>
    2929
    3030                <?php while (have_posts()) : the_post(); ?>
    3131                <div <?php post_class() ?>>
    32                                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    33                                 <small><?php the_time('l, F jS, Y') ?></small>
     32                                <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __("Permanent Link to %s"), the_title_attribute( array( "echo" => false ) ) ); ?>"><?php the_title(); ?></a></h3>
     33                                <small><?php the_time( get_option('date_format') ) ?></small>
    3434
    3535                                <div class="entry">
    3636                                        <?php the_content() ?>
    3737                                </div>
    3838
    39                                 <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
     39                                <p class="postmetadata"><?php the_tags( __('Tags') . ': ', ', ', '<br />'); ?> <?php printf( __("Posted in %s"), get_the_category_list(', ') ); ?> | <?php edit_post_link( __('Edit'), '', ' | '); ?>  <?php comments_popup_link( __('No Comments') . ' &#187;', __('1 Comment') . ' &#187;', __('% Comments') . ' &#187;', '', __('Comments Off') . '&#187;' ); ?></p>
    4040
    4141                        </div>
    4242
    4343                <?php endwhile; ?>
    4444
    4545                <div class="navigation">
    46                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    47                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
     46                        <div class="alignleft"><?php next_posts_link( __('&laquo; Older Entries' ) ) ?></div>
     47                        <div class="alignright"><?php previous_posts_link( __('Newer Entries &raquo;') ) ?></div>
    4848                </div>
    4949
    5050        <?php else : ?>
    5151
    52                 <h2 class="center">Not Found</h2>
     52                <h2 class="center"><?php _e("Not Found"); ?></h2>
    5353                <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    5454
    5555        <?php endif; ?>
  • 404.php

     
    22
    33        <div id="content" class="narrowcolumn">
    44
    5                 <h2 class="center">Error 404 - Not Found</h2>
     5                <h2 class="center"><?php _e("Error 404 - Not Found"); ?></h2>
    66
    77        </div>
    88
    99<?php get_sidebar(); ?>
    1010
    11 <?php get_footer(); ?>
    12  Kein Zeilenumbruch am Dateiende.
     11<?php get_footer(); ?>
  • searchform.php

     
    11<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    22<label class="hidden" for="s"><?php _e('Search for:'); ?></label>
    33<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    4 <input type="submit" id="searchsubmit" value="Search" />
     4<input type="submit" id="searchsubmit" value="<?php _e('Search'); ?>" />
    55</div>
    66</form>
  • sidebar.php

     
    77                        </li>
    88
    99                        <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
    10                         <li><h2>Author</h2>
     10                        <li><h2><?php _e("Author"); ?></h2>
    1111                        <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
    1212                        </li>
    1313                        -->
     
    1818
    1919                        <?php /* If this is a 404 page */ if (is_404()) { ?>
    2020                        <?php /* If this is a category archive */ } elseif (is_category()) { ?>
    21                         <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
     21                        <p><?php printf( __("You are currently browsing the archives for the %s category."), single_cat_title( '', false ) ); ?></p>
    2222
    23                         <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    24                         <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
    25                         for the day <?php the_time('l, F jS, Y'); ?>.</p>
     23                        <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
     24                        <p><?php printf( _c('You are currently browsing the %1$s blog archives for the day %2$s.|1: blog URL, 2: day'), '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') .'</a>', get_the_time( __('l, F jS, Y') ) ); ?></p>
    2625
    2726                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    28                         <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
    29                         for <?php the_time('F, Y'); ?>.</p>
     27                        <p><?php printf( _c('You are currently browsing the %1$s blog archives for %2$s.|1: blog URL, 2: month'), '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') .'</a>', get_the_time( __('F, Y') ) ); ?></p>
    3028
    3129                        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    32                         <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
    33                         for the year <?php the_time('Y'); ?>.</p>
     30                        <p><?php printf( _c('You are currently browsing the %1$s blog archives for the year %2$s.|1: blog URL, 2: year'), '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') .'</a>', get_the_time( __('Y') ) ); ?></p>
    3431
    3532                        <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    36                         <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
    37                         for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
     33                        <p><?php printf( _c('You have searched the %1$s blog archives for <strong>\'%2$s\'</strong>. If you are unable to find anything in these search results, you can try one of these links.|1: blog URL, 2: search query'), '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') .'</a>', get_search_query() ); ?></p>
    3834
    3935                        <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    4036                        <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
     
    4339
    4440                        </li> <?php }?>
    4541
    46                         <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
     42                        <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
    4743
    48                         <li><h2>Archives</h2>
     44                        <li><h2><?php _e("Archives"); ?></h2>
    4945                                <ul>
    5046                                <?php wp_get_archives('type=monthly'); ?>
    5147                                </ul>
    5248                        </li>
    5349
    54                         <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
     50                        <?php wp_list_categories('show_count=1&title_li=<h2>' . __('Categories') . '</h2>'); ?>
    5551
    5652                        <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    5753                                <?php wp_list_bookmarks(); ?>
    5854
    59                                 <li><h2>Meta</h2>
     55                                <li><h2><?php _e("Meta"); ?></h2>
    6056                                <ul>
    6157                                        <?php wp_register(); ?>
    6258                                        <li><?php wp_loginout(); ?></li>
    63                                         <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
     59                                        <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
    6460                                        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    65                                         <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
     61                                        <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>">WordPress</a></li>
    6662                                        <?php wp_meta(); ?>
    6763                                </ul>
    6864                                </li>
  • header.php

     
    44<head profile="http://gmpg.org/xfn/11">
    55<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    66
    7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
     7<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; <?php _e("Blog Archive"); ?> <?php } ?> <?php wp_title(); ?></title>
    88
    99<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    1010<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  • index.php

     
    77                <?php while (have_posts()) : the_post(); ?>
    88
    99                        <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    10                                 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    11                                 <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
     10                                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __("Permanent Link to %s"), the_title_attribute( array( "echo" => false ) ) ); ?>"><?php the_title(); ?></a></h2>
     11                                <small><?php the_time( get_option('date_format') ) ?> <!-- by <?php the_author() ?> --></small>
    1212
    1313                                <div class="entry">
    14                                         <?php the_content('Read the rest of this entry &raquo;'); ?>
     14                                        <?php the_content( __('Read the rest of this entry') . ' &raquo;'); ?>
    1515                                </div>
    1616
    17                                 <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
     17                                <p class="postmetadata"><?php the_tags(__('Tags') . ': ', ', ', '<br />'); ?> <?php printf( __("Posted in %s"), get_the_category_list(', ') ); ?> | <?php edit_post_link( __('Edit'), '', ' | '); ?>  <?php comments_popup_link( __('No Comments') . ' &#187;', __('1 Comment') . ' &#187;', __('% Comments') . ' &#187;', '', __('Comments Off') . '&#187;' ); ?></p>
    1818                        </div>
    1919
    2020                <?php endwhile; ?>
    2121
    2222                <div class="navigation">
    23                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    24                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
     23                        <div class="alignleft"><?php next_posts_link( __('&laquo; Older Entries') ) ?></div>
     24                        <div class="alignright"><?php previous_posts_link( __('Newer Entries &raquo;') ) ?></div>
    2525                </div>
    2626
    2727        <?php else : ?>
    2828
    29                 <h2 class="center">Not Found</h2>
    30                 <p class="center">Sorry, but you are looking for something that isn't here.</p>
     29                <h2 class="center"><?php _e("Not Found"); ?></h2>
     30                <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
    3131                <?php include (TEMPLATEPATH . "/searchform.php"); ?>
    3232
    3333        <?php endif; ?>
  • footer.php

     
    33<div id="footer">
    44<!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. -->
    55        <p>
    6                 <?php bloginfo('name'); ?> is proudly powered by
    7                 <a href="http://wordpress.org/">WordPress</a>
    8                 <br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
    9                 and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
     6                <?php printf( _c('%1$s is proudly powered by %2$s|1: blog name, 2: WordPress URL'), get_bloginfo('name'), '<a href="http://wordpress.org/">WordPress</a>' ); ?>.
     7                <br/>
     8                <?php printf( _c('%1$s and %2$s|1: entries RSS, 2: comments RSS'), '<a href="' . get_bloginfo('rss2_url') . '">' . __("Entries (RSS)") . '</a>', '<a href="' . get_bloginfo('comments_rss2_url') . '">' . __("Comments (RSS)") . '</a>' ); ?>.
    109                <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
    1110        </p>
    1211</div>
  • search.php

     
    44
    55        <?php if (have_posts()) : ?>
    66
    7                 <h2 class="pagetitle">Search Results</h2>
     7                <h2 class="pagetitle"><?php _e("Search Results"); ?></h2>
    88
    99                <div class="navigation">
    10                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    11                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
     10                        <div class="alignleft"><?php next_posts_link( __('&laquo; Older Entries') ) ?></div>
     11                        <div class="alignright"><?php previous_posts_link( __('Newer Entries &raquo;') ) ?></div>
    1212                </div>
    1313
    1414
    1515                <?php while (have_posts()) : the_post(); ?>
    1616
    1717                        <div <?php post_class() ?>>
    18                                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    19                                 <small><?php the_time('l, F jS, Y') ?></small>
     18                                <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __("Permanent Link to %s"), the_title_attribute( array( "echo" => false ) ) ); ?>"><?php the_title(); ?></a></h3>
     19                                <small><?php the_time( get_option('date_format') ) ?></small>
    2020
    21                                 <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
     21                                <p class="postmetadata"><?php the_tags(__('Tags') . ': ', ', ', '<br />'); ?> <?php printf( __("Posted in %s"), get_the_category_list(', ') ); ?> | <?php edit_post_link( __('Edit'), '', ' | '); ?>  <?php comments_popup_link( __('No Comments') . ' &#187;', __('1 Comment') . ' &#187;', __('% Comments') . ' &#187;', '', __('Comments Off') . '&#187;' ); ?></p>
    2222                        </div>
    2323
    2424                <?php endwhile; ?>
    2525
    2626                <div class="navigation">
    27                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    28                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
     27                        <div class="alignleft"><?php next_posts_link( __('&laquo; Older Entries') ) ?></div>
     28                        <div class="alignright"><?php previous_posts_link( __('Newer Entries &raquo;') ) ?></div>
    2929                </div>
    3030
    3131        <?php else : ?>
    3232
    33                 <h2 class="center">No posts found. Try a different search?</h2>
     33                <h2 class="center"><?php _e("No posts found. Try a different search?"); ?></h2>
    3434                <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    3535
    3636        <?php endif; ?>
     
    3939
    4040<?php get_sidebar(); ?>
    4141
    42 <?php get_footer(); ?>
    43  Kein Zeilenumbruch am Dateiende.
     42<?php get_footer(); ?>
  • links.php

     
    88
    99<div id="content" class="widecolumn">
    1010
    11 <h2>Links:</h2>
     11<h2><?php _e("Links"); ?>:</h2>
    1212<ul>
    1313<?php wp_list_bookmarks(); ?>
    1414</ul>
  • page.php

     
    66                <div class="post" id="post-<?php the_ID(); ?>">
    77                <h2><?php the_title(); ?></h2>
    88                        <div class="entry">
    9                                 <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
     9                                <?php the_content('<p class="serif">' . __('Read the rest of this page') . ' &raquo;</p>'); ?>
    1010
    11                                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
     11                                <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages') . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    1212
    1313                        </div>
    1414                </div>
    1515                <?php endwhile; endif; ?>
    16         <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
     16        <?php edit_post_link( __('Edit this entry'), '<p>', '.</p>'); ?>
    1717        </div>
    1818
    1919<?php get_sidebar(); ?>
    2020
    21 <?php get_footer(); ?>
    22  Kein Zeilenumbruch am Dateiende.
     21<?php get_footer(); ?>
  • single.php

     
    1313                        <h2><?php the_title(); ?></h2>
    1414
    1515                        <div class="entry">
    16                                 <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
     16                                <?php the_content('<p class="serif">' . __('Read the rest of this entry') . ' &raquo;</p>'); ?>
    1717
    18                                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    19                                 <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
     18                                <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages') . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
     19                                <?php the_tags( '<p>' . __('Tags') . ': ', ', ', '</p>'); ?>
    2020
    2121                                <p class="postmetadata alt">
    2222                                        <small>
    23                                                 This entry was posted
    2423                                                <?php /* This is commented, because it requires a little adjusting sometimes.
    2524                                                        You'll need to download this plugin, and follow the instructions:
    2625                                                        http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
    2726                                                        /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
    28                                                 on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
    29                                                 and is filed under <?php the_category(', ') ?>.
    30                                                 You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
     27                                                <?php printf( _c('This entry was posted on %1$s at %2$s and is filed under %3$s. You can follow any responses to this entry through the %4$s feed.|1: date, 2: time, 3: categories, 4: comments feed URL'), get_the_time( get_option('date_format') ), get_the_time( get_option('time_format') ), get_the_category_list(', '), '<a href="' . get_post_comments_feed_link() . '">' . __("RSS 2.0") . '</a>' ); ?>
    3128
    3229                                                <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3330                                                        // Both Comments and Pings are open ?>
    34                                                         You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
     31                                                        <?php printf( __("You can <a href='#respond'>leave a response</a>, or <a href='%s' rel='trackback'>trackback</a> from your own site"), get_trackback_url() ); ?>.
    3532
    3633                                                <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3734                                                        // Only Pings are Open ?>
    38                                                         Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
     35                                                        <?php printf( __("Responses are currently closed, but you can <a href='%s' rel='trackback'>trackback</a> from your own site"), get_trackback_url() ); ?>.
    3936
    4037                                                <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4138                                                        // Comments are open, Pings are not ?>
    42                                                         You can skip to the end and leave a response. Pinging is currently not allowed.
     39                                                        <?php _e("You can skip to the end and leave a response. Pinging is currently not allowed" ); ?>.
    4340
    4441                                                <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4542                                                        // Neither Comments, nor Pings are open ?>
    46                                                         Both comments and pings are currently closed.
     43                                                        <?php _e("Both comments and pings are currently closed"); ?>.
    4744
    48                                                 <?php } edit_post_link('Edit this entry','','.'); ?>
     45                                                <?php } edit_post_link( __('Edit this entry'),'','.'); ?>
    4946
    5047                                        </small>
    5148                                </p>
     
    5754
    5855        <?php endwhile; else: ?>
    5956
    60                 <p>Sorry, no posts matched your criteria.</p>
     57                <p><?php _e("Sorry, no posts matched your criteria"); ?>.</p>
    6158
    6259<?php endif; ?>
    6360
  • archives.php

     
    1010
    1111<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    1212
    13 <h2>Archives by Month:</h2>
     13<h2><?php _e("Archives by Month"); ?>:</h2>
    1414        <ul>
    1515                <?php wp_get_archives('type=monthly'); ?>
    1616        </ul>
    1717
    18 <h2>Archives by Subject:</h2>
     18<h2><?php _e("Archives by Subject"); ?>:</h2>
    1919        <ul>
    2020                 <?php wp_list_categories(); ?>
    2121        </ul>
  • comments-popup.php

     
    66<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    77<html xmlns="http://www.w3.org/1999/xhtml">
    88<head>
    9      <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>
     9     <title><?php printf( _c('%1$s - Comments on %2$s|1: blog name, 2: title'), get_option('blogname'), get_the_title() ); ?></title>
    1010
    1111        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    1212        <style type="text/css" media="screen">
     
    1919
    2020<h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1>
    2121
    22 <h2 id="comments">Comments</h2>
     22<h2 id="comments"><?php _e("Comments"); ?></h2>
    2323
    24 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>
     24<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></a></p>
    2525
    2626<?php if ('open' == $post->ping_status) { ?>
    27 <p>The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>
     27<p><?php _e('The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is:'); ?> <em><?php trackback_url() ?></em></p>
    2828<?php } ?>
    2929
    3030<?php
     
    4242<?php foreach ($comments as $comment) { ?>
    4343        <li id="comment-<?php comment_ID() ?>">
    4444        <?php comment_text() ?>
    45         <p><cite><?php comment_type('Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
     45        <p><cite><?php comment_type( __('Comment'), __('Trackback'), __('Pingback') ); ?> <?php printf( _c('by %1$s &#8212; %2$s @ %3$s|1: author, 2: date, 3: time&link'), get_comment_author_link(), get_comment_date(), '<a href="#comment-' . get_comment_ID() . '">' . get_comment_time() . '</a>' ); ?></cite></p>
    4646        </li>
    4747
    4848<?php } // end for each comment ?>
    4949</ol>
    5050<?php } else { // this is displayed if there are no comments so far ?>
    51         <p>No comments yet.</p>
     51        <p><?php _e("No comments yet."); ?></p>
    5252<?php } ?>
    5353
    5454<?php if ('open' == $post->comment_status) { ?>
    55 <h2>Leave a comment</h2>
    56 <p>Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p>
     55<h2><?php _e("Leave a comment"); ?></h2>
     56<p><?php _e('Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed:' ); ?> <code><?php echo allowed_tags(); ?></code></p>
    5757
    5858<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    5959<?php if ( $user_ID ) : ?>
    60         <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log out &raquo;</a></p>
     60        <p><?php printf( _c('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out &raquo;</a>|1: profile URL, 2: user name, 3: logout URL'), get_option('siteurl') . "/wp-admin/profile.php", $user_identity, get_option('siteurl') . "/wp-login.php?action=logout" ); ?></p>
    6161<?php else : ?>
    6262        <p>
    6363          <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
    64            <label for="author">Name</label>
     64           <label for="author"><?php _e("Name"); ?></label>
    6565        <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    6666        <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" />
    6767        </p>
    6868
    6969        <p>
    7070          <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
    71            <label for="email">E-mail</label>
     71           <label for="email"><?php _e("E-mail"); ?></label>
    7272        </p>
    7373
    7474        <p>
    7575          <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
    76            <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label>
     76           <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label>
    7777        </p>
    7878<?php endif; ?>
    7979
    8080        <p>
    81           <label for="comment">Your Comment</label>
     81          <label for="comment"><?php _e("Your Comment"); ?></label>
    8282        <br />
    8383          <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
    8484        </p>
    8585
    8686        <p>
    87           <input name="submit" type="submit" tabindex="5" value="Say It!" />
     87          <input name="submit" type="submit" tabindex="5" value="<?php _e('Say It!'); ?>" />
    8888        </p>
    8989        <?php do_action('comment_form', $post->ID); ?>
    9090</form>
    9191<?php } else { // comments are closed ?>
    92 <p>Sorry, the comment form is closed at this time.</p>
     92<p><?php _e("Sorry, the comment form is closed at this time."); ?></p>
    9393<?php }
    9494} // end password check
    9595?>
    9696
    97 <div><strong><a href="javascript:window.close()">Close this window.</a></strong></div>
     97<div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div>
    9898
    9999<?php // if you delete this the sky will fall on your head
    100100endwhile;
     
    102102
    103103<!-- // this is just the end of the motor - don't touch that line either :) -->
    104104<?php //} ?>
    105 <p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>
     105<p class="credit"><?php timer_stop(1); ?> <cite><?php printf( __("Powered by %s"), '<a href="http://wordpress.org/" title="' . __('Powered by WordPress, state-of-the-art semantic personal publishing platform.') . '"><strong>WordPress</strong></a>' ); ?></cite></p>
    106106<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
    107107<script type="text/javascript">
    108108<!--