What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

We need riight-to-left layout, at least for messages, in our chat room: http://chat.stackoverflow.com/rooms/418/persian. How to achieve that?

share|improve this question

3 Answers 3

up vote 8 down vote accepted

The Stack Exchange sites (including the chat rooms) do not yet support localization. There is no way to set up a site or a chat room to properly display Persian text. Localization is planned but no date has been established, yet

share|improve this answer
Is it planned? BTW showing RTL text is a matter of setting dir="rtl" on parent element (e.g. 'div' or 'p'). – Ebrahim Dec 22 '10 at 19:17
Localization is planned but no date has been established, yet. I added that to my post. – Robert Cartaino Dec 22 '10 at 19:57

As a side note to Robert's reply... while chat is a bit more relaxed than SO, there are some obvious babel problems (in particular with moderation) of too many languages. Chat, however, serves also a social function (in addition to technical content), so I think we need to continue playing this "by ear" for now. I honestly don't know what the full answer is here - it isn't a simple one.

But to repeat Robert's point; we don't have current support for that right now.

share|improve this answer
What about '42'? – juanformoso Dec 22 '10 at 21:53

This is probably a hack, but this script changes Farsi looking lines to right-to-left alignment:

var div = $(this);
var text = div.text();
var rtlLetter = text.replace(/[^\u0590-\u05FF\u0600-\u06FF\uFB50-\uFDFF\u2000-\u206F]+/g,'');
var neutral = text.replace(/[^\s\d.,()!?\-+*\/\\]+/g, '');
return rtlLetter.length  > (text.length - neutral.length) / 2;
$('.monologue .timestamp').css('margin-left','5px');

Needs some tweaking.

Here's a user script which runs that every second, it seems to be working:

share|improve this answer
Thanks! Currently My Greasemonkey is not working on Firefox 4.0b8. I'll check it later. – Ebrahim Dec 23 '10 at 13:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .