# Different behaviour of text direction for not logged-in visitors

**URL:** https://meta.discourse.org/t/different-behaviour-of-text-direction-for-not-logged-in-visitors/40747
**Category:** Bug
**Created:** [3월 8, 2016, 1:43오후 UTC](https://meta.discourse.org/t/different-behaviour-of-text-direction-for-not-logged-in-visitors/40747 "2016-03-08T13:43:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [3월 8, 2016, 1:43오후 UTC](https://meta.discourse.org/t/different-behaviour-of-text-direction-for-not-logged-in-visitors/40747/1 "2016-03-08T13:43:28Z")

</div>

we have set the discourse language to Persian and so the right to left direction. but for not logged-in visitors the system is in the left to right and non-translated option.

why? because i’ve selected “Allow users to choose their own language interface preference” option so that admin can use the English language (the Persian-translation of admin panel is not understandable).

if I un-select the option (Allow users to choose their own language interface preference), everything is fine. but until we can set better translation, we need this option.

is there a way to keep the landing page for not logged-in users in rtl-direction & Persian? (the  
default locale)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [3월 8, 2016, 11:05오후 UTC](https://meta.discourse.org/t/different-behaviour-of-text-direction-for-not-logged-in-visitors/40747/2 "2016-03-08T23:05:09Z")

</div>

Not sure, speak to @simon about it perhaps?

---

<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: [3월 8, 2016, 11:21오후 UTC](https://meta.discourse.org/t/different-behaviour-of-text-direction-for-not-logged-in-visitors/40747/3 "2016-03-08T23:21:02Z")

</div>

The language for non logged in users is being set be their browser’s language preference. My assumption is that Persian speakers will have their browser’s set to Persian. If that’s the case they should be getting the RTL layout of the site in the Persian language. The idea behind this is to make it easier for users to navigate the site before they have logged in.

I assume that when you log out you are getting the LTR layout because your browser is set to English.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [3월 8, 2016, 11:42오후 UTC](https://meta.discourse.org/t/different-behaviour-of-text-direction-for-not-logged-in-visitors/40747/4 "2016-03-08T23:42:34Z")

</div>

Is this behavior behind a site setting boolean? I agree that in almost all cases auto-detecting browser client language and setting it is desirable.. but in some rare cases it might _not_ be desirable.

---

<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: [3월 8, 2016, 11:54오후 UTC](https://meta.discourse.org/t/different-behaviour-of-text-direction-for-not-logged-in-visitors/40747/5 "2016-03-08T23:54:26Z")

</div>

> [@codinghorror](#):
>
> Is this behavior behind a site setting boolean?

No it’s not. It only applies when ‘allow user locale’ is enabled. Could it be enough to add a description to that setting? Otherwise I’d be happy to add a site setting for it.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [3월 8, 2016, 11:56오후 UTC](https://meta.discourse.org/t/different-behaviour-of-text-direction-for-not-logged-in-visitors/40747/6 "2016-03-08T23:56:41Z")

</div>

I think we should have a site setting to enable/disable this behavior, text can be:

> automatically change client user interface language based on web browser language headers

.. or similar
