Re: Reversing text for i18n

Axel Hecht <[email protected]> Wed, 31 Jan 2007 12:06:16 +0100
Newsgroups gmane.comp.mozilla.internationalization
Message-ID <9dadndm1ZKnZ6l3YnZ2dnUVZ_segnZ2d__3725.39672903276$1170241996$gmane$org@mozilla.org>
[email protected] wrote:
> Is there a simple xul markup for reversing text for right-to-left
> language like Arabic?
> 
> I need to right align the text in text fields as well as list boxes
> and menus etc.
> 
> Any advice?
> 

Crossposting to i18n.

Looking at the source via 
http://mxr.mozilla.org/mozilla/search?string=locale.dir, you should use 
the chromedir attribute. Sadly, I don't see that documented anywhere, so 
you should take a look at examples in the source.

I just found that 'cause I know that locales control RTL via the 
locale.dir entity in global.dtd, 
http://lxr.mozilla.org/mozilla/source/dom/locales/en-US/chrome/global.dtd

Axel