LTR text is displayed wrong in an RTL interface and vice versa

Hey,
So the issue is that user interface language should not effect how language is displayed.
If you are reading a thread for example in English, but in a RTL language, the English should be aligned to the left, regardless to the interface.
Same goes for reading an RTL language in an English interface.

The is the expected behaviour in all RTL sites.

To give you the idea, I am attaching here an image of the FAQ when viewed from the Hebrew interface.

1 个赞

For sites that have enabled the support mixed text direction setting, the text direction of posts will be set based on the language used in the post. See What does the support mixed text direction setting do? for more details. This setting is not enabled on try.discourse.org.

Your screenshot brings up a good point though. the FAQ, Terms of Service, and Privacy pages are not regular Discourse posts, so they do not get their direction set correctly even if the support mixed text direction setting is enabled.

4 个赞

Is there a way to test the mixed text direction?
Also is there a reason this is not default?

The setting isn’t enabled by default because it isn’t needed for most sites. Since the text is parsed in the user’s web browser, enabling the setting adds some extra work to the browser. At the moment, the only way to test it out is to either join a site that it’s enabled on, or to setup your own Discourse site and see if it does what you’re looking for.

The setting is enabled on one busy site that I’m aware of, and seems to be working well for its users.

3 个赞

它在帖子中也没有启用,对吗?

1 个赞

如果启用“支持混合文本方向”设置,所有帖子的文本方向应根据语言自动设置。如果已启用该设置,请尝试刷新页面,看看是否能解决此问题。

现在进行测试,我发现标题的文本方向不再被正确设置。以前是可以的:

有趣的是,一个曾经导致 FAQ、服务条款和隐私页面文本方向未被正确设置的旧问题现已修复:

当我于 2018 年进行测试时,上面框中的文本将错误地显示为 RTL(基于站点的区域设置)。

2 个赞