Changeset 10680
- Timestamp:
- 03/23/2016 03:10:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-forums/deprecated/1.6.php
r10267 r10680 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 /* translators: %s: bb-config.php */ 141 printf( __( 'The %s file was not found at that location. Please try again.', 'buddypress' ), '<code>bb-config.php</code>' ); 141 142 } else { 142 143 ?> 143 144 <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 145 <?php /* translators: %s: bb-config.php */ ?> 146 <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 147 } 146 148 } else { ?> … … 148 150 <form action="" method="post"> 149 151 <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> 152 <?php /* translators: %s: bb-config.php */ ?> 153 <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> 154 <?php /* translators: %s: bb-config.php */ ?> 155 <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 esc_attr( str_replace( 'buddypress', '', $_SERVER['DOCUMENT_ROOT'] ) ) ?>" /></p> 152 156 <p><input type="submit" class="button-primary" value="<?php esc_attr_e( 'Complete Installation', 'buddypress' ) ?>" /></p> 153 157 <input type="hidden" name="step" value="existing" /> … … 167 171 case 1: 168 172 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' ); 173 /* translators: %s: bb-config.php */ 174 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 175 echo '</p>'; 171 176 break; … … 173 178 // Just write the contents to screen. 174 179 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' ); 180 /* translators: %s: bb-config.php */ 181 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 182 echo '</p>'; 177 183 ?>
Note: See TracChangeset
for help on using the changeset viewer.