From 574defbee1a50c37cf30cdf2e7487daf6c142c30 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@14821 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;