Ticket #4059: Kubrick-L10N.diff
File Kubrick-L10N.diff, 42.3 KB (added by , 17 years ago) |
---|
-
404.php
2 2 3 3 <div id="content" class="narrowcolumn"> 4 4 5 <h2 class="center"> Error 404 - Not Found</h2>5 <h2 class="center"><?php _e('Error 404 - Not Found', 'kubrick'); ?></h2> 6 6 7 7 </div> 8 8 -
archive.php
2 2 3 3 <div id="content" class="narrowcolumn"> 4 4 <?php is_tag(); ?> 5 <?php if (have_posts()) : ?>6 5 7 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> 8 <?php /* If this is a category archive */ if (is_category()) { ?> 9 <h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h2> 10 <?php } elseif( is_tag() ) { ?> 11 <h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Tag</h2> 12 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 13 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> 6 <?php if (have_posts()) : ?> 7 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> 14 8 15 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>16 <h2 class="pagetitle"> Archive for <?php the_time('F, Y'); ?></h2>9 <?php /* If this is a category archive */ if (is_category()) { ?> 10 <h2 class="pagetitle"><?php printf(__("Archive for the '%s' category", 'kubrick'), single_cat_title('', false)); ?></h2> 17 11 18 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>19 <h2 class="pagetitle"> Archive for <?php the_time('Y'); ?></h2>12 <?php } elseif( is_tag() ) { ?> 13 <h2 class="pagetitle"><?php printf(__("Archive for the '%s' tag", 'kubrick'), single_cat_title()); ?></h2> 20 14 21 <?php /* If this is an author archive */ } elseif (is_author()) { ?>22 <h2 class="pagetitle"> Author Archive</h2>15 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 16 <h2 class="pagetitle"><?php printf(__("Archive for the day %s", 'kubrick'), get_the_time(__('F jS, Y', 'kubrick'))); ?></h2> 23 17 24 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>25 <h2 class="pagetitle"> Blog Archives</h2>18 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 19 <h2 class="pagetitle"><?php printf(__("Archive for the month %s", 'kubrick'), get_the_time(__('F, Y', 'kubrick'))); ?></h2> 26 20 27 <?php } ?> 21 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 22 <h2 class="pagetitle"><?php printf(__("Archive for the year %s", 'kubrick'), get_the_time(__('Y', 'kubrick'))); ?></h2> 28 23 24 <?php /* If this is a search */ } elseif (is_search()) { ?> 25 <h2 class="pagetitle"><?php _e("Search Results", 'kubrick'); ?></h2> 29 26 27 <?php /* If this is an author archive */ } elseif (is_author()) { ?> 28 <h2 class="pagetitle"><?php _e("Author Archive", 'kubrick'); ?></h2> 29 30 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 31 <h2 class="pagetitle"><?php _e("Blog Archives", 'kubrick'); ?></h2> 32 33 <?php } ?> 34 35 30 36 <div class="navigation"> 31 <div class="alignleft"><?php next_posts_link( '« Previous Entries') ?></div>32 <div class="alignright"><?php previous_posts_link( 'Next Entries »') ?></div>37 <div class="alignleft"><?php next_posts_link(__('« Previous Entries', 'kubrick')) ?></div> 38 <div class="alignright"><?php previous_posts_link(__('Next Entries »', 'kubrick')) ?></div> 33 39 </div> 34 40 35 41 <?php while (have_posts()) : the_post(); ?> 36 42 <div class="post"> 37 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title=" Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>38 <small><?php the_time( 'l, F jS, Y') ?></small>43 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title('','',false)); ?>"><?php the_title(); ?></a></h3> 44 <small><?php the_time(__('l, F jS, Y', 'kubrick')) ?></small> 39 45 40 46 <div class="entry"> 41 47 <?php the_content() ?> 42 48 </div> 43 49 44 <p class="postmetadata"><?php the_tags( 'Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>50 <p class="postmetadata"><?php the_tags(__('Tags: ', 'kubrick'), ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick')); ?></p> 45 51 46 52 </div> 47 53 48 54 <?php endwhile; ?> 49 55 50 56 <div class="navigation"> 51 <div class="alignleft"><?php next_posts_link( '« Previous Entries') ?></div>52 <div class="alignright"><?php previous_posts_link( 'Next Entries »') ?></div>57 <div class="alignleft"><?php next_posts_link(__('« Previous Entries', 'kubrick')) ?></div> 58 <div class="alignright"><?php previous_posts_link(__('Next Entries »', 'kubrick')) ?></div> 53 59 </div> 54 60 55 61 <?php else : ?> 56 62 57 <h2 class="center"> Not Found</h2>63 <h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2> 58 64 <?php include (TEMPLATEPATH . '/searchform.php'); ?> 59 65 60 66 <?php endif; ?> … … 63 69 64 70 <?php get_sidebar(); ?> 65 71 66 <?php get_footer(); ?> 72 <?php get_footer(); ?> 73 No newline at end of file -
archives.php
8 8 9 9 <div id="content" class="widecolumn"> 10 10 11 <?php include (TEMPLATEPATH . '/searchform.php'); ?>11 <?php include (TEMPLATEPATH . '/searchform.php'); ?> 12 12 13 <h2>Archives by Month:</h2>14 <ul>15 16 </ul>13 <h2><?php _e("Archives by Month:", 'kubrick'); ?></h2> 14 <ul> 15 <?php wp_get_archives('type=monthly'); ?> 16 </ul> 17 17 18 <h2>Archives by Subject:</h2>19 <ul>20 21 </ul>18 <h2><?php _e("Archives by Subject:", 'kubrick'); ?></h2> 19 <ul> 20 <?php wp_list_categories(); ?> 21 </ul> 22 22 23 23 </div> 24 24 -
attachment.php
2 2 3 3 <div id="content" class="widecolumn"> 4 4 5 5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 6 6 7 7 <div class="navigation"> 8 8 <div class="alignleft"> </div> 9 9 <div class="alignright"> </div> 10 10 </div> 11 11 12 <?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?> 12 13 <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?> 14 13 15 <div class="post" id="post-<?php the_ID(); ?>"> 14 16 <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2> 17 15 18 <div class="entry"> 16 19 <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p> 17 20 18 <?php the_content('<p class="serif"> Read the rest of this entry »</p>'); ?>21 <?php the_content('<p class="serif">' . __('Read the rest of this entry »', 'kubrick') . '</p>'); ?> 19 22 20 <?php wp_link_pages(array('before' => '<p><strong> Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>23 <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 21 24 22 25 <p class="postmetadata alt"> 23 26 <small> 24 This entry was posted 25 <?php /* This is commented, because it requires a little adjusting sometimes. 26 You'll need to download this plugin, and follow the instructions: 27 http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */ 28 /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> 29 on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> 30 and is filed under <?php the_category(', ') ?>. 31 You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 27 <?php printf(__('This entry was posted on %s at %s and is filed under %s.', 'kubrick'), get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', '));?> 28 <?php printf(__('You can follow any responses to this entry through the %s feed.', 'kubrick'), '<a href="' . comments_rss('') . '">' . __('RSS 2.0', 'kubrick') . '</a>'); ?> 32 29 33 30 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 34 // Both Comments and Pings are open ?>35 You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.31 // Both Comments and Pings are open 32 printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); 36 33 37 <?php} elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {38 // Only Pings are Open ?>39 Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.34 } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 35 // Only Pings are Open 36 printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); 40 37 41 <?php} elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {42 // Comments are open, Pings are not ?>43 You can skip to the end and leave a response. Pinging is currently not allowed.38 } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 39 // Comments are open, Pings are not 40 _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'kubrick'); 44 41 45 <?php} elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {46 // Neither Comments, nor Pings are open ?>47 Both comments and pings are currently closed.42 } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 43 // Neither Comments, nor Pings are open 44 _e('Both comments and pings are currently closed.', 'kubrick'); 48 45 49 <?php } edit_post_link('Edit this entry.','',''); ?>46 } edit_post_link(__('Edit this entry.', 'kubrick'), '', ''); ?> 50 47 51 48 </small> 52 49 </p> … … 58 55 59 56 <?php endwhile; else: ?> 60 57 61 <p> Sorry, no attachments matched your criteria.</p>58 <p><?php _e('Sorry, no attachments matched your criteria.', 'kubrick'); ?></p> 62 59 63 60 <?php endif; ?> 64 61 -
comments-popup.php
4 4 while ( have_posts()) : the_post(); 5 5 ?> 6 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 7 <html xmlns="http://www.w3.org/1999/xhtml" >7 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 8 8 <head> 9 <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>9 <title><?php printf(__('%1$s - Comments on %2$s', 'kubrick'), get_option('blogname'), the_title('', '', false)); ?></title> 10 10 11 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 12 12 <style type="text/css" media="screen"> … … 19 19 20 20 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> 21 21 22 <h2 id="comments"> Comments</h2>22 <h2 id="comments"><?php _e('Comments', 'kubrick'); ?></h2> 23 23 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.', 'kubrick'); ?></a></p> 25 25 26 26 <?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 printf(__('The <acronym title="Uniform Resource Identifier">URI</acronym> to TrackBack this entry is: <em>%s</em>', 'kubrick'), trackback_url(false)); ?></p> 28 28 <?php } ?> 29 29 30 30 <?php … … 42 42 <?php foreach ($comments as $comment) { ?> 43 43 <li id="comment-<?php comment_ID() ?>"> 44 44 <?php comment_text() ?> 45 <p><cite><?php comment_type( 'Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>45 <p><cite><?php comment_type(__('Comment', 'kubrick'), __('Trackback', 'kubrick'), __('Pingback', 'kubrick')); ?> by <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p> 46 46 </li> 47 47 48 48 <?php } // end for each comment ?> 49 49 </ol> 50 50 <?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.', 'kubrick'); ?></p> 52 52 <?php } ?> 53 53 54 54 <?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', 'kubrick'); ?></h2> 56 <p><?php _e('Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed:', 'kubrick'); ?> <code><?php echo allowed_tags(); ?></code></p> 57 57 58 58 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 59 <?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">Logout »</a></p>61 <?php else : ?> 59 <?php if ( $user_ID ) : ?> 60 <p><?php printf(__('Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Logout »</a>', 'kubrick'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity, get_option('siteurl') . '/wp-login.php?action=logout'); ?></p> 61 <?php else : ?> 62 62 <p> 63 63 <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', 'kubrick'); ?></label> 65 65 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 66 66 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" /> 67 67 </p> 68 68 69 69 <p> 70 70 <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', 'kubrick'); ?></label> 72 72 </p> 73 73 74 74 <p> 75 75 <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>', 'kubrick'); ?></label> 77 77 </p> 78 78 <?php endif; ?> 79 79 80 80 <p> 81 <label for="comment"> Your Comment</label>81 <label for="comment"><?php _e('Your Comment', 'kubrick'); ?></label> 82 82 <br /> 83 83 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> 84 84 </p> 85 85 86 86 <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!', 'kubrick'); ?>" /> 88 88 </p> 89 89 <?php do_action('comment_form', $post->ID); ?> 90 90 </form> 91 91 <?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.', 'kubrick'); ?></p> 93 93 <?php } 94 94 } // end password check 95 95 ?> 96 96 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.', 'kubrick'); ?></a></strong></div> 98 98 99 99 <?php // if you delete this the sky will fall on your head 100 100 endwhile; … … 102 102 103 103 <!-- // this is just the end of the motor - don't touch that line either :) --> 104 104 <?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 _e('Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>Wordpress</strong></a>', 'kubrick'); ?></cite></p> 106 106 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> 107 107 <script type="text/javascript"> 108 108 <!-- -
comments.php
1 1 <?php // Do not delete these lines 2 2 if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) 3 die ('Please do not load this page directly. Thanks!');3 wp_die(__('Please do not load this page directly. Thanks!', 'kubrick')); 4 4 5 6 7 ?>5 if (!empty($post->post_password)) { // if there's a password 6 if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie 7 ?> 8 8 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.', 'kubrick'); ?><p> 10 10 11 <?php12 return;13 14 11 <?php 12 return; 13 } 14 } 15 15 16 16 /* This variable is for alternating comment background */ 17 17 $oddcomment = 'class="alt" '; … … 20 20 <!-- You can start editing here. --> 21 21 22 22 <?php if ($comments) : ?> 23 <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>23 <h3 id="comments"><?php printf(__('%1$s to “%2$s”', 'kubrick'), comments_number(__('No Responses', 'kubrick'), __('One Response', 'kubrick'), __('% Responses', 'kubrick')), the_title('', '', false)); ?></h3> 24 24 25 25 <ol class="commentlist"> 26 26 27 27 <?php foreach ($comments as $comment) : ?> 28 28 29 29 <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> 30 <cite><?php comment_author_link() ?></cite> Says:30 <cite><?php comment_author_link() ?></cite> <?php _e('Says:', 'kubrick'); ?> 31 31 <?php if ($comment->comment_approved == '0') : ?> 32 <em> Your comment is awaiting moderation.</em>32 <em><?php _e('Your comment is awaiting moderation.', 'kubrick'); ?></em> 33 33 <?php endif; ?> 34 34 <br /> 35 35 36 <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('e','',''); ?></small>36 <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php printf(__('%s at %s', 'kubrick'), get_comment_date(__('F jS, Y', 'kubrick')), get_comment_time()); ?></a> <?php edit_comment_link(__('Edit comment', 'kubrick'),'',''); ?></small> 37 37 38 38 <?php comment_text() ?> 39 39 … … 55 55 56 56 <?php else : // comments are closed ?> 57 57 <!-- If comments are closed. --> 58 <p class="nocomments"> Comments are closed.</p>58 <p class="nocomments"><?php _e('Comments are closed.', 'kubrick') ?></p> 59 59 60 60 <?php endif; ?> 61 61 <?php endif; ?> … … 63 63 64 64 <?php if ('open' == $post->comment_status) : ?> 65 65 66 <h3 id="respond"> Leave a Reply</h3>66 <h3 id="respond"><?php _e('Leave a Reply', 'kubrick'); ?></h3> 67 67 68 68 <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 69 <p> You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>69 <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'kubrick'), get_option('siteurl') . '/wp-login.php?redirect_to=' . get_permalink()); ?></p> 70 70 <?php else : ?> 71 71 72 72 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 73 73 74 74 <?php if ( $user_ID ) : ?> 75 76 <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">Logout »</a></p> 77 75 <p><?php printf(__('Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Logout »</a>', 'kubrick'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity, get_option('siteurl') . '/wp-login.php?action=logout'); ?></p> 78 76 <?php else : ?> 79 77 80 78 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> 81 <label for="author"><small> Name <?php if ($req) echo "(required)"; ?></small></label></p>79 <label for="author"><small><?php _e('Name', 'kubrick'); ?> <?php if ($req) _e('(required)', 'kubrick'); ?></small></label></p> 82 80 83 81 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> 84 <label for="email"><small> Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>82 <label for="email"><small><?php _e('Mail (will not be published)', 'kubrick'); ?> <?php if ($req) _e('(required)', 'kubrick'); ?></small></label></p> 85 83 86 84 <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> 87 <label for="url"><small> Website</small></label></p>85 <label for="url"><small><?php _e('Website', 'kubrick'); ?></small></label></p> 88 86 89 87 <?php endif; ?> 90 88 91 <!--<p><small>< strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->89 <!--<p><small><?php _e('<strong>XHTML:</strong> You can use these tags:', 'kubrick'); ?> <?php echo allowed_tags(); ?></small></p>--> 92 90 93 91 <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> 94 92 95 <p><input name="submit" type="submit" id="submit" tabindex="5" value=" Submit Comment" />93 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'kubrick'); ?>" /> 96 94 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 97 95 </p> 98 96 <?php do_action('comment_form', $post->ID); ?> -
footer.php
3 3 <div id="footer"> 4 4 <!-- If you'd like to support WordPress, having the "powered by" link someone on your blog is the best way, it's our only promotion or advertising. --> 5 5 <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>. 10 <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> 6 <?php printf(__('%s is proudly powered by <a href="http://wordpress.org/">WordPress</a>', 'kubrick'), get_bloginfo('name')); ?> 7 <br /><?php printf(__('<a href="feed:%s">Entries (RSS)</a> and <a href="feed:%s">Comments (RSS)</a>.', 'kubrick'), get_bloginfo('rss2_url'), get_bloginfo('comments_rss2_url')); ?> 8 <!-- <?php printf(__('%s queries. %s seconds.', 'kubrick'), get_num_queries(), timer_stop(0)); ?> --> 11 9 </p> 12 10 </div> 13 11 </div> -
functions.php
7 7 'after_title' => '</h2>', 8 8 )); 9 9 10 load_theme_textdomain('kubrick'); 11 10 12 function kubrick_head() { 11 13 $head = "<style type='text/css'>\n<!--"; 12 14 $output = ''; -
header.php
4 4 <head profile="http://gmpg.org/xfn/11"> 5 5 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 6 6 7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive<?php } ?> <?php wp_title(); ?></title>7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » <?php _e('Blog Archive', 'kubrick'); ?> <?php } ?> <?php wp_title(); ?></title> 8 8 9 9 <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> 10 10 -
index.php
7 7 <?php while (have_posts()) : the_post(); ?> 8 8 9 9 <div class="post" id="post-<?php the_ID(); ?>"> 10 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title=" Permanent Link to <?php the_title(); ?>"><?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', 'kubrick'), the_title('', '', false)); ?>"><?php the_title(); ?></a></h2> 11 <small><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- <?php printf(__('by %s', 'kubrick'), get_the_author()); ?> --></small> 12 12 13 13 <div class="entry"> 14 <?php the_content( 'Read the rest of this entry »'); ?>14 <?php the_content(__('Read the rest of this entry »', 'kubrick')); ?> 15 15 </div> 16 16 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 »', '1 Comment »', '% Comments »'); ?></p>17 <p class="postmetadata"><?php the_tags(__('Tags: '), ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick')); ?></p> 18 18 </div> 19 19 20 20 <?php endwhile; ?> 21 21 22 22 <div class="navigation"> 23 <div class="alignleft"><?php next_posts_link( '« Previous Entries') ?></div>24 <div class="alignright"><?php previous_posts_link( 'Next Entries »') ?></div>23 <div class="alignleft"><?php next_posts_link(__('« Previous Entries', 'kubrick')) ?></div> 24 <div class="alignright"><?php previous_posts_link(__('Next Entries »', 'kubrick')) ?></div> 25 25 </div> 26 26 27 27 <?php else : ?> 28 28 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", 'kubrick'); ?></h2> 30 <p class="center"><?php _e("Sorry, but you are looking for something that isn't here.", 'kubrick'); ?></p> 31 31 <?php include (TEMPLATEPATH . "/searchform.php"); ?> 32 32 33 33 <?php endif; ?> -
links.php
8 8 9 9 <div id="content" class="widecolumn"> 10 10 11 <h2>Links:</h2>12 <ul>13 <?php get_links_list(); ?>14 </ul>11 <h2><?php _e('Links:', 'kubrick'); ?></h2> 12 <ul> 13 <?php get_links_list(); ?> 14 </ul> 15 15 16 16 </div> 17 17 -
page.php
2 2 3 3 <div id="content" class="narrowcolumn"> 4 4 5 5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 6 6 <div class="post" id="post-<?php the_ID(); ?>"> 7 7 <h2><?php the_title(); ?></h2> 8 8 <div class="entry"> 9 <?php the_content('<p class="serif"> Read the rest of this page»</p>'); ?>9 <?php the_content('<p class="serif">' . __('Read the rest of this page', 'kubrick') . ' »</p>'); ?> 10 10 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', 'kubrick') . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 12 12 13 13 </div> 14 14 </div> 15 <?php endwhile; endif; ?> 16 <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> 15 <?php endwhile; endif; ?> 16 <?php edit_post_link(__('Edit this entry.', 'kubrick'), '<p>', '</p>'); ?> 17 17 18 </div> 18 19 19 20 <?php get_sidebar(); ?> -
search.php
4 4 5 5 <?php if (have_posts()) : ?> 6 6 7 <h2 class="pagetitle"> Search Results</h2>7 <h2 class="pagetitle"><?php _e('Search Results', 'kubrick'); ?></h2> 8 8 9 9 <div class="navigation"> 10 <div class="alignleft"><?php next_posts_link( '« Previous Entries') ?></div>11 <div class="alignright"><?php previous_posts_link( 'Next Entries »') ?></div>10 <div class="alignleft"><?php next_posts_link(__('« Previous Entries', 'kubrick')) ?></div> 11 <div class="alignright"><?php previous_posts_link(__('Next Entries »', 'kubrick')) ?></div> 12 12 </div> 13 13 14 14 15 15 <?php while (have_posts()) : the_post(); ?> 16 16 17 17 <div class="post"> 18 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title=" Permanent Link to <?php the_title(); ?>"><?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', 'kubrick'), the_title('', '', false)); ?>"><?php the_title(); ?></a></h3> 19 <small><?php the_time(__('l, F jS, Y', 'kubrick')) ?></small> 20 20 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 »', '1 Comment »', '% Comments »'); ?></p>21 <p class="postmetadata"><?php the_tags(__('Tags: ', 'kubrick'), ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick')); ?></p> 22 22 </div> 23 23 24 24 <?php endwhile; ?> 25 25 26 26 <div class="navigation"> 27 <div class="alignleft"><?php next_posts_link( '« Previous Entries') ?></div>28 <div class="alignright"><?php previous_posts_link( 'Next Entries »') ?></div>27 <div class="alignleft"><?php next_posts_link(__('« Previous Entries', 'kubrick')) ?></div> 28 <div class="alignright"><?php previous_posts_link(__('Next Entries »', 'kubrick')) ?></div> 29 29 </div> 30 30 31 31 <?php else : ?> 32 32 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?', 'kubrick'); ?></h2> 34 34 <?php include (TEMPLATEPATH . '/searchform.php'); ?> 35 35 36 36 <?php endif; ?> -
searchform.php
1 1 <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/"> 2 2 <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> 3 <input type="submit" id="searchsubmit" value=" Search" />3 <input type="submit" id="searchsubmit" value="<?php _e('Search', 'kubrick'); ?>" /> 4 4 </div> 5 5 </form> -
sidebar.php
7 7 </li> 8 8 9 9 <!-- 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', 'kubrick'); ?></h2> 11 11 <p>A little something about you, the author. Nothing lengthy, just an overview.</p> 12 12 </li> 13 13 --> … … 18 18 19 19 <?php /* If this is a 404 page */ if (is_404()) { ?> 20 20 <?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.', 'kubrick'), single_cat_title('', false)); ?></p> 22 22 23 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> weblog archives25 for the day <?php the_time('l, F jS, Y'); ?>.</p>24 <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives 25 for the day %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p> 26 26 27 27 <?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> weblog archives29 for <?php the_time('F, Y'); ?>.</p>28 <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives 29 for the month %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p> 30 30 31 31 <?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> weblog archives33 for the year <?php the_time('Y'); ?>.</p>32 <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives 33 for the year %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('Y', 'kubrick'))); ?></p> 34 34 35 35 <?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> weblog archives37 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>36 <p><?php printf(__('You have searched the <a href="%s">%s</a> weblog archives 37 for <strong>'%s'</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), the_search_query()); ?></p> 38 38 39 39 <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 40 <p> You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>40 <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p> 41 41 42 42 <?php } ?> 43 43 44 44 </li> <?php }?> 45 45 46 <?php wp_list_pages('title_li=<h2> Pages</h2>' ); ?>46 <?php wp_list_pages('title_li=<h2>' . __('Pages', 'kubrick') . '</h2>' ); ?> 47 47 48 <li><h2> Archives</h2>48 <li><h2><?php _e('Archives', 'kubrick'); ?></h2> 49 49 <ul> 50 50 <?php wp_get_archives('type=monthly'); ?> 51 51 </ul> 52 52 </li> 53 53 54 <?php wp_list_categories('show_count=1&title_li=<h2> Categories</h2>'); ?>54 <?php wp_list_categories('show_count=1&title_li=<h2>' . __('Categories', 'kubrick') . '</h2>'); ?> 55 55 56 56 <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> 57 57 <?php wp_list_bookmarks(); ?> 58 58 59 <li><h2> Meta</h2>59 <li><h2><?php _e('Meta', 'kubrick'); ?></h2> 60 60 <ul> 61 61 <?php wp_register(); ?> 62 62 <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>64 <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>63 <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional', 'kubrick'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>', 'kubrick'); ?></a></li> 64 <li><a href="http://gmpg.org/xfn/"><?php _e('<abbr title="XHTML Friends Network">XFN</abbr>', 'kubrick'); ?></a></li> 65 <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'kubrick'); ?>"><?php _e('WordPress', 'kubrick'); ?></a></li> 66 66 <?php wp_meta(); ?> 67 67 </ul> 68 68 </li> -
single.php
5 5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 6 6 7 7 <div class="navigation"> 8 <div class="alignleft"><?php previous_post_link( '« %link') ?></div>9 <div class="alignright"><?php next_post_link( '%link »') ?></div>8 <div class="alignleft"><?php previous_post_link(__('« %link', 'kubrick')) ?></div> 9 <div class="alignright"><?php next_post_link(__('%link »', 'kubrick')) ?></div> 10 10 </div> 11 11 12 12 <div class="post" id="post-<?php the_ID(); ?>"> 13 <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title=" Permanent Link: <?phpthe_title(); ?>"><?php the_title(); ?></a></h2>13 <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php __('Permanent Link:', 'kubrick') . ' ' . the_title(); ?>"><?php the_title(); ?></a></h2> 14 14 15 15 <div class="entry"> 16 <?php the_content('<p class="serif"> Read the rest of this entry »</p>'); ?>16 <?php the_content('<p class="serif">' . __('Read the rest of this entry »', 'kubrick') . '</p>'); ?> 17 17 18 <?php wp_link_pages(array('before' => '<p><strong> Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>18 <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 19 19 <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?> 20 20 21 21 <p class="postmetadata alt"> 22 22 <small> 23 This entry was posted 24 <?php /* This is commented, because it requires a little adjusting sometimes. 25 You'll need to download this plugin, and follow the instructions: 26 http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */ 27 /* $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 comments_rss_link('RSS 2.0'); ?> feed. 23 <?php printf(__('This entry was posted on %s at %s and is filed under %s.', 'kubrick'), get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', '));?> 24 <?php printf(__('You can follow any responses to this entry through the %s feed.', 'kubrick'), '<a href="' . comments_rss('') . '">' . __('RSS 2.0', 'kubrick') . '</a>'); ?> 31 25 32 26 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 33 // Both Comments and Pings are open ?>34 You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.27 // Both Comments and Pings are open 28 printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); 35 29 36 <?php} elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {37 // Only Pings are Open ?>38 Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.30 } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 31 // Only Pings are Open 32 printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); 39 33 40 <?php} elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {41 // Comments are open, Pings are not ?>42 You can skip to the end and leave a response. Pinging is currently not allowed.34 } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 35 // Comments are open, Pings are not 36 _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'kubrick'); 43 37 44 <?php} elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {45 // Neither Comments, nor Pings are open ?>46 Both comments and pings are currently closed.38 } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 39 // Neither Comments, nor Pings are open 40 _e('Both comments and pings are currently closed.', 'kubrick'); 47 41 48 <?php } edit_post_link('Edit this entry.','',''); ?>42 } edit_post_link(__('Edit this entry.', 'kubrick'), '', ''); ?> 49 43 50 44 </small> 51 45 </p> … … 57 51 58 52 <?php endwhile; else: ?> 59 53 60 <p> Sorry, no posts matched your criteria.</p>54 <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p> 61 55 62 56 <?php endif; ?> 63 57