Ticket #6907: 6907.patch
File 6907.patch, 3.8 KB (added by , 9 years ago) |
---|
-
src/bp-forums/deprecated/1.6.php
137 137 case 'existing': 138 138 if ( isset( $_REQUEST['doinstall'] ) && ( 1 == (int) $_REQUEST['doinstall'] ) ) { 139 139 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>' ); 141 141 } else { 142 142 ?> 143 143 <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><?php144 <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 145 145 } 146 146 } else { ?> 147 147 148 148 <form action="" method="post"> 149 149 <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> 152 152 <p><input type="submit" class="button-primary" value="<?php esc_attr_e( 'Complete Installation', 'buddypress' ) ?>" /></p> 153 153 <input type="hidden" name="step" value="existing" /> 154 154 <input type="hidden" name="doinstall" value="1" /> … … 166 166 switch ( $result ) { 167 167 case 1: 168 168 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>' ); 170 170 echo '</p>'; 171 171 break; 172 172 default: 173 173 // Just write the contents to screen. 174 174 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>' ); 176 176 echo '</p>'; 177 177 ?> 178 178 <textarea style="display:block; margin-top: 30px; width: 80%;" rows="50"><?php echo esc_textarea( $result ); ?></textarea>