Ticket #994: admin-i18n.diff

File admin-i18n.diff, 7.8 KB (added by SteveAgl, 7 years ago)
  • wp-admin/upgrade.php

     
    6767 
    6868        case 0: 
    6969?>  
    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 &raquo;</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 &raquo;'); ?></a></h2> 
    7272<?php 
    7373        break; 
    7474         
     
    7676        make_db_current_silent(); 
    7777        upgrade_all(); 
    7878?>  
    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> 
    8181 
    8282<!-- 
    8383<pre> 
    84 <?php echo $wpdb->num_queries; ?> queries 
     84<?php printf(__('%s queries'), $wpdb->num_queries); ?> 
    8585 
    86 <?php timer_stop(1); ?> seconds 
     86<?php printf(__('%s seconds'), timer_stop(0)); ?> 
    8787</pre> 
    8888--> 
    8989 
  • wp-admin/upgrade-schema.php

     
    152152        global $wpdb; 
    153153 
    154154        $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')); 
    158158        add_option('new_users_can_blog', 0); 
    159159        add_option('users_can_register', 0); 
    160160        add_option('admin_email', 'you@example.com'); 
     
    203203        add_option('advanced_edit', 0); 
    204204        add_option('comment_max_links', 2); 
    205205        // 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')); 
    207207        add_option('recently_edited'); 
    208208        add_option('use_linksupdate', 0); 
    209209        add_option('template', 'default'); 
     
    229229        endforeach; 
    230230} 
    231231 
    232 ?> 
    233  No newline at end of file 
     232?> 
  • wp-admin/install.php

     
    8484 
    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; 
    9191 
    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> 
    113113 
     
    115115        break; 
    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 
    122122<?php 
     
    163163 
    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: 
     166$message = sprintf(__("Your new WordPress blog has been successfully set up at: 
    167167 
    168 $guessurl 
     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! 
    176176 
    177177--The WordPress Team 
    178178http://wordpress.org/ 
    179 "; 
     179"), $guessurl, $random_password); 
    180180 
    181 @mail($admin_email, 'New WordPress Blog', $message, $message_headers); 
     181@mail($admin_email, __('New WordPress Blog'), $message, $message_headers); 
    182182 
    183183upgrade_all(); 
    184184?> 
    185185 
    186 <p><em>Finished!</em></p> 
     186<p><em><?php _e('Finished!'); ?></em></p> 
    187187 
    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> 
     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> 
  • wp-settings.php

     
    7474                $link = 'install.php'; 
    7575        else 
    7676                $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)); 
    7878} 
    7979$wpdb->show_errors(); 
    8080 
     
    143143 
    144144// Everything is loaded. 
    145145do_action('init'); 
    146 ?> 
    147  No newline at end of file 
     146?>