# 我在哪里可以更改登录失败后的文本："已有一个使用 Discourse 提供的用户名注册的账户。..."

**URL:** <https://meta.discourse.org/t/where-can-i-change-text-after-failed-login-there-is-already-an-account-registered-with-the-username-supplied-by-discourse/357393>\
**Category:** WordPress\
**Created:** [2025年三月15日 12:47 UTC](https://meta.discourse.org/t/where-can-i-change-text-after-failed-login-there-is-already-an-account-registered-with-the-username-supplied-by-discourse/357393 "2025-03-15T12:47:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)\
**Post date:** [2025年三月15日 12:47 UTC](https://meta.discourse.org/t/where-can-i-change-text-after-failed-login-there-is-already-an-account-registered-with-the-username-supplied-by-discourse/357393/1 "2025-03-15T12:47:56Z")

</div>

嘿，各位，

我可以在哪里更改以下错误消息，在 [WP Discourse](https://github.com/discourse/wp-discourse) 插件设置中找不到文本片段：

> Discourse 提供的用户名已注册一个帐户。如果这是您，请通过 WordPress 登录并访问您的个人资料页面以将您的帐户与 Discourse 同步

在我的特定情况下，我想将其翻译成德语并进行一些自定义。

---

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2025年三月15日 13:12 UTC](https://meta.discourse.org/t/where-can-i-change-text-after-failed-login-there-is-already-an-account-registered-with-the-username-supplied-by-discourse/357393/3 "2025-03-15T13:12:54Z")

</div>

此错误的上下文是什么？\n\n无论我搜索哪里，都找不到任何匹配项。

---

<div class="post-metadata">

**Author:** ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)\
**Post date:** [2025年三月15日 14:05 UTC](https://meta.discourse.org/t/where-can-i-change-text-after-failed-login-there-is-already-an-account-registered-with-the-username-supplied-by-discourse/357393/4 "2025-03-15T14:05:59Z")

</div>

当用户尝试通过 [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) 登录 WP 网站时，会出现这种情况，并且 Discourse 和 WP 实例上都存在具有相同电子邮件地址但尚未链接的帐户。

---

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2025年三月15日 15:32 UTC](https://meta.discourse.org/t/where-can-i-change-text-after-failed-login-there-is-already-an-account-registered-with-the-username-supplied-by-discourse/357393/5 "2025-03-15T15:32:53Z")

</div>

好的，我找到了：

> <https://github.com/discourse/wp-discourse/blob/main/lib/sso-client/client.php#L369>

您需要一个像 [Loco Translate – WordPress plugin | WordPress.org](https://wordpress.org/plugins/loco-translate/) 这样的插件，或者类似的插件来轻松翻译插件字符串。

 ![该图像显示了一个网页开发工具中的翻译界面，其中部分可见与 Discourse 和 WordPress 设置相关的英文“源文本”。 (由 AI 题注)](https://global.discourse-cdn.com/meta/original/4X/3/f/8/3f8c59728fc2e2dc0ad2228c2ec9f4ab4940a077.png)

---

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [2025年三月17日 08:13 UTC](https://meta.discourse.org/t/where-can-i-change-text-after-failed-login-there-is-already-an-account-registered-with-the-username-supplied-by-discourse/357393/6 "2025-03-17T08:13:01Z")

</div>

如果您希望翻译插件中的所有字符串，请使用诸如 Loco Translate 或 WPML 之类的解决方案。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2025年四月16日 08:13 UTC](https://meta.discourse.org/t/where-can-i-change-text-after-failed-login-there-is-already-an-account-registered-with-the-username-supplied-by-discourse/357393/7 "2025-04-16T08:13:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
