Skip to:
Content

BuddyPress.org

Changeset 6239


Ignore:
Timestamp:
08/07/2012 05:55:17 PM (13 years ago)
Author:
djpaul
Message:

Improve i18n in the Setup/Install wizard. Fixes #4389, props Dianakc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-update.php

    r6169 r6239  
    131131        if ( ! bp_current_user_can( 'activate_plugins' ) )
    132132            wp_die( 'You do not have sufficient permissions to access this page.' );
    133 
    134         // Update or Setup
    135         $type = ( 'update' == bp_get_maintenance_mode() ) ? __( 'Update', 'buddypress' ) : __( 'Setup', 'buddypress' );
    136 
    137133        ?>
    138134
     
    141137            <?php screen_icon( 'buddypress' ); ?>
    142138
    143             <h2><?php printf( __( 'BuddyPress %s', 'buddypress' ), $type ); ?></h2>
     139            <h2>
     140                <?php
     141                if ( 'update' == bp_get_maintenance_mode() )
     142                    _e( 'BuddyPress Update', 'buddypress' );
     143                else
     144                    _e( 'BuddyPress Setup', 'buddypress' );
     145                ?>
     146            </h2>
    144147
    145148            <?php
     
    683686
    684687    function step_finish() {
    685 
    686         // What type of action is happening here?
    687         $type = ( bp_get_maintenance_mode() == 'install' ) ? __( 'setup', 'buddypress' ) : __( 'update', 'buddypress' ); ?>
    688 
    689         <p><?php printf( __( "The BuddyPress %1\$s is complete, and your site is ready to go!", 'buddypress' ), $type ); ?></p>
     688    ?>
     689        <p>
     690            <?php
     691            if ( 'update' == bp_get_maintenance_mode() )
     692                _e( "The BuddyPress update is complete, and your site is ready to go!", 'buddypress' );
     693            else
     694                _e( "The BuddyPress setup is complete, and your site is ready to go!", 'buddypress' );
     695            ?>
     696        </p>
    690697
    691698        <div class="submit clear">
Note: See TracChangeset for help on using the changeset viewer.