Author: pablo
Description:
Now that it is possible, trough preferences or uselang=, to given a language for
the interface that it is different of the local wiki language; it is needed to
better separate and handle what is interface layout, and what is local wiki data
content.
This patch does just that.
What it does:
- adds a <div id="realContent"> </div> around the real wiki content
- if user language is the same as the local wiki language, it doesn't do
anything else (current behaviour)
- if user language is different than local wiki language, then:
- the main language and directionality for the pages are set according to user
language, not wiki language
- id="realContent" is set to language and directionality of the local wiki
- the "firstHeading" is set to language and directionality of the local wiki
(only for pages not in Special:, and for actions 'view' and 'history')
- toctitle (but not the toc itself) and editsection are set to user language
and directionality
- two global functions are added, layoutdir() and contentdir() that return
either empty strings or things like " lang='ar' dir='rtl'" as needed
respectively for the user language and the local wiki language
- rtl CSS files are split in two, one used when user language is rtl, one used
when wiki content is rtl
Version: 1.7.x
Severity: enhancement