# 翻译插件操作按钮对匿名用户可见并指向登录/注册页面

**URL:** <https://meta.discourse.org/t/translation-plugin-post-action-button-to-show-for-anonymous-users-and-direct-to-the-login-signup-page/286205>\
**Category:** Feature\
**Tags:** translator\
**Created:** [2023年十一月21日 13:50 UTC](https://meta.discourse.org/t/translation-plugin-post-action-button-to-show-for-anonymous-users-and-direct-to-the-login-signup-page/286205 "2023-11-21T13:50:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![loginerror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loginerror/32/156605_2.png) [@loginerror](https://meta.discourse.org/u/loginerror)\
**Post date:** [2023年十一月21日 13:50 UTC](https://meta.discourse.org/t/translation-plugin-post-action-button-to-show-for-anonymous-users-and-direct-to-the-login-signup-page/286205/1 "2023-11-21T13:50:56Z")

</div>

它与我在这里的[问题](https://meta.discourse.org/t/variable-default-interface-language-for-new-users/33741/48?u=loginerror)有关，回复是：

> [@Variable default interface language for new users](https://meta.discourse.org/t/variable-default-interface-language-for-new-users/33741/49?u=loginerror):
>
> Just an FYI, I don’t think the ‘Everyone’ group works properly with that Translator setting. It’s also not available to anons, so setting it to TL0 is the recommended group for that.

我进一步测试了这一点，确实——匿名用户甚至看不到翻译帖子操作按钮：  
 ![image](https://global.discourse-cdn.com/meta/original/4X/b/d/d/bdda563bc4cbf0872fd838d65fe55c39ed03fe40.png)

因此，如果有一个选项可以向匿名用户显示翻译按钮，并在他们点击时导航到登录/注册页面，那就太好了。这与点赞按钮现在的行为一致。

而且，经过一番思考，我猜想这个功能请求可以通过一个小型主题组件来解决。是这样吗？ 🙂

---

<div class="post-metadata">

**Author:** ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)\
**Post date:** [2023年十一月27日 12:48 UTC](https://meta.discourse.org/t/translation-plugin-post-action-button-to-show-for-anonymous-users-and-direct-to-the-login-signup-page/286205/6 "2023-11-27T12:48:04Z")

</div>

> [@loginerror](#):
>
> 经过进一步思考，我认为这个功能请求可以通过一个小的主题组件来解决。是这样吗？ 🙂

老实说，我看不出有什么理由不行 🙂

它将是一个小的主题组件，它

1. 添加一个链接到 /login 的图标
2. 仅对匿名用户显示

感觉这是 #Marketplace 的一个完美请求，但你当然也可以通过正常渠道联系我们。

---

<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:** [2023年十一月27日 13:03 UTC](https://meta.discourse.org/t/translation-plugin-post-action-button-to-show-for-anonymous-users-and-direct-to-the-login-signup-page/286205/7 "2023-11-27T13:03:29Z")

</div>

这听起来是个好主意，也是对插件的一个很好的补充。希望我们能遵循“三事定律”并将其纳入插件本身。🤞 🙂
