Last modified: 2013-07-01 13:04:20 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 T52469, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50469 - Reconsider the value of getPageLanguage() and getPageViewLanguage() for redirect pages
Reconsider the value of getPageLanguage() and getPageViewLanguage() for redir...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-30 18:13 UTC by Liangent
Modified: 2013-07-01 13:04 UTC (History)
2 users (show)

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


Attachments

Description Liangent 2013-06-30 18:13:27 UTC
Appearance: https://kk.wikipedia.org/w/index.php?title=Greffeil&variant=kk-arab&redirect=no has a wrong arrow direction (compare https://ar.wikipedia.org/w/index.php?title=%D8%B1%D9%8A%D8%A7%D8%B6%D9%8A%D8%A7%D8%AA_%D9%85%D8%AD%D8%AF%D8%AF%D8%A9&redirect=no )

Reason: Article::viewRedirect() uses page language (= kk) to render the arrow, while OutputPage uses page view language (= kk-arab from &variant= URL param) to wrap it in <div lang=" " dir=" "> which mismatch.

Fix: Gerrit change #63378 is changing Article::viewRedirect() to use page view language, so that problematic page will display a RTL arrow, with the hole content block rendered RTL, which don't contradict with each other.

Problem: The only content on that page is "Греффей", which is a LTR word. Why do we put it in a page with RTL layout?

Potential solution: Given the only contents on redirect pages are redirect targets, should the (view) language of redirects be defined as the language of redirect target pages (or at least, the language of target titles)?

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


Navigation
Links