Changeset 2391
- Timestamp:
- 02/27/2005 11:09:58 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/install.php
r2386 r2391 78 78 $wpdb->hide_errors(); 79 79 $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>'));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>'); 81 81 $wpdb->show_errors(); 82 82 … … 85 85 case 0: 86 86 ?> 87 <p> Welcome to WordPress installation. We’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 »</a></h2>87 <p><?php printf(__('Welcome to WordPress installation. We’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 »'); ?></a></h2> 89 89 <?php 90 90 break; … … 92 92 case 1: 93 93 ?> 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> 96 96 97 97 <form id="setup" method="post" action="install.php?step=2"> 98 98 <table width="100%"> 99 99 <tr> 100 <th width="33%"> Weblog title:</th>100 <th width="33%"><?php _e('Weblog title:'); ?></th> 101 101 <td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td> 102 102 </tr> 103 103 <tr> 104 <th>Your e-mail:</th>104 <th><?php _e('Your e-mail:'); ?></th> 105 105 <td><input name="admin_email" type="text" id="admin_email" size="25" /></td> 106 106 </tr> 107 107 </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> 109 109 <h2 class="step"> 110 <input type="submit" name="Submit" value="Continue to Second Step »" />110 <input type="submit" name="Submit" value="<?php _e('Continue to Second Step »'); ?>" /> 111 111 </h2> 112 112 </form> … … 116 116 case 2: 117 117 ?> 118 <h1> Second Step</h1>119 <p> Now we’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’re going to create the database tables and fill them with some default data.'); ?></p> 120 120 121 121 … … 164 164 $from = 'From: '.$_POST['weblog_title'].' <wordpress@'.$_SERVER['SERVER_NAME'].'>'; 165 165 $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 169 169 170 170 You can log in to the administrator account with the following information: 171 171 172 172 Username: admin 173 Password: $random_password173 Password: %2\$s 174 174 175 175 We hope you enjoy your new weblog. Thanks! … … 177 177 --The WordPress Team 178 178 http://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); 182 182 183 183 upgrade_all(); 184 184 ?> 185 185 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> 191 191 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:'); ?> 193 193 </p> 194 194 <dl> 195 <dt> Login</dt>195 <dt><?php _e('Login'); ?></dt> 196 196 <dd><code>admin</code></dd> 197 <dt> Password</dt>197 <dt><?php _e('Password'); ?></dt> 198 198 <dd><code><?php echo $random_password; ?></code></dd> 199 <dt>Login address</dt>199 <dt><?php _e('Login address'); ?></dt> 200 200 <dd><a href="../wp-login.php">wp-login.php</a></dd> 201 201 </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> 203 203 <?php 204 204 break; 205 205 } 206 206 ?> 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> 208 208 </body> 209 209 </html> -
trunk/wp-admin/upgrade-schema.php
r2321 r2391 153 153 154 154 $guessurl = preg_replace('|/wp-admin/.*|i', '', 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 155 add_option('siteurl', $guessurl, 'WordPress web address');156 add_option('blogname', 'My Weblog', 'Blog title');157 add_option('blogdescription', 'Just another WordPress weblog', 'Short tagline');155 add_option('siteurl', $guessurl, __('WordPress web address')); 156 add_option('blogname', __('My Weblog'), __('Blog title')); 157 add_option('blogdescription', __('Just another WordPress weblog'), __('Short tagline')); 158 158 add_option('new_users_can_blog', 0); 159 159 add_option('users_can_register', 0); … … 204 204 add_option('comment_max_links', 2); 205 205 // 1.5 206 add_option('default_email_category', 1, 'Posts by email go to this category');206 add_option('default_email_category', 1, __('Posts by email go to this category')); 207 207 add_option('recently_edited'); 208 208 add_option('use_linksupdate', 0); -
trunk/wp-admin/upgrade.php
r1812 r2391 68 68 case 0: 69 69 ?> 70 <p> This file upgrades you from any previous version of WordPress to the latest. It may take a while though, so be patient.</p>71 <h2 class="step"><a href="upgrade.php?step=1">Upgrade WordPress »</a></h2>70 <p><?php _e('This file upgrades you from any previous version of WordPress to the latest. It may take a while though, so be patient.'); ?></p> 71 <h2 class="step"><a href="upgrade.php?step=1"><?php _e('Upgrade WordPress »'); ?></a></h2> 72 72 <?php 73 73 break; … … 77 77 upgrade_all(); 78 78 ?> 79 <h2> Step 1</h2>80 <p>There's actually only one step. So if you see this, you're done. <a href="../">Have fun</a>!</p>79 <h2><?php _e('Step 1'); ?></h2> 80 <p><?php printf(__("There's actually only one step. So if you see this, you're done. <a href='%s'>Have fun</a>!"), '../'); ?></p> 81 81 82 82 <!-- 83 83 <pre> 84 <?php echo $wpdb->num_queries; ?> queries84 <?php printf(__('%s queries'), $wpdb->num_queries); ?> 85 85 86 <?php timer_stop(1); ?> seconds86 <?php printf(__('%s seconds'), timer_stop(0)); ?> 87 87 </pre> 88 88 --> -
trunk/wp-settings.php
r2342 r2391 75 75 else 76 76 $link = 'wp-admin/install.php'; 77 die( "It doesn't look like you've installed WP yet. Try running <a href='$link'>install.php</a>.");77 die(sprintf(__("It doesn't look like you've installed WP yet. Try running <a href='%s'>install.php</a>."), $link)); 78 78 } 79 79 $wpdb->show_errors();
Note: See TracChangeset
for help on using the changeset viewer.