From 4be6f034394592141f60fc47f0e54484bae070af Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 14 Mar 2008 19:56:43 +0000 Subject: [PATCH] i18n fixes from nbachiyski. fixes #6226 git-svn-id: http://svn.automattic.com/wordpress/trunk@7300 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-filesystem-ftpext.php | 6 +++--- wp-admin/includes/class-wp-filesystem-ftpsockets.php | 6 +++--- wp-admin/includes/template.php | 2 +- wp-admin/includes/widgets.php | 3 +-- wp-admin/theme-editor.php | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index a8a358505..9645f8d89 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -95,12 +95,12 @@ class WP_Filesystem_FTPext{ if( empty( $base ) ) $base = '/'; if( '/' != substr($base, -1) ) $base .= '/'; - if($echo) echo __('Changing to ') . $base .'
'; + if($echo) printf( __('Changing to %s') . '
', $base ); if( false === $this->chdir($base) ) return false; if( $this->exists($base . 'wp-settings.php') ){ - if($echo) echo __('Found ') . $base . 'wp-settings.php
'; + if($echo) printf( __('Found %s'), $base . 'wp-settings.php
' ); $this->wp_base = $base; return $this->wp_base; } @@ -115,7 +115,7 @@ class WP_Filesystem_FTPext{ foreach($arrPath as $key=>$folder){ if( $this->is_dir($base . $folder) ){ - if($echo) echo __('Found ') . $folder . ' ' . __('Changing to') . ' ' . $base . $folder . '/
'; + if($echo) echo sprintf( __('Found %s'), $folder ) . ' ' . sprintf( __('Changing to %s') . '
', $base . $folder . '/' ); return $this->find_base_dir($base . $folder . '/',$echo); } } diff --git a/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/wp-admin/includes/class-wp-filesystem-ftpsockets.php index 15ab39076..6b60e9b30 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -97,12 +97,12 @@ class WP_Filesystem_ftpsockets{ if( empty( $base ) ) $base = '/'; if( '/' != substr($base, -1) ) $base .= '/'; - if($echo) echo __('Changing to ') . $base .'
'; + if($echo) printf( __('Changing to %s') . '
', $base ); if( false === $this->chdir($base) ) return false; if( $this->exists($base . 'wp-settings.php') ){ - if($echo) echo __('Found ') . $base . 'wp-settings.php
'; + if($echo) printf( __('Found %s'), $base . 'wp-settings.php
' ); $this->wp_base = $base; return $this->wp_base; } @@ -117,7 +117,7 @@ class WP_Filesystem_ftpsockets{ foreach($arrPath as $key=>$folder){ if( $this->is_dir($base . $folder) ){ - if($echo) echo __('Found ') . $folder . ' ' . __('Changing to') . ' ' . $base . $folder . '/
'; + if($echo) echo sprintf( __('Found %s'), $folder ) . ' ' . sprintf( __('Changing to %s') . '
', $base . $folder . '/' ); return $this->find_base_dir($base . $folder . '/',$echo); } } diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 04f92cda9..9e78d9304 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -830,7 +830,7 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0 ) { $year = ''; $hour = ''; $minute = ''; - printf(__('%1$s%2$s%3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute); + printf(_c('%1$s%2$s%3$s @ %4$s : %5$s|1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input'), $month, $day, $year, $hour, $minute); ?> diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 101ce56b2..591990b35 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -92,7 +92,7 @@ $desc_header = ( $description != $file_show ) ? "$description (%s)" : "

- +