Skip to:
Content

BuddyPress.org

Ticket #6907: 6907.patch

File 6907.patch, 3.8 KB (added by ramiy, 8 years ago)
  • src/bp-forums/deprecated/1.6.php

     
    137137                case 'existing':
    138138                        if ( isset( $_REQUEST['doinstall'] ) && ( 1 == (int) $_REQUEST['doinstall'] ) ) {
    139139                                if ( !bp_forums_configure_existing_install() ) {
    140                                         _e( 'The bb-config.php file was not found at that location. Please try again.', 'buddypress' );
     140                                        printf( __( 'The $s file was not found at that location. Please try again.', 'buddypress' ), '<code>bb-config.php</code>' );
    141141                                } else {
    142142                                        ?>
    143143                                        <h3><?php _e( 'Forums were set up correctly using your existing bbPress install!', 'buddypress' ) ?></h3>
    144                                         <p><?php _e( 'BuddyPress will now use its internal copy of bbPress to run the forums on your site. If you wish, you can remove your old bbPress installation files, as long as you keep the bb-config.php file in the same location.', 'buddypress' ) ?></p><?php
     144                                        <p><?php printf( __( 'BuddyPress will now use its internal copy of bbPress to run the forums on your site. If you wish, you can remove your old bbPress installation files, as long as you keep the %s file in the same location.', 'buddypress' ), '<code>bb-config.php</code>' ); ?></p><?php
    145145                                }
    146146                        } else { ?>
    147147
    148148                                        <form action="" method="post">
    149149                                                <h3><?php _e( 'Existing bbPress Installation', 'buddypress' ) ?></h3>
    150                                                 <p><?php _e( "BuddyPress can make use of your existing bbPress install. Just provide the location of your <code>bb-config.php</code> file, and BuddyPress will do the rest.", 'buddypress' ) ?></p>
    151                                                 <p><label><code>bb-config.php</code> file location:</label><br /><input style="width: 50%" type="text" name="bbconfigloc" id="bbconfigloc" value="<?php echo str_replace( 'buddypress', '', $_SERVER['DOCUMENT_ROOT'] ) ?>" /></p>
     150                                                <p><?php printf( __( 'BuddyPress can make use of your existing bbPress install. Just provide the location of your %s file, and BuddyPress will do the rest.', 'buddypress' ), '<code>bb-config.php</code>' ); ?></p>
     151                                                <p><label><?php printf( __( '%s  file location:', 'buddypress' ), '<code>bb-config.php</code>' ); ?></label><br /><input style="width: 50%" type="text" name="bbconfigloc" id="bbconfigloc" value="<?php echo str_replace( 'buddypress', '', $_SERVER['DOCUMENT_ROOT'] ) ?>" /></p>
    152152                                                <p><input type="submit" class="button-primary" value="<?php esc_attr_e( 'Complete Installation', 'buddypress' ) ?>" /></p>
    153153                                                <input type="hidden" name="step" value="existing" />
    154154                                                <input type="hidden" name="doinstall" value="1" />
     
    166166                                switch ( $result ) {
    167167                                        case 1:
    168168                                                echo '<p>';
    169                                                 _e( 'All done! Configuration settings have been saved to the file <code>bb-config.php</code> in the root of your WordPress install.', 'buddypress' );
     169                                                printf( __( 'All done! Configuration settings have been saved to the %s file in the root of your WordPress install.', 'buddypress' ), '<code>bb-config.php</code>' );
    170170                                                echo '</p>';
    171171                                                break;
    172172                                        default:
    173173                                                // Just write the contents to screen.
    174174                                                echo '<p>';
    175                                                 _e( 'A configuration file could not be created. No problem, but you will need to save the text shown below into a file named <code>bb-config.php</code> in the root directory of your WordPress installation before you can start using the forum functionality.', 'buddypress' );
     175                                                printf( __( 'A configuration file could not be created. No problem, but you will need to save the text shown below into a file named %s in the root directory of your WordPress installation before you can start using the forum functionality.', 'buddypress' ), '<code>bb-config.php</code>' );
    176176                                                echo '</p>';
    177177                                                ?>
    178178                                                <textarea style="display:block; margin-top: 30px; width: 80%;" rows="50"><?php echo esc_textarea( $result ); ?></textarea>