Last modified: 2014-11-20 09:12:26 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 T74940, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72940 - Special:PageLanguage does not tag page html output correctly
Special:PageLanguage does not tag page html output correctly
Status: NEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.25-git
All All
: High normal (vote)
: 1.24.0 release
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 9360
  Show dependency treegraph
 
Reported: 2014-11-04 08:27 UTC by Niklas Laxström
Modified: 2014-11-20 09:12 UTC (History)
11 users (show)

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


Attachments

Description Niklas Laxström 2014-11-04 08:27:52 UTC
https://dev.translatewiki.net/w/i.php?title=Blag is set to be de-ch, yet the source code says:

<h1 id="firstHeading" class="firstHeading" lang="en"><span dir="auto">Blag</span></h1>

<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><p>Typo of blah
a
</p>
<!-- [... ] -->
</div>
Comment 1 Umherirrender 2014-11-04 19:04:30 UTC
getViewPageLanguage vs. getPageLanguage

For the lang in the header it is using getViewPageLanguage which does not use the page_lang field.
The textarea on action=edit is using getPageLanguage which used the page_lang field.
I have no idea about the difference
Comment 2 Nemo 2014-11-13 07:33:40 UTC
(In reply to Umherirrender from comment #1)
> getViewPageLanguage vs. getPageLanguage
> 
> For the lang in the header it is using getViewPageLanguage which does not
> use the page_lang field.

Looks still current, 30551608582d7368cc1ff1b995f04eae87213a1f didn't touch that.

"SPQRobin is working on another patchset to eliminate the complexity of page language and page view language in core and combining them into a single array." PS17 https://gerrit.wikimedia.org/r/#/c/135312/
That's https://gerrit.wikimedia.org/r/#/c/137033/ I guess

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


Navigation
Links