# 能否在模板中翻译角色名称？

**URL:** <https://meta.discourse.org/t/is-it-possible-to-translate-role-name-in-a-template/146012>\
**Category:** Translations\
**Created:** [2020年三月29日 10:40 UTC](https://meta.discourse.org/t/is-it-possible-to-translate-role-name-in-a-template/146012 "2020-03-29T10:40:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evantill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/evantill/32/116219_2.png) [@evantill](https://meta.discourse.org/u/evantill)\
**Post date:** [2020年三月29日 10:40 UTC](https://meta.discourse.org/t/is-it-possible-to-translate-role-name-in-a-template/146012/1 "2020-03-29T10:40:39Z")

</div>

你好，

我尝试将 `system_messages.welcome_staff.text_body_template` 翻译成法语 🇫🇷，同时也希望借此解决以下问题：

> [@Some system messages keeps in english](https://meta.discourse.org/t/some-system-messages-keeps-in-english/145847):
>
> Hello, I’ve changed some messages of system, translating of english to portuguese, but one of them, keeps sending notification in english, even thought I already changed to portuguese. Does anyone knows why this is happening? The message is this one: system\_messages.welcome\_staff.text\_body\_template I already translated and one user just received this in english.

翻译基本成功，但模板中使用的角色变量 `%{role}` 未被翻译，导致显示为 `moderator`：

```
您的 moderator 角色已由团队成员授予。

作为 moderator，您现在可以访问管理界面。

能力越大，责任越大。如果您是首次担任 moderator 角色，请查阅《Moderation 指南》。

```

能否使其像组名一样被翻译？

 ![groups_ames](https://global.discourse-cdn.com/meta/original/3X/c/6/c675a558b2e23d7fc9d074d482473f997158d4b4.png)
