Code Duplication    Length = 9-9 lines in 2 locations

wp-admin/install.php 1 location

@@ 286-294 (lines=9) @@
283
$scripts_to_print = array( 'jquery' );
284
285
switch($step) {
286
	case 0: // Step 0
287
		if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) {
288
			$scripts_to_print[] = 'language-chooser';
289
			display_header( 'language-chooser' );
290
			echo '<form id="setup" method="post" action="?step=1">';
291
			wp_install_language_form( $languages );
292
			echo '</form>';
293
			break;
294
		}
295
296
		// Deliberately fall through if we can't reach the translations API.
297

wp-admin/setup-config.php 1 location

@@ 116-124 (lines=9) @@
113
}
114
115
switch($step) {
116
	case -1:
117
		if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) {
118
			setup_config_display_header( 'language-chooser' );
119
			echo '<h1 class="screen-reader-text">Select a default language</h1>';
120
			echo '<form id="setup" method="post" action="?step=0">';
121
			wp_install_language_form( $languages );
122
			echo '</form>';
123
			break;
124
		}
125
126
		// Deliberately fall through if we can't reach the translations API.
127