I18N: Merge duplicate strings in notifications displayed when a new user has been created or added to the site.

Props ramiy.
Fixes #35746.

git-svn-id: https://develop.svn.wordpress.org/trunk@45542 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-06-15 18:56:47 +00:00
parent 31d865271b
commit 69fabdbd4d
3 changed files with 29 additions and 17 deletions

View File

@@ -293,12 +293,17 @@ if ( isset( $_GET['update'] ) ) {
$messages[] = __( 'Invitation email sent to user. A confirmation link must be clicked for them to be added to your site.' );
break;
case 'addnoconfirmation':
if ( empty( $edit_link ) ) {
$messages[] = __( 'User has been added to your site.' );
} else {
/* translators: %s: edit page url */
$messages[] = sprintf( __( 'User has been added to your site. <a href="%s">Edit user</a>' ), $edit_link );
$message = __( 'User has been added to your site.' );
if ( $edit_link ) {
$message .= sprintf(
' <a href="%s">%s</a>',
$edit_link,
__( 'Edit user' )
);
}
$messages[] = $message;
break;
case 'addexisting':
$messages[] = __( 'That user is already a member of this site.' );