theme selector

light blue screenshot grey screenshot navy screenshot dark green screenshot red and black screenshot
 

by Tony Chang
tony@ponderer.org

All opinions on this site are my own and do not represent those of my employer.

Creative Commons Attribution License

XUL and RTL languages

Jul 27, 2006, 03:15am EDT

 

 

I like how XUL magically handles RTL languages. We only had to make two small patches to toolbar to get it to work correctly in Hebrew.

Hebrew firefox screenshot

Evan M at Jul 27, 2006, 11:48am EDT

At my goog interview I talked to someone about implementing RTL support in my LJ client. In one box we support entering times via two text boxes, hours and minutes, and when the auto-RTL kicks in for the Hebrew version it gets them backwards (in RTL languages, numbers still go the way we write them). So I had to reverse the boxes when constructing in an RTL language so the toolkit could reverse them again “back to normal”.

In retrospect, a single text box might have been more useful. But I think I was getting overclever with (useless) spin boxes.