Last modified: 2013-06-18 15:10:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 2865 - User interface HTML elements don't use lang attribute
User interface HTML elements don't use lang attribute
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Normal normal with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
  Show dependency treegraph
Reported: 2005-07-15 03:28 UTC by Muke Tever
Modified: 2013-06-18 15:10 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Muke Tever 2005-07-15 03:28:18 UTC
If the user has changed their interface language in 
Special:Preferences, then all elements affected by 
this should advertise themselves (by lang="xx", 
etc.) to be in the selected language.  

Current behaviour is that the whole page is marked 
as being in the default language of the wiki, even 
when the wiki 'knows' it is also returning data in 
another language.
Comment 1 Niklas Laxström 2005-08-19 22:22:59 UTC
Changing summary
Comment 2 Purodha Blissenbach 2009-03-03 13:03:12 UTC
Messages can be in (various) fallback languages even if
a user did not select a non-standard interface language.
Also those deserve proper language tagging.
Comment 3 Alexandre Emsenhuber [IAlex] 2009-08-22 11:01:15 UTC
lang attribute added in various places in r49331 (with some fixes in r49350 and r51448). 
Comment 4 Daniel Friesen 2011-09-20 15:32:20 UTC
Isn't this essentially fixed by the new better directionality code?
Comment 5 Amir E. Aharoni 2012-10-21 18:10:54 UTC
(In reply to comment #4)
> Isn't this essentially fixed by the new better directionality code?

I think that it's done, except for the page title (<h1 id="firstHeading" class="firstHeading">).
Comment 6 Amir E. Aharoni 2012-11-13 10:31:45 UTC
This should close this issue:
Comment 7 Derk-Jan Hartman 2012-11-14 20:50:49 UTC
merged. not yet deployed
Comment 8 Fomafix 2012-11-15 07:31:15 UTC
This solution generates the wrong language when the first heading contains a system message in user interface language: contains
<h1 lang="ar" class="firstHeading" id="firstHeading"><span dir="auto">Editing الصفحة الرئيسية</span></h1> contains
<h1 lang="en" class="firstHeading" id="firstHeading"><span dir="auto">Pages that link to "الصفحة الرئيسية"</span></h1>

In both situations the attribute lang isn't necessary because <html lang="en"> already exists.
Comment 9 Derk-Jan Hartman 2012-11-15 08:57:46 UTC
I guess we could split it into two titles. UI title vs. Content title bits. Requires a bit more work.

I suggest to open a separate ticket on this front.

Note You need to log in before you can comment on or make changes to this bug.