# Texto LTR exibido incorretamente em interface RTL e vice-versa

**URL:** https://meta.discourse.org/t/ltr-text-is-displayed-wrong-in-an-rtl-interface-and-vice-versa/96330
**Category:** Bug
**Created:** [Setembro 4, 2018, 2:51pm UTC](https://meta.discourse.org/t/ltr-text-is-displayed-wrong-in-an-rtl-interface-and-vice-versa/96330 "2018-09-04T14:51:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![guysoft](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/guysoft/32/109661_2.png) [@guysoft](https://meta.discourse.org/u/guysoft)
#### Post date: [Setembro 4, 2018, 2:51pm UTC](https://meta.discourse.org/t/ltr-text-is-displayed-wrong-in-an-rtl-interface-and-vice-versa/96330/1 "2018-09-04T14:51:51Z")

</div>

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.

 ![Screenshot_20180904_174959](https://global.discourse-cdn.com/meta/original/3X/6/4/640eef61922d0d4dadb96cb899daf418c7992b05.png)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [Setembro 4, 2018, 6:38pm UTC](https://meta.discourse.org/t/ltr-text-is-displayed-wrong-in-an-rtl-interface-and-vice-versa/96330/2 "2018-09-04T18:38:50Z")

</div>

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 [Supporting mixed text directions](https://meta.discourse.org/t/what-does-the-support-mixed-text-direction-setting-do/91247) for more details. This setting is not enabled on [try.discourse.org](http://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.

---

<div class="post-metadata">

### Author: ![guysoft](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/guysoft/32/109661_2.png) [@guysoft](https://meta.discourse.org/u/guysoft)
#### Post date: [Setembro 4, 2018, 8:33pm UTC](https://meta.discourse.org/t/ltr-text-is-displayed-wrong-in-an-rtl-interface-and-vice-versa/96330/3 "2018-09-04T20:33:48Z")

</div>

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

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [Setembro 4, 2018, 10:23pm UTC](https://meta.discourse.org/t/ltr-text-is-displayed-wrong-in-an-rtl-interface-and-vice-versa/96330/4 "2018-09-04T22:23:06Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![ARHAEEM](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arhaeem/32/310459_2.png) [@ARHAEEM](https://meta.discourse.org/u/ARHAEEM)
#### Post date: [Junho 16, 2023, 2:44pm UTC](https://meta.discourse.org/t/ltr-text-is-displayed-wrong-in-an-rtl-interface-and-vice-versa/96330/7 "2023-06-16T14:44:15Z")

</div>

Também não está habilitado nas postagens, certo?

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/a/5/aa59af07e8e7b7c6986f400dc347475ff56dcb03.png)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [Junho 16, 2023, 7:48pm UTC](https://meta.discourse.org/t/ltr-text-is-displayed-wrong-in-an-rtl-interface-and-vice-versa/96330/8 "2023-06-16T19:48:49Z")

</div>

Se você habilitar a configuração `support mixed text direction` (suportar direções de texto mistas), a direção do texto para todo o conteúdo das postagens deverá ser definida automaticamente com base no idioma. Se você habilitou essa configuração, tente atualizar a página para ver se isso resolve o problema.

Testando isso agora, estou descobrindo que a direção do texto dos títulos não está mais sendo definida corretamente. Isso costumava funcionar:

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/4/b/24b484f53e1ca73d7bf4e20d550d2eb981aa1156.png)

Curiosamente, um problema antigo que causava a não definição correta da direção do texto das páginas de FAQ, Termos de Serviço e Privacidade foi corrigido:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/9/4/e9493151501301ab2dfbaae493e18cdf1219dbf9.png)

Quando testei isso em 2018, o texto na caixa acima teria sido exibido incorretamente como RTL (com base na localidade do site).
