Log in with username/password: lyceum/lyceum

Changeset 1223

Show
Ignore:
Timestamp:
10/11/07 03:57:35 (1 year ago)
Author:
jjb
Message:

Better name for slug.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/src/lyceum/wp-register.php

    r1222 r1223  
    4242      //this could be a little cleaner. future wp versions clean up this file, so after merging with 2.1, a refactor is in order. 
    4343      if ( !slugAvailable($blog_name) ) 
    44          $errors['blog_name'] = __('<strong>ERROR</strong>: This blog name is already taken, please choose another one.<br/>'); 
     44         $errors['blog_name'] = __('<strong>ERROR</strong>: This blog address is already taken, please choose another one.<br/>'); 
    4545      if (!validateSlug($blog_name)) 
    46          $errors['blog_name'] = __('<strong>ERROR</strong>: This blog name is invalid, please choose another one.<br/>'); 
     46         $errors['blog_name'] = __('<strong>ERROR</strong>: This blog address is invalid, please choose another one.<br/>'); 
    4747      if ( 0 == count($errors) ) { 
    4848         $blog_id = lyceum_create_blog( $user_ID, $blog_name ); 
     
    7272      <p><?php printf(__('Username: %s'), "<strong>$user_login</strong>") ?><br /> 
    7373      <?php printf(__('E-mail: %s'), "<strong>$user_email</strong>") ?><br /> 
    74       <?php printf(__('Blog Name: %s'), "<strong>$blog_name</strong>") ?> 
     74      <?php printf(__('Blog Address: %s'), "<strong>$blog_name</strong>") ?> 
    7575      </p> 
    7676      <p class="submit"><a href="profile"><?php _e('View Profile'); ?> &raquo;</a></p> 
     
    121121         <div id="blog_name_span"> 
    122122            <div id="blognameMsg" style="height:3em"></div> 
    123             <label for="blog_name"><?php _e('New Blog Name:') ?></label><br /> 
     123            <label for="blog_name"><?php _e('New Blog Address:') ?></label><br /> 
    124124            <input type="text" name="blog_name" id="blog_name" size="20" maxlength="100" value="<?php echo $blog_name; ?>" <?php echo SUBDOMAINS ? 'style="text-align: center;"' : ''?>/><br/> 
    125125            <label for="password"><?php _e('Verify your current password:') ?></label><br /> 
     
    149149      function(element, value) { 
    150150         if(document.getElementById('blog_name').value.indexOf('&') > 0) 
    151             document.getElementById('blognameMsg').innerHTML ='<span style=\"color: red;\">'+document.getElementById('blog_name').value+': Invalid blog name<\/span>'; 
     151            document.getElementById('blognameMsg').innerHTML ='<span style=\"color: red;\">'+document.getElementById('blog_name').value+': Invalid blog address<\/span>'; 
    152152         else 
    153153            new Ajax.Updater('blognameMsg','<?php echo WEBROOT ?>/ajax/availability.php', { 
     
    212212   if ('yes' == $create_blog){ 
    213213      if ( !slugAvailable($blog_name) ) 
    214          $errors['blog_name'] = __('<strong>ERROR</strong>: This blog name is already taken, please choose another one.<br/>'); 
     214         $errors['blog_name'] = __('<strong>ERROR</strong>: This blog address is already taken, please choose another one.<br/>'); 
    215215      if (!validateSlug($blog_name)) 
    216          $errors['blog_name'] = __('<strong>ERROR</strong>: This blog name is invalid, please choose another one.<br/>'); 
     216         $errors['blog_name'] = __('<strong>ERROR</strong>: This blog address is invalid, please choose another one.<br/>'); 
    217217   } 
    218218 
     
    370370      function(element, value) { 
    371371         if(document.getElementById('blog_name').value.indexOf('&') > 0) 
    372             document.getElementById('blognameMsg').innerHTML ='<span style=\"color: red;\">'+document.getElementById('blog_name').value+': Invalid blog name<\/span>'; 
     372            document.getElementById('blognameMsg').innerHTML ='<span style=\"color: red;\">'+document.getElementById('blog_name').value+': Invalid blog address<\/span>'; 
    373373         else 
    374374            new Ajax.Updater('blognameMsg','<?php echo WEBROOT ?>/ajax/availability.php', { 
Log in with username/password: lyceum/lyceum