Ticket #8652: 8652_textchgs.diff
File 8652_textchgs.diff, 4.2 KB (added by , 16 years ago) |
---|
-
wp-admin/includes/theme-install.php
249 249 function install_themes_upload($page = 1) { 250 250 ?> 251 251 <h4><?php _e('Install a theme in .zip format') ?></h4> 252 <p><?php _e('If you have a theme in a .zip format, You may install it by uploading it here.') ?></p>252 <p><?php _e('If you have a theme in a .zip format, you may install it by uploading it here.') ?></p> 253 253 <form method="post" enctype="multipart/form-data" 254 254 action="<?php echo admin_url('theme-install.php?tab=do_upload') ?>"><?php wp_nonce_field( 'theme-upload') ?> 255 255 <input type="file" name="themezip" /> <input type="submit" … … 488 488 check_admin_referer('theme-upload'); 489 489 490 490 echo '<div class="wrap">'; 491 echo '<h2>', sprintf( __('Installing Theme from file: %s'), basename($filename) ), '</h2>';491 echo '<h2>', sprintf( __('Installing theme from file: %s'), basename($filename) ), '</h2>'; 492 492 493 493 //Handle a newly uploaded file, Else assume it was 494 494 if ( !empty($_FILES) ) { … … 524 524 wp_die($api); 525 525 526 526 echo '<div class="wrap">'; 527 echo '<h2>', sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version ), '</h2>';527 echo '<h2>', sprintf( __('Installing theme: %s'), $api->name . ' ' . $api->version ), '</h2>'; 528 528 529 529 do_theme_install($api->download_link, $api); 530 530 echo '</div>'; … … 543 543 global $wp_filesystem; 544 544 545 545 if ( empty($download_url) ) { 546 show_message( __('No theme Specified') );546 show_message( __('No theme specified') ); 547 547 return; 548 548 } 549 549 … … 578 578 579 579 $install_actions = apply_filters('install_theme_complete_actions', array( 580 580 //'activate_theme' => '<a href="' . wp_nonce_url('themes.php?action=activate&theme=' . $theme_file, 'activate-theme_' . $theme_file) . '" title="' . attribute_escape(__('Activate this theme')) . '" target="_parent">' . __('Activate Theme') . '</a>', 581 'themes_page' => '<a href="' . admin_url('themes.php') . '" title="' . attribute_escape(__(' Goto themes page')) . '" target="_parent">' . __('Return to Themes page') . '</a>'581 'themes_page' => '<a href="' . admin_url('themes.php') . '" title="' . attribute_escape(__('Return to Themes page')) . '" target="_parent">' . __('Return to Themes page') . '</a>' 582 582 ), $theme_information, $theme_file); 583 583 if ( ! empty($install_actions) ) 584 584 show_message('<strong>' . __('Actions:') . '</strong> ' . implode(' | ', (array)$install_actions)); … … 598 598 global $wp_filesystem; 599 599 600 600 if ( empty($package) ) { 601 show_message( __('No theme Specified') );601 show_message( __('No theme specified') ); 602 602 return; 603 603 } 604 604 … … 669 669 // Get the base theme folder 670 670 $themes_dir = $wp_filesystem->wp_themes_dir(); 671 671 if ( empty($themes_dir) ) 672 return new WP_Error('fs_no_themes_dir', __('Unable to locate WordPress Themedirectory.'));672 return new WP_Error('fs_no_themes_dir', __('Unable to locate WordPress themes directory.')); 673 673 674 674 // And the same for the Content directory. 675 675 $content_dir = $wp_filesystem->wp_content_dir(); 676 676 if ( empty($content_dir) ) 677 return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress Content directory (wp-content).'));677 return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress content directory (wp-content).')); 678 678 679 679 $themes_dir = trailingslashit( $themes_dir ); 680 680 $content_dir = trailingslashit( $content_dir ); … … 769 769 //Get the base theme folder 770 770 $themes_dir = $wp_filesystem->wp_themes_dir(); 771 771 if ( empty($themes_dir) ) 772 return new WP_Error('fs_no_themes_dir', __('Unable to locate WordPress Themedirectory.'));772 return new WP_Error('fs_no_themes_dir', __('Unable to locate WordPress themes directory.')); 773 773 774 774 //And the same for the Content directory. 775 775 $content_dir = $wp_filesystem->wp_content_dir(); 776 776 if ( empty($content_dir) ) 777 return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress Content directory (wp-content).'));777 return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress content directory (wp-content).')); 778 778 779 779 $themes_dir = trailingslashit( $themes_dir ); 780 780 $content_dir = trailingslashit( $content_dir );