(bug 2865) Add lang attribute to firstHeading
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Mon, 12 Nov 2012 17:45:22 +0000 (23:15 +0530)
committerAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Wed, 14 Nov 2012 20:48:40 +0000 (22:48 +0200)
commit095e76cee1f58f8b51d1d292fb6e5b5a6d298924
treebe1982e6d13984a8e25b3dd39998e92d2e633889
parentb30c3a3de94748a8f2d1b0fb4806f6fece600b44
(bug 2865) Add lang attribute to firstHeading

Adds a lang attribute to <h1 id="firstHeading">.

Interface language is applied to <html> and content language is
applied to <div id="mw-content-text">. This leaves firstHeading
with the interface language, which is wrong in general. It
also causes incorrect display of the title for languages that
have custom line-height.

This patch is based on code written by Munirathnam M at
the Bangalore DevCamp (he couldn't submit it because of network
issues). It looks OK to me, but it's my first time doing anything
with $this->data in a skin, so please correct me if I'm wrong.

Change-Id: I55dd392dbf0d4f768344b66e6ceb3a023b1d5c9b
RELEASE-NOTES-1.21
skins/Modern.php
skins/MonoBook.php
skins/Vector.php