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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4865, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2865 - User interface HTML elements don't use lang attribute
User interface HTML elements don't use lang attribute
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal normal with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks:
  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: ---


Attachments

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:
https://gerrit.wikimedia.org/r/#/c/33163/
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:

http://ar.wikipedia.beta.wmflabs.org/w/index.php?title=%D8%A7%D9%84%D8%B5%D9%81%D8%AD%D8%A9_%D8%A7%D9%84%D8%B1%D8%A6%D9%8A%D8%B3%D9%8A%D8%A9&action=edit&uselang=en contains
<h1 lang="ar" class="firstHeading" id="firstHeading"><span dir="auto">Editing الصفحة الرئيسية</span></h1>

http://ar.wikipedia.beta.wmflabs.org/wiki/%D8%AE%D8%A7%D8%B5:%D9%85%D8%A7%D8%B0%D8%A7_%D9%8A%D8%B5%D9%84_%D9%87%D9%86%D8%A7/%D8%A7%D9%84%D8%B5%D9%81%D8%AD%D8%A9_%D8%A7%D9%84%D8%B1%D8%A6%D9%8A%D8%B3%D9%8A%D8%A9?uselang=en 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.


Navigation
Links