X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..88550bc3400cc7c035ff590ecb007c7938041ded:/wp-admin/options-general.php diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 70118855..629c4d2f 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -9,6 +9,9 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); +/** WordPress Translation Install API */ +require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); + if ( ! current_user_can( 'manage_options' ) ) wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); @@ -27,6 +30,20 @@ function options_general_add_js() { @@ -65,7 +91,8 @@ if ( ! is_multisite() ) { '

' . __('If you want site visitors to be able to register themselves, as opposed to by the site administrator, check the membership box. A default user role can be set for all new users, whether self-registered or registered by the site admin.') . '

'; } -$options_help .= '

' . __('UTC means Coordinated Universal Time.') . '

' . +$options_help .= '

' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '

' . + '

' . __( 'UTC means Coordinated Universal Time.' ) . '

' . '

' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '

'; get_current_screen()->add_help_tab( array( @@ -305,10 +332,11 @@ endfor; @@ -320,10 +348,12 @@ if ( $languages ) { } wp_dropdown_languages( array( - 'name' => 'WPLANG', - 'id' => 'WPLANG', - 'selected' => $locale, - 'languages' => $languages, + 'name' => 'WPLANG', + 'id' => 'WPLANG', + 'selected' => $locale, + 'languages' => $languages, + 'translations' => $translations, + 'show_available_translations' => ( ! is_multisite() || is_super_admin() ) && wp_can_install_language_pack(), ) ); // Add note about deprecated WPLANG constant.