Make WordPress Core


Ignore:
Timestamp:
04/25/2004 01:25:41 AM (22 years ago)
Author:
rboren
Message:

Mark strings for translation.

File:
1 edited

Legend:

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

    r1115 r1161  
    1 <?php $title = "Profile";
     1<?php
     2require_once('../wp-includes/wp-l10n.php');
     3
     4$title = "Profile";
    25/* <Profile | My Profile> */
    36
     
    4548    /* checking the nickname has been typed */
    4649    if (empty($_POST["newuser_nickname"])) {
    47         die ("<strong>ERROR</strong>: please enter your nickname (can be the same as your login)");
     50        die (__("<strong>ERROR</strong>: please enter your nickname (can be the same as your login)"));
    4851        return false;
    4952    }
     
    5255    if (!empty($_POST["newuser_icq"])) {
    5356        if ((ereg("^[0-9]+$",$_POST["newuser_icq"]))==false) {
    54             die ("<strong>ERROR</strong>: your ICQ UIN can only be a number, no letters allowed");
     57            die (__("<strong>ERROR</strong>: your ICQ UIN can only be a number, no letters allowed"));
    5558            return false;
    5659        }
     
    5962    /* checking e-mail address */
    6063    if (empty($_POST["newuser_email"])) {
    61         die ("<strong>ERROR</strong>: please type your e-mail address");
     64        die (__("<strong>ERROR</strong>: please type your e-mail address"));
    6265        return false;
    6366    } else if (!is_email($_POST["newuser_email"])) {
    64         die ("<strong>ERROR</strong>: the email address isn't correct");
     67        die (__("<strong>ERROR</strong>: the email address isn't correct"));
    6568        return false;
    6669    }
     
    6871    if ($_POST["pass1"] == "") {
    6972        if ($_POST["pass2"] != "")
    70             die ("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.");
     73            die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice."));
    7174        $updatepassword = "";
    7275    } else {
    7376        if ($_POST["pass2"] == "")
    74             die ("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.");
     77            die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice."));
    7578        if ($_POST["pass1"] != $_POST["pass2"])
    76             die ("<strong>ERROR</strong>: you typed two different passwords. Go back to correct that.");
     79            die (__("<strong>ERROR</strong>: you typed two different passwords. Go back to correct that."));
    7780        $newuser_pass = $_POST["pass1"];
    7881        $updatepassword = "user_pass=MD5('$newuser_pass'), ";
     
    9598    $result = $wpdb->query($query);
    9699    if (!$result) {
    97         die ("<strong>ERROR</strong>: couldn't update your profile...");
     100        die (__("<strong>ERROR</strong>: couldn't update your profile..."));
    98101    }
    99102    header('Location: profile.php?updated=true');
     
    110113    ?>
    111114
    112 <h2>View Profile &#8220;
     115<h2><?php _e('View Profile') ?> &#8220;
    113116  <?php
    114117    switch($profiledata->user_idmode) {
     
    138141  <div id="profile">
    139142<p>
    140   <strong>Login</strong> <?php echo $profiledata->user_login ?>
    141   | <strong>User #</strong> <?php echo $profiledata->ID ?> | <strong>Level</strong>
    142   <?php echo $profiledata->user_level ?> | <strong>Posts</strong>
     143  <strong><?php _e('Login') ?></strong> <?php echo $profiledata->user_login ?>
     144  | <strong><?php _e('User #') ?></strong> <?php echo $profiledata->ID ?> | <strong><?php _e('Level') ?></strong>
     145  <?php echo $profiledata->user_level ?> | <strong><?php _e('Posts') ?></strong>
    143146  <?php
    144147    $posts = get_usernumposts($user);
     
    147150</p>
    148151
    149 <p> <strong>First name:</strong> <?php echo $profiledata->user_firstname ?> </p>
    150  
    151 <p> <strong>Last name:</strong> <?php echo $profiledata->user_lastname ?> </p>
    152  
    153 <p> <strong>Nickname:</strong> <?php echo $profiledata->user_nickname ?> </p>
    154  
    155 <p> <strong>Email:</strong> <?php echo make_clickable($profiledata->user_email) ?>
     152<p> <strong><?php _e('First name:') ?></strong> <?php echo $profiledata->user_firstname ?> </p>
     153 
     154<p> <strong><?php _e('Last name:') ?></strong> <?php echo $profiledata->user_lastname ?> </p>
     155 
     156<p> <strong><?php _e('Nickname:') ?></strong> <?php echo $profiledata->user_nickname ?> </p>
     157 
     158<p> <strong><?php _e('Email:') ?></strong> <?php echo make_clickable($profiledata->user_email) ?>
    156159</p>
    157160 
    158 <p> <strong>Website:</strong> <?php echo $profiledata->user_url ?> </p>
    159  
    160 <p> <strong>ICQ:</strong>
     161<p> <strong><?php _e('Website:') ?></strong> <?php echo $profiledata->user_url ?> </p>
     162 
     163<p> <strong><?php _e('ICQ:') ?></strong>
    161164  <?php if ($profiledata->user_icq > 0) { echo make_clickable("icq:".$profiledata->user_icq); } ?>
    162165</p>
    163166 
    164 <p> <strong>AIM:</strong> <?php echo "<a href='aim:goim?screenname=". str_replace(' ', '+', $profiledata->user_aim) ."&message=Howdy'>$profiledata->user_aim</a>"; ?>
     167<p> <strong><?php _e('AIM:') ?></strong> <?php echo "<a href='aim:goim?screenname=". str_replace(' ', '+', $profiledata->user_aim) ."&message=Howdy'>$profiledata->user_aim</a>"; ?>
    165168</p>
    166169 
    167 <p> <strong>MSN IM:</strong> <?php echo $profiledata->user_msn ?> </p>
    168  
    169 <p> <strong>Yahoo IM:</strong> <?php echo $profiledata->user_yim ?> </p>
     170<p> <strong><?php _e('MSN IM:') ?></strong> <?php echo $profiledata->user_msn ?> </p>
     171 
     172<p> <strong><?php _e('Yahoo IM:') ?></strong> <?php echo $profiledata->user_yim ?> </p>
    170173 
    171174</div>
     
    224227<?php if ($updated) { ?>
    225228<div class="updated">
    226 <p><strong>Profile updated.</strong></p>
     229<p><strong><?php _e('Profile updated.') ?></strong></p>
    227230</div>
    228231<?php } ?>
     
    233236    <input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" />
    234237  </p>
    235   <p><strong>Login:</strong> <?php echo $profiledata->user_login ?> | <strong>Level:</strong>
    236     <?php echo $profiledata->user_level ?> | <strong>Posts:</strong>
     238  <p><strong><?php _e('Login:') ?></strong> <?php echo $profiledata->user_login ?> | <strong><?php _e('Level:') ?></strong>
     239    <?php echo $profiledata->user_level ?> | <strong><?php _e('Posts:') ?></strong>
    237240    <?php
    238241    $posts = get_usernumposts($user_ID);
     
    245248  <table width="99%"  border="0" cellspacing="2" cellpadding="3">
    246249    <tr>
    247       <th width="33%" scope="row">First name:</th>
     250      <th width="33%" scope="row"><?php _e('First name:') ?></th>
    248251      <td width="73%"><input type="text" name="newuser_firstname" id="newuser_firstname" value="<?php echo $profiledata->user_firstname ?>" /></td>
    249252    </tr>
    250253    <tr>
    251       <th scope="row">Last name:</th>
     254      <th scope="row"><?php _e('Last name:') ?></th>
    252255      <td><input type="text" name="newuser_lastname" id="newuser_lastname2" value="<?php echo $profiledata->user_lastname ?>" /></td>
    253256    </tr>
    254257    <tr>
    255       <th scope="row">Profile:</th>
     258      <th scope="row"><?php _e('Profile:') ?></th>
    256259      <td><textarea name="user_description" rows="5" id="textarea2" style="width: 99%; "><?php echo $profiledata->user_description ?></textarea></td>
    257260    </tr>
    258261    <tr>
    259       <th scope="row">Nickname:</th>
     262      <th scope="row"><?php _e('Nickname:') ?></th>
    260263      <td><input type="text" name="newuser_nickname" id="newuser_nickname2" value="<?php echo $profiledata->user_nickname ?>" /></td>
    261264    </tr>
    262265    <tr>
    263       <th scope="row">Email:</th>
     266      <th scope="row"><?php _e('Email:') ?></th>
    264267      <td><input type="text" name="newuser_email" id="newuser_email2" value="<?php echo $profiledata->user_email ?>" /></td>
    265268    </tr>
    266269    <tr>
    267       <th scope="row">Website:</th>
     270      <th scope="row"><?php _e('Website:') ?></th>
    268271      <td><input type="text" name="newuser_url" id="newuser_url2" value="<?php echo $profiledata->user_url ?>" /></td>
    269272    </tr>
    270273    <tr>
    271       <th scope="row">ICQ:</th>
     274      <th scope="row"><?php _e('ICQ:') ?></th>
    272275      <td><input type="text" name="newuser_icq" id="newuser_icq2" value="<?php if ($profiledata->user_icq > 0) { echo $profiledata->user_icq; } ?>" /></td>
    273276    </tr>
    274277    <tr>
    275       <th scope="row">AIM:</th>
     278      <th scope="row"><?php _e('AIM:') ?></th>
    276279      <td><input type="text" name="newuser_aim" id="newuser_aim2" value="<?php echo $profiledata->user_aim ?>" /></td>
    277280    </tr>
    278281    <tr>
    279       <th scope="row">MSN IM: </th>
     282      <th scope="row"><?php _e('MSN IM:') ?> </th>
    280283      <td><input type="text" name="newuser_msn" id="newuser_msn2" value="<?php echo $profiledata->user_msn ?>" /></td>
    281284    </tr>
    282285    <tr>
    283       <th scope="row">Yahoo IM: </th>
     286      <th scope="row"><?php _e('Yahoo IM:') ?> </th>
    284287      <td>        <input type="text" name="newuser_yim" id="newuser_yim2" value="<?php echo $profiledata->user_yim ?>" />      </td>
    285288    </tr>
    286289    <tr>
    287       <th scope="row">Identity on blog: </th>
     290      <th scope="row"><?php _e('Identity on blog:') ?> </th>
    288291      <td><select name="newuser_idmode">
    289292        <option value="nickname"<?php
     
    308311    </tr>
    309312    <tr>
    310       <th scope="row">New <strong>Password</strong> (Leave blank to stay the same.)</th>
     313      <th scope="row"><?php _e('New <strong>Password</strong> (Leave blank to stay the same.)') ?></th>
    311314      <td><input type="password" name="pass1" size="16" value="" />
    312315        <br>
     
    315318  </table>
    316319  <p class="submit">
    317     <input type="submit" value="Update &raquo;" name="submit" />
     320    <input type="submit" value="<?php _e('Update &raquo;') ?>" name="submit" />
    318321  </p>
    319322    </div>
     
    328331            window.sidebar.addPanel("WordPress Post: <?php echo get_settings('blogname'); ?>","<?php echo get_settings('siteurl'); ?>/wp-admin/sidebar.php","");
    329332          else
    330             alert('No Sidebar found!  You must use Mozilla 0.9.4 or later!');
     333            alert(<?php __("'No Sidebar found!  You must use Mozilla 0.9.4 or later!'") ?>);
    331334        }
    332335</script>
Note: See TracChangeset for help on using the changeset viewer.