Make WordPress Core

Changeset 1420


Ignore:
Timestamp:
06/13/2004 04:14:58 PM (22 years ago)
Author:
rboren
Message:

Mark some strings for translation and improve string consistency. From Albert. http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000024

Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r1398 r1420  
    101101        <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>
    102102        <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>
    103         <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress; state-of-the-art semantic personal publishing platform.'); ?>">WP</a></li>
     103        <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>">WP</a></li>
    104104    </ul>
    105105 </li>
     
    111111</div>
    112112
    113 <p class="credit"><!--<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform")); ?></cite></p>
     113<p class="credit"><!--<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></cite></p>
    114114</body>
    115115</html>
  • trunk/wp-admin/edit-comments.php

    r1411 r1420  
    3535  <input type="submit" name="submit" value="<?php _e('Search') ?>"  /> 
    3636  <input type="hidden" name="mode" value="<?php echo $mode; ?>" />
    37   <?php _e('(Searches within comment text, email, URI, and IP address.)') ?>
     37  <?php _e('(Searches within comment text, e-mail, URI, and IP address.)') ?>
    3838  </fieldset>
    3939</form>
     
    8080            }
    8181        ?>     
    82         <p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('Email:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
     82        <p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('E-mail:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
    8383       
    8484        <?php comment_text() ?>
     
    114114    <th scope="col">*</th>
    115115    <th scope="col">' .  __('Name') . '</th>
    116     <th scope="col">' .  __('Email') . '</th>
     116    <th scope="col">' .  __('E-mail') . '</th>
    117117    <th scope="col">' . __('IP') . '</th>
    118118    <th scope="col">' . __('Comment Excerpt') . '</th>
  • trunk/wp-admin/moderation.php

    r1411 r1420  
    152152    echo "\n\t<li id='comment-$comment->comment_ID'>";
    153153    ?>
    154             <p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('Email:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
     154            <p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('E-mail:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
    155155<?php comment_text() ?>
    156156<p><?php
  • trunk/wp-admin/options-discussion.php

    r1411 r1420  
    22require_once('../wp-includes/wp-l10n.php');
    33
    4 $title = 'Discussion Options';
     4$title = __('Discussion Options');
    55$parent_file = 'options-general.php';
    66
     
    6969</fieldset>
    7070<fieldset class="options">
    71         <legend><?php _e('Email me whenever:') ?></legend>
     71        <legend><?php _e('E-mail me whenever:') ?></legend>
    7272        <ul>
    7373            <li>
     
    9494                <label for="require_name_email">
    9595                <input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_settings('require_name_email')); ?> />
    96                 <?php _e('User must fill out name and email') ?> </label>
     96                <?php _e('User must fill out name and e-mail') ?> </label>
    9797            </li>
    9898        </ul>
     
    102102    <p><?php printf(__('Hold a comment in the queue if it contains more than %s links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="' . get_settings('comment_max_links'). '" />' ) ?></p>
    103103
    104     <p><?php _e('When a comment contains any of these words in its content, name, URI,  email, or IP, hold it in the moderation queue: (Separate multiple words with new lines.) <a href="http://wiki.wordpress.org/index.php/SpamWords">Common spam words</a>.') ?></p>
     104    <p><?php _e('When a comment contains any of these words in its content, name, URI, e-mail, or IP, hold it in the moderation queue: (Separate multiple words with new lines.) <a href="http://wiki.wordpress.org/index.php/SpamWords">Common spam words</a>.') ?></p>
    105105        <p>
    106106            <textarea name="moderation_keys" cols="60" rows="4" id="moderation_keys" style="width: 98%; font-size: 12px;" class="code"><?php echo get_settings('moderation_keys'); ?></textarea>
  • trunk/wp-admin/options-misc.php

    r1411 r1420  
    22require_once('../wp-includes/wp-l10n.php');
    33
    4 $title = 'Miscellaneous Options';
     4$title = __('Miscellaneous Options');
    55$parent_file = 'options-general.php';
    66
  • trunk/wp-admin/options-permalink.php

    r1411 r1420  
    9090  <p> In general for this you must use mod_rewrite, however if you put a filename at the beginning WordPress will attempt to use that to pass the arguments, for example:</p>
    9191  <p><code>/index.php/archives/%year%/%monthnum%/%day%/%postname%/</code> </p>
    92   <p>If you use this option you can ignore the mod_rewrite rules. </p>') ?>
     92  <p>If you use this option you can ignore the mod_rewrite rules.</p>') ?>
    9393  <form name="form" action="options-permalink.php" method="post">
    9494    <p><?php _e('Use the template tags above to create a virtual site structure:') ?></p>
  • trunk/wp-admin/options-reading.php

    r1411 r1420  
    22require_once('../wp-includes/wp-l10n.php');
    33
    4 $title = 'Reading Options';
     4$title = __('Reading Options');
    55$parent_file = 'options-general.php';
    66
     
    6969                <th width="33%" scope="row"><?php _e('Show the most recent:') ?></th>
    7070                <td><input name="posts_per_rss" type="text" id="posts_per_rss" value="<?php echo get_settings('posts_per_rss'); ?>" size="3" />
    71                     posts </td>
     71                    <?php _('posts') ?></td>
    7272            </tr>
    7373            <tr valign="top">
     
    7575                <td><label>
    7676                    <input name="rss_use_excerpt"  type="radio" value="0" <?php checked(0, get_settings('rss_use_excerpt')); ?>  />
    77                     full text</label>                   <br />
     77                    <?php _e('full text') ?></label>                    <br>
    7878                    <label>
    7979                    <input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_settings('rss_use_excerpt')); ?> />
    80                     summary</label> </td>
     80                    <?php _('summary') ?></label> </td>
    8181            </tr>
    8282        </table>
  • trunk/wp-admin/options-writing.php

    r1411 r1420  
    6363      </tr>
    6464      <tr valign="top">
    65         <th width="33%" scope="row"> Size of the writing box:</th>
     65        <th width="33%" scope="row"> <?php _e('Size of the writing box:') ?></th>
    6666        <td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php echo get_settings('default_post_edit_rows'); ?>" size="2" style="width: 1.5em; " />
    67           lines </td>
     67         <?php _e('lines') ?></td>
    6868      </tr>
    6969      <tr valign="top">
     
    9696    </fieldset>
    9797    <fieldset class="options">
    98     <legend><?php _e('Writing by Email') ?></legend>
    99     <p><?php printf(__('To post to WordPress by email you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: <code>%s</code>, <code>%s</code>, <code>%s</code>.'), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5)) ?></p>
     98    <legend><?php _e('Writing by e-mail') ?></legend>
     99    <p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: <code>%s</code>, <code>%s</code>, <code>%s</code>.'), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5)) ?></p>
    100100   
    101101        <table width="100%" cellspacing="2" cellpadding="5" class="editform">
  • trunk/wp-admin/options.php

    r1411 r1420  
    11<?php
    2 $title = 'Options';
     2require_once('../wp-includes/wp-l10n.php');
     3
     4$title = __('Options');
    35$this_file = 'options.php';
    46$parent_file = 'options-general.php';
  • trunk/wp-admin/post.php

    r1411 r1420  
    512512echo "<table border=\"0\">\n";
    513513echo "<tr><td>" . __('Author:') . "</td><td>" . $commentdata["comment_author"] . "</td></tr>\n";
    514 echo "<tr><td>" . __('E-Mail:') . "</td><td>" . $commentdata["comment_author_email"] . "</td></tr>\n";
     514echo "<tr><td>" . __('E-mail:') . "</td><td>" . $commentdata["comment_author_email"] . "</td></tr>\n";
    515515echo "<tr><td>". __('URL:') . "</td><td>" . $commentdata["comment_author_url"] . "</td></tr>\n";
    516516echo "<tr><td>". __('Comment:') . "</td><td>" . stripslashes($commentdata["comment_content"]) . "</td></tr>\n";
     
    791791?>
    792792<div class="wrap">
    793       <?php printf(__('<p>Since you&#8217;re a newcomer, you&#8217;ll have to wait for an admin to raise your level to 1, in order to be authorized to post blog items.<br />
    794 You can also <a href="mailto:%s?subject=Blog posting permission">e-mail the admin</a> to ask for a promotion.<br />
    795 When you&#8217;re promoted, just reload this page and you&#8217;ll be able to blog. :)</p>'), get_settings('admin_email')); ?>
     793        <p><?php printf(__('Since you&#8217;re a newcomer, you&#8217;ll have to wait for an admin to raise your level to 1, in order to be authorized to post.<br />
     794You can also <a href="mailto:%s?subject=Promotion?">e-mail the admin</a> to ask for a promotion.<br />
     795When you&#8217;re promoted, just reload this page and you&#8217;ll be able to blog. :)'), get_settings('admin_email')); ?>
     796        </p>
    796797</div>
    797798<?php
  • trunk/wp-admin/profile.php

    r1411 r1420  
    6565        return false;
    6666    } else if (!is_email($_POST["newuser_email"])) {
    67         die (__("<strong>ERROR</strong>: the email address isn't correct"));
     67        die (__("<strong>ERROR</strong>: the e-mail address isn't correct"));
    6868        return false;
    6969    }
     
    158158<p> <strong><?php _e('Nickname:') ?></strong> <?php echo $profiledata->user_nickname ?> </p>
    159159 
    160 <p> <strong><?php _e('Email:') ?></strong> <?php echo make_clickable($profiledata->user_email) ?>
     160<p> <strong><?php _e('E-mail:') ?></strong> <?php echo make_clickable($profiledata->user_email) ?>
    161161</p>
    162162 
     
    276276    </tr>
    277277    <tr>
    278       <th scope="row"><?php _e('Email:') ?></th>
     278      <th scope="row"><?php _e('E-mail:') ?></th>
    279279      <td><input type="text" name="newuser_email" id="newuser_email2" value="<?php echo $profiledata->user_email ?>" /></td>
    280280    </tr>
  • trunk/wp-comments-popup.php

    r1355 r1420  
    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 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>
     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

    r1400 r1420  
    4646<h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>
    4747
    48 <p><?php _e('Line and paragraph breaks automatic. E-mail address never displayed. <abbr title="HyperText Markup Language">HTML</abbr> allowed:'); ?> <code><?php echo allowed_tags(); ?></code></p>
     48<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>
    4949
    5050<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  • trunk/wp-login.php

    r1369 r1420  
    183183<input type="hidden" name="action" value="retrievepassword" />
    184184<label><?php _e('Login:') ?> <input type="text" name="user_login" id="user_login" value="" size="12" /></label><br />
    185 <label><?php _e('Email:') ?> <input type="text" name="email" id="email" value="" size="12" /></label><br />
     185<label><?php _e('E-mail:') ?> <input type="text" name="email" id="email" value="" size="12" /></label><br />
    186186<input type="submit" name="Submit2" value="OK" class="search">
    187187
     
    204204    $user_email = $user_data->user_email;
    205205
    206     if (!$user_email || $user_email != $_POST['email']) die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or email address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword'));
     206    if (!$user_email || $user_email != $_POST['email']) die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or e-mail address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword'));
    207207    // Generate something random for a password... md5'ing current time with a rand salt
    208208    $user_pass = substr((MD5("time" . rand(1,16000))), 0, 6);
     
    216216
    217217    if ($m == false) {
    218         echo "<p>The email could not be sent.<br />\n";
    219         echo "Possible reason: your host may have disabled the mail() function...</p>";
     218        echo "<p><?php _e('The e-mail could not be sent.') ?><br />\n";
     219        echo "<?php _e('Possible reason: your host may have disabled the mail() function...') ?></p>";
    220220        die();
    221221    } else {
    222         echo "<p>The email was sent successfully to $user_login's email address.<br />
    223         <a href='wp-login.php' title='Check your email first, of course'>Click here to login!</a></p>";
     222        echo "<p><?php _e('The e-mail was sent successfully to $user_login's e-mail address.') ?><br />
     223        <?php _e('<a href='wp-login.php' title=\'Check your e-mail first, of course\'>Click here to login!</a>
     224') ?></p>";
    224225        // send a copy of password change notification to the admin
    225226        mail(get_settings('admin_email'), '[' . get_settings('blogname') . "] Password Lost/Change", "Password Lost and Changed for user: $user_login");
Note: See TracChangeset for help on using the changeset viewer.