From a22099628ca9c117fd2ad5e190914ac2269711ec Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 7 Apr 2009 17:02:25 +0000 Subject: [PATCH] Translate tag filter keywords. see #8652 git-svn-id: http://svn.automattic.com/wordpress/trunk@10885 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/theme-install.php | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index 4be20051c..d7990988f 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -178,19 +178,35 @@ function install_themes_dashboard() { '; + $trans = array ('Colors' => __('Colors'), 'black' => __('Black'), 'blue' => __('Blue'), 'brown' => __('Brown'), + 'green' => __('Green'), 'orange' => __('Orange'), 'pink' => __('Pink'), 'purple' => __('Purple'), 'red' => __('Red'), + 'silver' => __('Silver'), 'tan' => __('Tan'), 'white' => __('White'), 'yellow' => __('Yellow'), 'dark' => __('Dark'), + 'light' => __('Light'), 'Columns' => __('Columns'), 'one-column' => __('One Column'), 'two-columns' => __('Two Columns'), + 'three-columns' => __('Three Columns'), 'four-columns' => __('Four Columns'), 'left-sidebar' => __('Left Sidebar'), + 'right-sidebar' => __('Right Sidebar'), 'Width' => __('Width'), 'fixed-width' => __('Fixed Width'), 'flexible-width' => __('Flexible Width'), + 'Features' => __('Features'), 'custom-colors' => __('Custom Colors'), 'custom-header' => __('Custom Header'), 'theme-options' => __('Theme Options'), + 'threaded-comments' => __('Threaded Comments'), 'sticky-post' => __('Sticky Post'), 'microformats' => __('Microformats'), + 'Subject' => __('Subject'), 'holiday' => __('Holiday'), 'photoblogging' => __('Photoblogging'), 'seasonal' => __('Seasonal'), + ); foreach ( (array) $feature_list as $feature_name => $features ) { - $html_safe['feature_name'] = wp_specialchars( $feature_name ); - echo '
' . $html_safe['feature_name'] . '
'; + if ( isset($trans[$feature_name]) ) + $feature_name = $trans[$feature_name]; + $feature_name = wp_specialchars( $feature_name ); + echo '
' . $feature_name . '
'; echo '
    '; foreach ( $features as $feature ) { - $html_safe['feature'] = wp_specialchars( $feature ); + $feature_name = $feature; + if ( isset($trans[$feature]) ) + $feature_name = $trans[$feature]; + $feature_name = wp_specialchars( $feature_name ); + $feature = attribute_escape($feature); ?>
  1. - - + +