Language on install: Docs and naming cleanups. see #28577.

git-svn-id: https://develop.svn.wordpress.org/trunk@29018 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2014-07-07 21:48:50 +00:00
parent e42b41d8f5
commit 8f15bef515
4 changed files with 63 additions and 51 deletions

View File

@@ -179,10 +179,10 @@ if ( ! is_string( $wpdb->base_prefix ) || '' === $wpdb->base_prefix ) {
switch($step) {
case 0: // Step 0
if ( empty( $_GET['language'] ) && ( $body = wp_get_available_translations() ) ) {
if ( empty( $_GET['language'] ) && ( $languages = wp_get_available_translations_from_api() ) ) {
display_header( 'language-chooser' );
echo '<form id="setup" method="post" action="?step=1">';
wp_install_language_form( $body );
wp_install_language_form( $languages );
echo '</form>';
break;
}