Make WordPress Core


Ignore:
Timestamp:
11/18/2015 05:20:03 PM (9 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add translator comments for strings in wp-admin/includes/class-wp-filesystem-base.php.

See #34684.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-base.php

    r33984 r35662  
    252252        $folder = untrailingslashit($folder);
    253253
    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        }
    256258
    257259        $folder_parts = explode('/', $folder);
     
    277279                // Let's try that folder:
    278280                $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                }
    281285
    282286                // Only search for the remaining path tokens in the directory, not the full path again.
     
    287291        }
    288292
    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.
    290295        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            }
    293300            return trailingslashit($base . $last_path);
    294301        }
Note: See TracChangeset for help on using the changeset viewer.