Use the content language to set the skin direction, instead of the user language...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 7 Feb 2011 12:39:10 +0000 (12:39 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 7 Feb 2011 12:39:10 +0000 (12:39 +0000)
commit0f821f0dcb53085a70e89d97cf130f5767426afb
tree9f2aae25b61430e5fc352f3a6e5cf55641b089ad
parent6ee7efcea4eec1ea2338283606633d138ec1dc8c
Use the content language to set the skin direction, instead of the user language. This makes the content readable and the UI messed up, instead of vice versa.

It's not ideal, but at least it's no worse than it was in 1.16. It's preferable because the content area is more likely to have bidirectional text than the UI area. The UI is split up into short strings, generally in a consistent language, so there is less chance of the UBA moving fragments of text around.

Ideally, the direction of each div would be set according to the language of the text it contains.
includes/resourceloader/ResourceLoaderContext.php