Changeset 1442

Show
Ignore:
Timestamp:
08/25/08 15:34:01 (3 months ago)
Author:
donncha
Message:

Locale changes, minor code changes. from patches on #708, props momo360modena

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/wpmu-themes.php

    r1391 r1442  
    3434                        <tbody id="plugins"> 
    3535                        <?php 
    36                         $total_theme_count = 0; 
    37                         $activated_themes_count = 0; 
    38                         foreach( (array) $themes as $key => $theme ) : 
    39                                 $total_theme_count++; 
     36                        $total_theme_count = $activated_themes_count = 0; 
     37                        foreach( (array) $themes as $key => $theme ) { 
     38                                $total_theme_count++; 
    4039                                $theme_key = wp_specialchars($theme['Stylesheet']); 
    4140                                $class = ('alt' == $class) ? '' : 'alt'; 
     
    4443                                if( isset( $allowed_themes[ $theme_key ] ) == true ) { 
    4544                                        $enabled = 'checked="checked" '; 
    46                                         $activated_themes_count++; 
     45                                       $activated_themes_count++; 
    4746                                        $class1 = ' active'; 
    4847                                } else { 
     
    6059                                        <td><?php echo $theme['Description'] ?></td> 
    6160                                </tr>  
    62                         <?php endforeach; ?> 
     61                        <?php } ?> 
    6362                        </tbody> 
    6463                </table> 
     
    6766                        <input type='submit' value='<?php _e('Update Themes &raquo;') ?>' /></p> 
    6867        </form> 
    69 <p>Total Themes Installed: <?php echo $total_theme_count; ?><br /> 
    70 Themes Activated: <?php echo $activated_themes_count; ?></p> 
     68         
     69        <h3><?php _e('Total')?></h3> 
     70        <p> 
     71                <?php printf(__('Themes Installed: %d'), $total_theme_count); ?> 
     72                <br /> 
     73                <?php printf(__('Themes Activated: %d'), $activated_themes_count); ?> 
     74        </p> 
    7175</div> 
    7276 
  • trunk/wp-includes/wpmu-functions.php

    r1433 r1442  
    19631963                        delete_option( 'new_user_' . $key ); 
    19641964                        do_action( "added_existing_user", $details[ 'user_id' ] ); 
    1965                         wp_die( 'You have been added to this blog. Please visit the <a href="' . site_url() . '">homepage</a> or <a href="' . site_url( '/wp-admin/' ) . '">login</a> using your username and password.' ); 
     1965                        wp_die( sprintf(__('You have been added to this blog. Please visit the <a href="%s">homepage</a> or <a href="%s">login</a> using your username and password.'), site_url(), site_url( '/wp-admin/' ) );  
    19661966                } 
    19671967        }