- Timestamp:
- 11/18/2015 05:20:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r33984 r35662 252 252 $folder = untrailingslashit($folder); 253 253 254 if ( $this->verbose ) 255 printf( "\n" . __('Looking for %1$s in %2$s') . "<br/>\n", $folder, $base ); 254 if ( $this->verbose ) { 255 /* translators: 1: folder to locate, 2: folder to start searching from */ 256 printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br/>\n", $folder, $base ); 257 } 256 258 257 259 $folder_parts = explode('/', $folder); … … 277 279 // Let's try that folder: 278 280 $newdir = trailingslashit(path_join($base, $key)); 279 if ( $this->verbose ) 280 printf( "\n" . __('Changing to %s') . "<br/>\n", $newdir ); 281 if ( $this->verbose ) { 282 /* translators: %s: directory name */ 283 printf( "\n" . __( 'Changing to %s' ) . "<br/>\n", $newdir ); 284 } 281 285 282 286 // Only search for the remaining path tokens in the directory, not the full path again. … … 287 291 } 288 292 289 // Only check this as a last resort, to prevent locating the incorrect install. All above procedures will fail quickly if this is the right branch to take. 293 // Only check this as a last resort, to prevent locating the incorrect install. 294 // All above procedures will fail quickly if this is the right branch to take. 290 295 if (isset( $files[ $last_path ] ) ) { 291 if ( $this->verbose ) 292 printf( "\n" . __('Found %s') . "<br/>\n", $base . $last_path ); 296 if ( $this->verbose ) { 297 /* translators: %s: directory name */ 298 printf( "\n" . __( 'Found %s' ) . "<br/>\n", $base . $last_path ); 299 } 293 300 return trailingslashit($base . $last_path); 294 301 }
Note: See TracChangeset
for help on using the changeset viewer.