如何在 Discourse 中设置本地化的 `membership_level` 文本?

我发现术语 membership_level 在我的非中文论坛自动消息中未被翻译(%{membership_level} 在实际私信中显示为“a member”)。通过搜索该术语,看起来仅通过在此处编辑文本无法更改它。请问有什么方法可以修复这个问题吗?

您能否截图显示在用户界面中看到 membership_level 文本的位置?该占位符本不应直接翻译,而是应由 Discourse 替换为用户的会员等级。

另外,请告诉我们您的网站使用的是哪种语言环境。可能存在某个错误,导致无法为您的网站语言环境替换该占位符。

1 个赞

Can you post a screenshot of where in the user interface you are seeing the membership_level text?

Here is what I found when check system private message to a user:

where both in title and body %{membership_level} becomes “a member”, but I expect it to be substituted with a Chinese translation.

Can you also let us know which locale you are using on your site?

I set default locale to Chinese.

5 个赞

感谢您报告该问题。我已在 FIX: System message wasn't fully translatable · discourse/discourse@31c1d57 · GitHub 中修复了它。

新的字符串将很快出现在 translate.discourse.org 上以供翻译。

5 个赞