jrgong
(jrgong)
15 مارس 2025، 12:47م
1
Hey guys,
Where can I change the following error message, can’t find the text snippet in WP Discourse Plugin settings:
There is already an account registered with the username supplied by Discourse. If this is you, login through WordPress and visit your profile page to sync your account with Discourse
In my particular case I want to translate it to German and customize it a bit
إعجاب واحد (1)
What is the context of this error?
I can’t find any occurrence no matter where I search.
إعجاب واحد (1)
jrgong
(jrgong)
15 مارس 2025، 2:05م
4
It happens when a user tries to login via Discourse SSO to a WP website and account with same email exists on both Discourse and WP instances but are not linked yet.
إعجاب واحد (1)
OK, I found it:
$message = __( "There is an exiting account with the email address you are attempting to login with. If you are trying to log in through Discourse, you need to first login through WordPress, visit your profile page, and click on the 'sync accounts' link.", 'wp-discourse' );
$errors->add( 'discourse_sso_existing_user', $message );
break;
case 'expired_nonce':
$message = __( 'Expired Nonce', 'wp-discourse' );
$errors->add( 'discourse_sso_expired_nonce', $message );
break;
case 'existing_user_login':
$message = __( 'There is already an account registered with the username supplied by Discourse. If this is you, login through WordPress and visit your profile page to sync your account with Discourse', 'wp-discourse' );
$errors->add( 'existing_user_login', $message );
break;
case 'no_matching_user':
$message = __( 'No WordPress user matches your Discourse user.', 'wp-discourse' );
$errors->add( 'discourse_sso_no_matching_user', $message );
break;
default:
$message = __( 'Unhandled Error', 'wp-discourse' );
You will need a plugin such Loco Translate – WordPress plugin | WordPress.org or similar to translate easily the plugin strings.
3 إعجابات
angus
(Angus McLeod)
17 مارس 2025، 8:13ص
6
If you wish to translate all of the strings in the plugin please use a solution such as Loco Translate or WPML.
إعجابَين (2)
system
(system)
تم إغلاقه في
16 أبريل 2025، 8:13ص
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.