Make WordPress Core


Ignore:
Timestamp:
02/27/2005 11:09:58 PM (20 years ago)
Author:
ryan
Message:

gettext install and upgrade. http://mosquito.wordpress.org/view.php?id=994 From nbachiyski

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r2386 r2391  
    7878$wpdb->hide_errors();
    7979$installed = $wpdb->get_results("SELECT * FROM $wpdb->users");
    80 if ($installed) die(__('<h1>Already Installed</h1><p>You appear to have already installed WordPress. To reinstall please clear your old database tables first.</p></body></html>'));
     80if ($installed) die(__('<h1>Already Installed</h1><p>You appear to have already installed WordPress. To reinstall please clear your old database tables first.</p>') . '</body></html>');
    8181$wpdb->show_errors();
    8282
     
    8585    case 0:
    8686?>
    87 <p>Welcome to WordPress installation. We&#8217;re now going to go through a few steps to get you up and running with the latest in personal publishing platforms. You may want to peruse the <a href="../readme.html">ReadMe documentation</a> at your leisure.</p>
    88 <h2 class="step"><a href="install.php?step=1">First Step &raquo;</a></h2>
     87<p><?php printf(__('Welcome to WordPress installation. We&#8217;re now going to go through a few steps to get you up and running with the latest in personal publishing platforms. You may want to peruse the <a href="%s">ReadMe documentation</a> at your leisure.'), '../readme.html'); ?></p>
     88    <h2 class="step"><a href="install.php?step=1"><?php _e('First Step &raquo;'); ?></a></h2>
    8989<?php
    9090    break;
     
    9292    case 1:
    9393?>
    94 <h1>First Step</h1>
    95 <p>Before we begin we need a little bit of information. Don't worry, you can always change these later. </p>
     94<h1><?php _e('First Step'); ?></h1>
     95<p><?php _e("Before we begin we need a little bit of information. Don't worry, you can always change these later."); ?></p>
    9696
    9797<form id="setup" method="post" action="install.php?step=2">
    9898<table width="100%">
    9999<tr>
    100 <th width="33%">Weblog title:</th>
     100<th width="33%"><?php _e('Weblog title:'); ?></th>
    101101<td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td>
    102102</tr>
    103103<tr>
    104     <th>Your e-mail:</th>
     104<th><?php _e('Your e-mail:'); ?></th>
    105105    <td><input name="admin_email" type="text" id="admin_email" size="25" /></td>
    106106</tr>
    107107</table>
    108 <p><em>Double-check that email address before continuing.</em></p>
     108<p><em><?php _e('Double-check that email address before continuing.'); ?></em></p>
    109109<h2 class="step">
    110     <input type="submit" name="Submit" value="Continue to Second Step &raquo;" />
     110<input type="submit" name="Submit" value="<?php _e('Continue to Second Step &raquo;'); ?>" />
    111111</h2>
    112112</form>
     
    116116    case 2:
    117117?>
    118 <h1>Second Step</h1>
    119 <p>Now we&#8217;re going to create the database tables and fill them with some default data.</p>
     118<h1><?php _e('Second Step'); ?></h1>
     119<p><?php _e('Now we&#8217;re going to create the database tables and fill them with some default data.'); ?></p>
    120120
    121121
     
    164164$from = 'From: '.$_POST['weblog_title'].' <wordpress@'.$_SERVER['SERVER_NAME'].'>';
    165165$message_headers = "$from";
    166 $message = "Your new WordPress blog has been successfully set up at:
    167 
    168 $guessurl
     166$message = sprintf(__("Your new WordPress blog has been successfully set up at:
     167
     168%1\$s
    169169
    170170You can log in to the administrator account with the following information:
    171171
    172172Username: admin
    173 Password: $random_password
     173Password: %2\$s
    174174
    175175We hope you enjoy your new weblog. Thanks!
     
    177177--The WordPress Team
    178178http://wordpress.org/
    179 ";
    180 
    181 @mail($admin_email, 'New WordPress Blog', $message, $message_headers);
     179"), $guessurl, $random_password);
     180
     181@mail($admin_email, __('New WordPress Blog'), $message, $message_headers);
    182182
    183183upgrade_all();
    184184?>
    185185
    186 <p><em>Finished!</em></p>
    187 
    188 <p>Now you can <a href="../wp-login.php">log in</a> with the <strong>login</strong>
    189   "<code>admin</code>" and <strong>password</strong> "<code><?php echo $random_password; ?></code>".</p>
    190 <p><strong><em>Note that password</em></strong> carefully! It is a <em>random</em>
     186<p><em><?php _e('Finished!'); ?></em></p>
     187
     188<p><?php printf(__('Now you can <a href="%1$s">log in</a> with the <strong>login</strong>
     189"<code>admin</code>" and <strong>password</strong> "<code>%2$s</code>".'), '../wp-login.php', $random_password); ?></p>
     190<p><?php _e('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em>
    191191  password that was generated just for you. If you lose it, you
    192   will have to delete the tables from the database yourself, and re-install WordPress. So to review:
     192  will have to delete the tables from the database yourself, and re-install WordPress. So to review:'); ?>
    193193</p>
    194194<dl>
    195 <dt>Login</dt>
     195<dt><?php _e('Login'); ?></dt>
    196196<dd><code>admin</code></dd>
    197 <dt>Password</dt>
     197<dt><?php _e('Password'); ?></dt>
    198198<dd><code><?php echo $random_password; ?></code></dd>
    199 <dt>Login address</dt>
     199    <dt><?php _e('Login address'); ?></dt>
    200200<dd><a href="../wp-login.php">wp-login.php</a></dd>
    201201</dl>
    202 <p>Were you expecting more steps? Sorry to disappoint. All done! :)</p>
     202<p><?php _e('Were you expecting more steps? Sorry to disappoint. All done! :)'); ?></p>
    203203<?php
    204204    break;
    205205}
    206206?>
    207 <p id="footer"><a href="http://wordpress.org/">WordPress</a>, personal publishing platform.</p>
     207<p id="footer"><?php _e('<a href="http://wordpress.org/">WordPress</a>, personal publishing platform.'); ?></p>
    208208</body>
    209209</html>
Note: See TracChangeset for help on using the changeset viewer.