diff --git a/wp-signup.php b/wp-signup.php index a0998c91db..baceca29df 100644 --- a/wp-signup.php +++ b/wp-signup.php @@ -386,8 +386,14 @@ if ( !$active_signup ) $active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user" +// Make the signup type translatable. +$i18n_signup['all'] = _x('all', 'Mulitisite active signup type'); +$i18n_signup['none'] = _x('none', 'Mulitisite active signup type'); +$i18n_signup['blog'] = _x('blog', 'Mulitisite active signup type'); +$i18n_signup['user'] = _x('user', 'Mulitisite active signup type'); + if ( is_super_admin() ) - echo '
' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “%s” registrations. To change or disable registration go to your Options page.' ), $active_signup, esc_url( network_admin_url( 'ms-options.php' ) ) ) . '
'; + echo '
' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “%s” registrations. To change or disable registration go to your Options page.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'ms-options.php' ) ) ) . '
'; $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;