mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
I18N: Add translator comments for strings in wp-admin/includes/class-wp-filesystem-base.php
.
See #34684. git-svn-id: https://develop.svn.wordpress.org/trunk@35662 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
61765f4fd3
commit
9f4eb39412
@ -251,8 +251,10 @@ class WP_Filesystem_Base {
|
|||||||
|
|
||||||
$folder = untrailingslashit($folder);
|
$folder = untrailingslashit($folder);
|
||||||
|
|
||||||
if ( $this->verbose )
|
if ( $this->verbose ) {
|
||||||
printf( "\n" . __('Looking for %1$s in %2$s') . "<br/>\n", $folder, $base );
|
/* translators: 1: folder to locate, 2: folder to start searching from */
|
||||||
|
printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "<br/>\n", $folder, $base );
|
||||||
|
}
|
||||||
|
|
||||||
$folder_parts = explode('/', $folder);
|
$folder_parts = explode('/', $folder);
|
||||||
$folder_part_keys = array_keys( $folder_parts );
|
$folder_part_keys = array_keys( $folder_parts );
|
||||||
@ -276,8 +278,10 @@ class WP_Filesystem_Base {
|
|||||||
|
|
||||||
// Let's try that folder:
|
// Let's try that folder:
|
||||||
$newdir = trailingslashit(path_join($base, $key));
|
$newdir = trailingslashit(path_join($base, $key));
|
||||||
if ( $this->verbose )
|
if ( $this->verbose ) {
|
||||||
printf( "\n" . __('Changing to %s') . "<br/>\n", $newdir );
|
/* translators: %s: directory name */
|
||||||
|
printf( "\n" . __( 'Changing to %s' ) . "<br/>\n", $newdir );
|
||||||
|
}
|
||||||
|
|
||||||
// Only search for the remaining path tokens in the directory, not the full path again.
|
// Only search for the remaining path tokens in the directory, not the full path again.
|
||||||
$newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) );
|
$newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) );
|
||||||
@ -286,10 +290,13 @@ class WP_Filesystem_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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.
|
// 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.
|
||||||
if (isset( $files[ $last_path ] ) ) {
|
if (isset( $files[ $last_path ] ) ) {
|
||||||
if ( $this->verbose )
|
if ( $this->verbose ) {
|
||||||
printf( "\n" . __('Found %s') . "<br/>\n", $base . $last_path );
|
/* translators: %s: directory name */
|
||||||
|
printf( "\n" . __( 'Found %s' ) . "<br/>\n", $base . $last_path );
|
||||||
|
}
|
||||||
return trailingslashit($base . $last_path);
|
return trailingslashit($base . $last_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user