Changeset 1080
- Timestamp:
- 04/16/2004 01:56:04 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r1067 r1080 42 42 <div class="post"> 43 43 <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3> 44 <div class="meta"><?php $lang->str('filed_under'); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>44 <div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div> 45 45 46 46 <div class="storycontent"> … … 49 49 50 50 <div class="feedback"> 51 <?php link_pages('<br />'.$lang->str('pages','',1).' ', '<br />', 'number'); ?> 52 <?php comments_popup_link($lang->str('comment_count_0','',1), $lang->str('comment_count_1','',1), $lang->str('comment_count_n','',1)); ?> 51 <?php link_pages('<br />'. __("Pages:").' ', '<br />', 'number'); ?> 52 <?php comments_popup_link(__("Comments (0)"), __("Comments (1)"), __("Comments (%)")); ?> 53 53 </div> 54 54 … … 61 61 62 62 <?php } } else { // end foreach, end if any posts ?> 63 <p><?php $lang->str('no_posts_matched'); ?></p>63 <p><?php _e("Sorry, no posts matched your criteria."); ?></p> 64 64 <?php } ?> 65 65 </div> … … 71 71 <ul> 72 72 <?php get_links_list(); ?> 73 <li id="categories"><?php $lang->str('categories'); ?>73 <li id="categories"><?php _e("Categories:"); ?> 74 74 <ul> 75 75 <?php wp_list_cats(); ?> … … 77 77 </li> 78 78 <li id="search"> 79 <label for="s"><?php $lang->str('search'); ?></label>79 <label for="s"><?php _e("Search:"); ?></label> 80 80 <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>"> 81 81 <div> 82 82 <input type="text" name="s" id="s" size="15" /><br /> 83 <input type="submit" name="submit" value="<?php $lang->str('search_button'); ?>" />83 <input type="submit" name="submit" value="<?php _e("search"); ?>" /> 84 84 </div> 85 85 </form> 86 86 </li> 87 <li id="archives"><?php $lang->str('archives'); ?>87 <li id="archives"><?php _e("Archives"); ?> 88 88 <ul> 89 89 <?php get_archives('monthly'); ?> … … 93 93 <?php get_calendar(); ?> 94 94 </li> 95 <li id="other"><?php $lang->str('other'); ?>95 <li id="other"><?php _e("Other:"); ?> 96 96 <ul> 97 <li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php"><?php $lang->str('login'); ?></a></li>98 <li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php"><?php $lang->str('register'); ?></a></li>97 <li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php"><?php _e("Login"); ?></a></li> 98 <li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php"><?php _e("Register"); ?></a></li> 99 99 </ul> 100 100 </li> 101 <li id="meta"><?php $lang->str('meta'); ?>101 <li id="meta"><?php _e("Meta:"); ?> 102 102 <ul> 103 <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php $lang->str('rss_2_title'); ?>"><?php $lang->str('rss_2'); ?></a></li> 104 <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php $lang->str('comments_rss_2_title'); ?>"><?php $lang->str('comments_rss_2'); ?></a></li> 105 <li><a href="http://validator.w3.org/check/referer" title="<?php $lang->str('valid_xhtml_title'); ?>"><?php $lang->str('valid_xhtml'); ?></a></li> 106 <li><a href="http://wordpress.org" title="<?php $lang->str('powered_by_title'); ?>">WP</a></li> 103 <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e("Syndicate this site using RSS"); ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> 2.0"); ?></a></li> 104 <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e("The latest comments to all posts in RSS"); ?>"><?php _e("Comments <abbr title=\"Really Simple Syndication\">RSS</abbr> 2.0"); ?></a></li> 105 <li><a href="http://validator.w3.org/check/referer" title="<?php _e("This page validates as XHTML 1.0 Transitional" 106 ); ?>"><?php _e("Valid <abbr title=\"eXtensible HyperText Markup Language\">XHTML</abbr>"); ?></a></li> 107 <li><a href="http://wordpress.org" title="<?php _e("Powered by WordPress; state-of-the-art semantic personal publishing platform."); ?>">WP</a></li> 107 108 </ul> 108 109 </li> … … 114 115 </div> 115 116 116 <p class="credit"><!--<?php echo $wpdb->querycount; ?> queries.--> <?php timer_stop(1); ?> || < ?php $lang->str('powered_by_wordpress',$lang->str('powered_by_title','',1)); ?></p>117 <p class="credit"><!--<?php echo $wpdb->querycount; ?> queries.--> <?php timer_stop(1); ?> || <cite><?php echo sprintf(__("Powered by <a href=\"http://wordpress.org\" title=\"%s\"><strong>WordPress</strong></a></cite></p>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform")); ?> 117 118 </body> 118 119 </html> -
trunk/wp-comments-popup.php
r1067 r1080 9 9 <html xmlns="http://www.w3.org/1999/xhtml"> 10 10 <head> 11 <title><?php echo get_settings('blogname'); ?> - <?php $lang->str('comments_on',the_title('','',false)); ?></title>11 <title><?php echo get_settings('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title> 12 12 13 13 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" /> … … 22 22 <h1 id="header"><a href="" title="<?php echo get_settings('blogname'); ?>"><?php echo get_settings('blogname'); ?></a></h1> 23 23 24 <h2 id="comments"><?php $lang->str('comments'); ?></h2>24 <h2 id="comments"><?php _e("Comments"); ?></h2> 25 25 26 <p><a href="<?php echo get_settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php $lang->str('comments_rss_post'); ?></a></p>26 <p><a href="<?php echo get_settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p> 27 27 28 28 <?php if ('open' == $post->ping_status) { ?> 29 <p><?php $lang->str('trackback_uri'); ?> <em><?php trackback_url() ?></em></p>29 <p><?php _e("The <acronym title=\"Uniform Resource Identifier\">URI</acronym> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p> 30 30 <?php } ?> 31 31 … … 46 46 <li id="comment-<?php comment_ID() ?>"> 47 47 <?php comment_text() ?> 48 <p><cite><?php comment_type(); ?> <?php $lang->str('by'); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>48 <p><cite><?php comment_type(); ?> <?php _e("by"); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p> 49 49 </li> 50 50 … … 52 52 </ol> 53 53 <?php } else { // this is displayed if there are no comments so far ?> 54 <p><?php $lang->str('no_comments'); ?></p>54 <p><?php _e("No comments yet."); ?></p> 55 55 <?php } ?> 56 56 57 57 <?php if ('open' == $commentstatus->comment_status) { ?> 58 <h2><?php $lang->str('leave_a_comment'); ?></h2>59 <p><?php $lang->str('comment_instructions'); ?> <code><?php echo allowed_tags(); ?></code></p>58 <h2><?php _e("Leave a comment"); ?></h2> 59 <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> 60 60 61 61 <form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 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"><?php $lang->str('comment_name'); ?></label>64 <label for="author"><?php _e("Name"); ?></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 htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" /> … … 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"><?php $lang->str('comment_email'); ?></label>71 <label for="email"><?php _e("E-mail"); ?></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"><?php $lang->str('comment_uri'); ?></label>76 <label for="url"><?php _e("<acronym title=\"Uniform Resource Identifier\">URI</acronym>"); ?></label> 77 77 </p> 78 78 79 79 <p> 80 <label for="comment"><?php $lang->str('comment_body'); ?></label>80 <label for="comment"><?php _e("Your Comment"); ?></label> 81 81 <br /> 82 82 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> … … 84 84 85 85 <p> 86 <input name="submit" type="submit" tabindex="5" value="<?php $lang->str('say_it'); ?>" />86 <input name="submit" type="submit" tabindex="5" value="<?php _e("Say It!"); ?>" /> 87 87 </p> 88 88 </form> 89 89 <?php } else { // comments are closed ?> 90 <p><?php $lang->str('comments_closed'); ?></p>90 <p><?php _e("Sorry, the comment form is closed at this time."); ?></p> 91 91 <?php } 92 92 } // end password check 93 93 ?> 94 94 95 <div><strong><a href="javascript:window.close()"><?php $lang->str('close_window'); ?></a></strong></div>95 <div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div> 96 96 97 97 <?php // if you delete this the sky will fall on your head … … 101 101 <!-- // this is just the end of the motor - don't touch that line either :) --> 102 102 <?php //} ?> 103 <p class="credit"><?php timer_stop(1); ?> <?php $lang->str('powered_by_wordpress',$lang->str('powered_by_title','',1)); ?></p>103 <p class="credit"><?php timer_stop(1); ?> <?php echo sprintf(__("<cite>Powered by <a href=\"http://wordpress.org\" title=\"%s\"><strong>Wordpress</strong></a></cite>"),__("Powered by WordPress; state-of-the-art semantic personal publishing platform.")); ?></p> 104 104 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> 105 105 <script type="text/javascript"> -
trunk/wp-comments.php
r1066 r1080 7 7 if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie 8 8 ?> 9 <p><?php $lang->str('comments_password'); ?><p>9 <p><?php e_("Enter your password to view comments."); ?><p> 10 10 <?php 11 11 return; … … 22 22 <!-- You can start editing here. --> 23 23 24 <h2 id="comments"><?php comments_number( $lang->str('comments','',1)); ?>24 <h2 id="comments"><?php comments_number(__("Comments")); ?> 25 25 <?php if ('open' == $post->comment_status) { ?> 26 <a href="#postcomment" title="<?php $lang->str('leave_a_comment'); ?>">»</a>26 <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a> 27 27 <?php } ?> 28 28 </h2> 29 29 <?php if ('open' == $post->ping_status) { ?> 30 <p><?php $lang->str('trackback_uri'); ?> <em><?php trackback_url() ?></em></p>30 <p><?php _e("The <acronym title=\"Uniform Resource Identifier\">URI</acronym> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p> 31 31 <?php } ?> 32 32 … … 37 37 <li id="comment-<?php comment_ID() ?>"> 38 38 <?php comment_text() ?> 39 <p><cite><?php comment_type(); ?> <?php $lang->str('by'); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link($lang->str('edit_this', '', 1), ' |'); ?></p>39 <p><cite><?php comment_type(); ?> <?php _e("by"); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p> 40 40 </li> 41 41 … … 43 43 </ol> 44 44 <?php } else { // this is displayed if there are no comments so far ?> 45 <p><?php $lang->str('no_comments'); ?></p>45 <p><?php _e("No comments yet."); ?></p> 46 46 <?php } ?> 47 <p><?php comments_rss_link( $lang->str('comments_rss_post', '', 1)); ?></p>48 <h2 id="postcomment"><?php $lang->str('leave_a_comment'); ?></h2>47 <p><?php comments_rss_link(__("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post.")); ?></p> 48 <h2 id="postcomment"><?php _e("Leave a comment"); ?></h2> 49 49 <?php if ('open' == $post->comment_status) { ?> 50 <p><?php $lang->str('comments_instructions'); ?> <code><?php echo allowed_tags(); ?></code></p>50 <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> 51 51 52 52 <form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 53 53 <p> 54 54 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> 55 <label for="author"><?php $lang->str('comment_name'); ?></label>55 <label for="author"><?php _e("Name"); ?></label> 56 56 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 57 57 <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" /> … … 60 60 <p> 61 61 <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" /> 62 <label for="email"><?php $lang->str('comment_email'); ?></label>62 <label for="email"><?php _e("E-mail"); ?></label> 63 63 </p> 64 64 65 65 <p> 66 66 <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /> 67 <label for="url"><?php $lang->str('comment_uri'); ?></label>67 <label for="url"><?php _e("<acronym title=\"Uniform Resource Identifier\">URI</acronym>"); ?></label> 68 68 </p> 69 69 70 70 <p> 71 <label for="comment"><?php $lang->str('comment_body'); ?></label>71 <label for="comment"><?php _e("Your Comment"); ?></label> 72 72 <br /> 73 73 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> … … 75 75 76 76 <p> 77 <input name="submit" type="submit" tabindex="5" value="<?php $lang->str('say_it'); ?>" />77 <input name="submit" type="submit" tabindex="5" value="<?php _e("Say It!"); ?>" /> 78 78 </p> 79 79 </form> 80 80 <?php } else { // comments are closed ?> 81 <p><?php $lang->str('comments_closed'); ?></p>81 <p><?php _e("Sorry, the comment form is closed at this time."); ?></p> 82 82 <?php } ?> 83 83 -
trunk/wp-settings.php
r1065 r1080 43 43 require_once (ABSPATH . WPINC . '/links.php'); 44 44 require_once (ABSPATH . WPINC . '/kses.php'); 45 require_once (ABSPATH . WPINC . '/ class-language.php');45 require_once (ABSPATH . WPINC . '/wp-l10n.php'); 46 46 47 47 //setup the old globals from b2config.php … … 77 77 } 78 78 } 79 80 // temporarily hardcoded, AK81 82 require_once (ABSPATH . WPINC . '/languages/english.php');83 84 79 ?>
Note: See TracChangeset
for help on using the changeset viewer.