Make WordPress Core

Changeset 1080


Ignore:
Timestamp:
04/16/2004 01:56:04 AM (21 years ago)
Author:
rboren
Message:

gettext l10n.

Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r1067 r1080  
    4242<div class="post">
    4343     <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() ?> &#8212; <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
     44    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> &#8212; <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
    4545   
    4646    <div class="storycontent">
     
    4949   
    5050    <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 (%)")); ?>
    5353    </div>
    5454   
     
    6161
    6262<?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>
    6464<?php } ?>
    6565</div>
     
    7171<ul>
    7272    <?php get_links_list(); ?>
    73  <li id="categories"><?php $lang->str('categories'); ?>
     73 <li id="categories"><?php _e("Categories:"); ?>
    7474    <ul>
    7575    <?php wp_list_cats(); ?>
     
    7777 </li>
    7878 <li id="search">
    79    <label for="s"><?php $lang->str('search'); ?></label>   
     79   <label for="s"><?php _e("Search:"); ?></label>   
    8080   <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
    8181    <div>
    8282        <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"); ?>" />
    8484    </div>
    8585    </form>
    8686 </li>
    87  <li id="archives"><?php $lang->str('archives'); ?>
     87 <li id="archives"><?php _e("Archives"); ?>
    8888    <ul>
    8989     <?php get_archives('monthly'); ?>
     
    9393    <?php get_calendar(); ?>
    9494 </li>
    95  <li id="other"><?php $lang->str('other'); ?>
     95 <li id="other"><?php _e("Other:"); ?>
    9696    <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>
    9999    </ul>
    100100 </li>
    101  <li id="meta"><?php $lang->str('meta'); ?>
     101 <li id="meta"><?php _e("Meta:"); ?>
    102102    <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>
    107108    </ul>
    108109 </li>
     
    114115</div>
    115116
    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")); ?>
    117118</body>
    118119</html>
  • trunk/wp-comments-popup.php

    r1067 r1080  
    99<html xmlns="http://www.w3.org/1999/xhtml">
    1010<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>
    1212
    1313    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
     
    2222<h1 id="header"><a href="" title="<?php echo get_settings('blogname'); ?>"><?php echo get_settings('blogname'); ?></a></h1>
    2323
    24 <h2 id="comments"><?php $lang->str('comments'); ?></h2>
     24<h2 id="comments"><?php _e("Comments"); ?></h2>
    2525
    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>
    2727
    2828<?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>
    3030<?php } ?>
    3131
     
    4646    <li id="comment-<?php comment_ID() ?>">
    4747    <?php comment_text() ?>
    48     <p><cite><?php comment_type(); ?> <?php $lang->str('by'); ?> <?php comment_author_link() ?> &#8212; <?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() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
    4949    </li>
    5050
     
    5252</ol>
    5353<?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>
    5555<?php } ?>
    5656
    5757<?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>
    6060
    6161<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    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"><?php $lang->str('comment_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 htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
     
    6969    <p>
    7070      <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>
    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"><?php $lang->str('comment_uri'); ?></label>
     76       <label for="url"><?php _e("<acronym title=\"Uniform Resource Identifier\">URI</acronym>"); ?></label>
    7777    </p>
    7878
    7979    <p>
    80       <label for="comment"><?php $lang->str('comment_body'); ?></label>
     80      <label for="comment"><?php _e("Your Comment"); ?></label>
    8181    <br />
    8282      <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
     
    8484
    8585    <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!"); ?>" />
    8787    </p>
    8888</form>
    8989<?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>
    9191<?php }
    9292} // end password check
    9393?>
    9494
    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>
    9696
    9797<?php // if you delete this the sky will fall on your head
     
    101101<!-- // this is just the end of the motor - don't touch that line either :) -->
    102102<?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>
    104104<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
    105105<script type="text/javascript">
  • trunk/wp-comments.php

    r1066 r1080  
    77            if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) {  // and it doesn't match the cookie
    88?>
    9 <p><?php $lang->str('comments_password'); ?><p>
     9<p><?php e_("Enter your password to view comments."); ?><p>
    1010<?php
    1111                return;
     
    2222<!-- You can start editing here. -->
    2323
    24 <h2 id="comments"><?php comments_number($lang->str('comments','',1)); ?>
     24<h2 id="comments"><?php comments_number(__("Comments")); ?>
    2525<?php if ('open' == $post->comment_status) { ?>
    26 <a href="#postcomment" title="<?php $lang->str('leave_a_comment'); ?>">&raquo;</a>
     26<a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a>
    2727<?php } ?>
    2828</h2>
    2929<?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>
    3131<?php } ?>
    3232
     
    3737    <li id="comment-<?php comment_ID() ?>">
    3838    <?php comment_text() ?>
    39     <p><cite><?php comment_type(); ?> <?php $lang->str('by'); ?> <?php comment_author_link() ?> &#8212; <?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() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
    4040    </li>
    4141
     
    4343</ol>
    4444<?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>
    4646<?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>
    4949<?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>
    5151
    5252<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    5353    <p>
    5454      <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>
    5656    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    5757    <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
     
    6060    <p>
    6161      <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>
    6363    </p>
    6464
    6565    <p>
    6666      <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>
    6868    </p>
    6969
    7070    <p>
    71       <label for="comment"><?php $lang->str('comment_body'); ?></label>
     71      <label for="comment"><?php _e("Your Comment"); ?></label>
    7272    <br />
    7373      <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
     
    7575
    7676    <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!"); ?>" />
    7878    </p>
    7979</form>
    8080<?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>
    8282<?php } ?>
    8383
  • trunk/wp-settings.php

    r1065 r1080  
    4343require_once (ABSPATH . WPINC . '/links.php');
    4444require_once (ABSPATH . WPINC . '/kses.php');
    45 require_once (ABSPATH . WPINC . '/class-language.php');
     45require_once (ABSPATH . WPINC . '/wp-l10n.php');
    4646
    4747//setup the old globals from b2config.php
     
    7777    }
    7878}
    79 
    80 // temporarily hardcoded, AK
    81 
    82 require_once (ABSPATH . WPINC . '/languages/english.php');
    83 
    8479?>
Note: See TracChangeset for help on using the changeset viewer.