# 翻译缺失：en.dashboard.problem.deprecated\_linked\_in\_auth

**URL:** https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655
**Category:** Bug
**Tags:** fixed
**Created:** [2024年七月22日 18:27 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655 "2024-07-22T18:27:28Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![BryanV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryanv/32/226479_2.png) [@BryanV](https://meta.discourse.org/u/BryanV)
#### Post date: [2024年七月22日 18:27 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/1 "2024-07-22T18:27:28Z")

</div>

在最近更新到 3.3.0.beta5-dev ([a267c0727d](https://github.com/discourse/discourse/commits/a267c0727d1d8a25d7eae7a594a0b864e53ec954)) 后，我在管理员仪表板中收到此持续的警告/错误（刷新无济于事）：

 ![Screenshot 2024-07-22 at 11.24.50](https://global.discourse-cdn.com/meta/original/4X/4/3/7/437f53317441855e85c2e647a20aa99b979ac02b.png)

请注意，作为更新的一部分，我已完全删除旧的 linked up 插件，现在所有内容都显示为最新：

 ![Screenshot 2024-07-22 at 11.26.21](https://global.discourse-cdn.com/meta/original/4X/c/e/2/ce2173a514fb5741238bfba238ba4f95b4f9243f.png)

此外，登录时链接根本没有启用：

 ![Screenshot 2024-07-22 at 11.27.01](https://global.discourse-cdn.com/meta/original/4X/3/4/b/34b494f471e962c4832bf8e632e3fad6d298a31a.png)

如何才能让此错误消息消失？

---

<div class="post-metadata">

### Author: ![BryanV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryanv/32/226479_2.png) [@BryanV](https://meta.discourse.org/u/BryanV)
#### Post date: [2024年七月23日 22:42 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/2 "2024-07-23T22:42:51Z")

</div>

或者，这应该被报告为错误吗？

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年七月28日 05:08 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/6 "2024-07-28T05:08:52Z")

</div>

合并后应该可以修复 🥳

> <https://github.com/discourse/discourse-linkedin-auth/pull/70>
>
> \### What is this fix?
> 
> We had a hard-coded problem check message using the \`#m…essage\` method. We removed support from this in core, so the translation is now showing as missing.
> 
> This fixes that by moving the translation to the locale file, and adds a test for it.

---

<div class="post-metadata">

### Author: ![BryanV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryanv/32/226479_2.png) [@BryanV](https://meta.discourse.org/u/BryanV)
#### Post date: [2024年七月28日 20:28 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/7 "2024-07-28T20:28:12Z")

</div>

感谢 @JammyDodger，FYI，在我看到这条消息之前，我曾尝试再次更新以查看是否有帮助。通常更新是一个轻松的过程，但无论我最终提交到哪个版本，似乎在某些方面都完全损坏了。管理页面完全无法访问，并且某些页面渲染错误。我尝试从 shell 控制台再次更新，但问题仍然存在。目前的版本是：

```plaintext
commit f7855481fb68b0726753a35952635196a65fd459 (HEAD -> main, origin/main, origin/HEAD)

```

是否有“已知良好提交”可以让我回滚到之前的版本？我是否可以直接在 shell 中检出那个较早的哈希值然后重新构建，或者是否有其他回滚步骤？

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2024年七月28日 20:35 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/8 "2024-07-28T20:35:32Z")

</div>

> [@BryanV](#):
>
> 管理页面完全无法访问，并且某些页面渲染错误。

尝试

> [@Resolving "SyntaxError: Unexpected identifier #..." caused by Cloudflare Auto Minify](https://meta.discourse.org/t/resolving-syntaxerror-unexpected-identifier-caused-by-cloudflare-auto-minify/311390):
>
> Cloudflare’s [‘Auto Minify’](https://developers.cloudflare.com/speed/optimization/content/auto-minify/) feature will break recent versions of Discourse. In the browser console, you will see an error like: Uncaught SyntaxError: Unexpected identifier '#...' Cloudflare are aware of the issue, and have added this message to their dashboard: Note: Please note that this feature may not be fully compatible with certain newer CSS and JS language features, which could potentially affect the functionality of the site Unfortunately, despite this critical issue, the feature wi…

---

<div class="post-metadata">

### Author: ![BryanV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryanv/32/226479_2.png) [@BryanV](https://meta.discourse.org/u/BryanV)
#### Post date: [2024年七月28日 20:40 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/9 "2024-07-28T20:40:45Z")

</div>

就是那个问题，谢谢 @Moin

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [2024年八月1日 11:57 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/11 "2024-08-01T11:57:17Z")

</div>

此主题已在 3 天后自动关闭。不再允许回复。

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年八月21日 18:13 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/12 "2024-08-21T18:13:51Z")

</div>



---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2024年八月21日 18:24 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/13 "2024-08-21T18:24:54Z")

</div>

我猜这是同一个 bug，和 [Translation missing: en.dashboard.problem.discourse\_automation - #7 by ted](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-discourse-automation/322164/7?u=moin) 一样

---

<div class="post-metadata">

### Author: ![BryanV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryanv/32/226479_2.png) [@BryanV](https://meta.discourse.org/u/BryanV)
#### Post date: [2024年八月21日 18:30 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/14 "2024-08-21T18:30:19Z")

</div>

我在其他主题中运行了命令（我想是的，我对 rails 不熟悉）：

```sh
root@bokeh-discourse:~# cd /var/discourse
root@bokeh-discourse:/var/discourse# ./launcher enter app
x86_64 arch detected.
root@bokeh-discourse-app:/var/www/discourse# rails c
[1] pry(main)> ProblemCheckTracker.where(identifier: "discourse_automation").delete_all
[1] pry(main)> ProblemCheckTracker.where(identifier: "discourse_automation").delete_all
=> 0
[2] pry(main)> AdminNotice.where(identifier: "discourse_automation").delete_all
[2] pry(main)> AdminNotice.where(identifier: "discourse_automation").delete_all
=> 0
[3] pry(main)> exit
root@bokeh-discourse-app:/var/www/discourse#

```

但是错误消息仍然显示在管理员面板上（刷新后仍然如此）。

 ![Screenshot 2024-08-21 at 11.30.47](https://global.discourse-cdn.com/meta/original/4X/c/9/2/c929afff432093faa55a4af72f7f000de5b82840.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年八月21日 18:44 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/15 "2024-08-21T18:44:44Z")

</div>

这些命令将针对 Automation 插件消息。您需要将其替换为 LinkedIn 插件名称（我认为是 `discourse-linkedin-auth`）。

---

<div class="post-metadata">

### Author: ![BryanV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryanv/32/226479_2.png) [@BryanV](https://meta.discourse.org/u/BryanV)
#### Post date: [2024年八月21日 18:59 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/16 "2024-08-21T18:59:55Z")

</div>

嗯，我尝试了各种变体（基于其他使用下划线而不是连字符，以及管理员消息拆分“linked”和“in”），但它们都返回 0 条记录，并且消息仍然出现：

```sh
[5] pry(main)> AdminNotice.where(identifier: "discourse-linkedin-auth").delete_all
=> 0
[6] pry(main)> AdminNotice.where(identifier: "discourse_linkedin_auth").delete_all
=> 0
[7] pry(main)> AdminNotice.where(identifier: "discourse_linked_in_auth").delete_all
=> 0
[8] pry(main)> AdminNotice.where(identifier: "discourse-linked-in-auth").delete_all
=> 0
[3] pry(main)> ProblemCheckTracker.where(identifier: "discourse-linkedin-auth").delete_all
=> 0
[9] pry(main)> ProblemCheckTracker.where(identifier: "discourse_linkedin_auth").delete_all
=> 0
[10] pry(main)> ProblemCheckTracker.where(identifier: "discourse_linked_in_auth").delete_all
=> 0
[11] pry(main)> ProblemCheckTracker.where(identifier: "discourse-linked-in-auth").delete_all

```

有没有办法查找或确定正确的标识符？

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年八月21日 19:09 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/17 "2024-08-21T19:09:39Z")

</div>

答案可能在屏幕截图中。尝试 `deprecated_linked_in_auth`

---

<div class="post-metadata">

### Author: ![BryanV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryanv/32/226479_2.png) [@BryanV](https://meta.discourse.org/u/BryanV)
#### Post date: [2024年八月21日 20:49 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/18 "2024-08-21T20:49:26Z")

</div>

> [@JammyDodger](#):
>
> 已弃用的\_linked\_in\_auth

那个奏效了！ 🙏

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2024年八月25日 09:33 UTC](https://meta.discourse.org/t/translation-missing-en-dashboard-problem-deprecated-linked-in-auth/317655/19 "2024-08-25T09:33:17Z")

</div>


