Ticket #29487: 29487.diff
File 29487.diff, 1.5 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/translation-install.php
133 133 134 134 echo "<label class='screen-reader-text' for='language'>Select a default language</label>\n"; 135 135 echo "<select size='14' name='language' id='language'>\n"; 136 echo '<option value="" lang="en" selected="selected" data-continue="Continue" data-installed="1">English (United States)</option>'; 137 echo "\n";136 137 $selected = ' selected="selected"'; 138 138 139 139 if ( ! empty( $wp_local_package ) && isset( $languages[ $wp_local_package ] ) ) { 140 140 if ( isset( $languages[ $wp_local_package ] ) ) { 141 141 $language = $languages[ $wp_local_package ]; 142 printf( '<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n",142 printf( '<option value="%s" lang="%s"' . $selected . ' data-continue="%s"%s>%s</option>' . "\n", 143 143 esc_attr( $language['language'] ), 144 144 esc_attr( $language['iso'][1] ), 145 145 esc_attr( $language['strings']['continue'] ), … … 147 147 esc_html( $language['native_name'] ) ); 148 148 149 149 unset( $languages[ $wp_local_package ] ); 150 $selected = ''; 150 151 } 151 152 } 152 153 154 echo '<option value="" lang="en"' . $selected . ' data-continue="Continue" data-installed="1">English (United States)</option>'; 155 echo "\n"; 156 153 157 foreach ( $languages as $language ) { 154 158 printf( '<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n", 155 159 esc_attr( $language['language'] ),