From 3ae96b2e4307f391b502a100630f2e6fcc5c1233 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 23 May 2010 21:05:04 +0000 Subject: [PATCH] Make the signup type in the message for super admins translatable. Fixes #13506. git-svn-id: https://develop.svn.wordpress.org/trunk@14821 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-signup.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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;