Как настроить локализованный текст `membership_level` в Discourse?

I find this term membership_level did not get translated in my non-English forum auto message(%{membership_level} becomes “a member” in actual private message), by searching this term in text looks like there’s no way to change it from just editing the text here, is there a way to fix this?

image

Can you post a screenshot of where in the user interface you are seeing the membership_level text? That placeholder is not meant to be translated directly. It is supposed to be substituted with the user’s membership level by Discourse.

Can you also let us know which locale you are using on your site? There may be an error that is preventing the placeholder from being substituted for your site’s locale.

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 checking the system private message sent to a user:

In both the title and the body, %{membership_level} is displayed as “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 the default locale to Chinese.

5 лайков

Thanks for reporting that issue. I fixed it in FIX: System message wasn't fully translatable · discourse/discourse@31c1d57 · GitHub.

The new strings should soon appear on translate.discourse.org for translation.

5 лайков