Last modified: 2011-10-28 12:44:13 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 T33998, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31998 - Setting direction (LTR/RTL) in div has weird consequences
Setting direction (LTR/RTL) in div has weird consequences
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Amir E. Aharoni
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-27 21:08 UTC by Jon Harald Søby
Modified: 2011-10-28 12:44 UTC (History)
4 users (show)

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


Attachments

Description Jon Harald Søby 2011-10-27 21:08:32 UTC
In the code for [1] I specified <div dir="rtl">; that works fine when viewing it when the interface language is English [2], but when the interface language is Arabic it changes the direction to LTR [3]. This is on foundationwiki, but it does not seem to happen in metawiki[4][5].

Adding Siebrand and Amir since they will probably know how/what to fix.

[1] http://wikimediafoundation.org/w/index.php?title=Donor_policy/ar&action=edit
[2] http://wikimediafoundation.org/wiki/Donor_policy/ar?uselang=en
[3] http://wikimediafoundation.org/wiki/Donor_policy/ar?uselang=ar
[4] http://meta.wikimedia.org/wiki/Fundraising_2011/Jimmy_Letter_001/ar?uselang=en
[5] http://meta.wikimedia.org/wiki/Fundraising_2011/Jimmy_Letter_001/ar?uselang=ar
Comment 1 Siebrand Mazeland 2011-10-27 21:29:36 UTC
Amir is the goto guy here, I think :).
Comment 2 Amir E. Aharoni 2011-10-27 21:47:57 UTC
It's not really a MediaWiki bug, but a local configuration issue in wikimediafoundation.org. Its MediaWiki:Common.css must be thoroughly cleaned up. Most of it now consists of rtl fixes, most of which are not needed in 1.18.

I made the minimum fixes required for this to display correctly.

There's another fix that needs to be done. It's funny - my username Amire80 has a permission to edit MediaWiki:Common.css, but not the page you linked to. So please change this line:

<div lang="ar" dir="rtl">

to this:

<div lang="ar" class="mw-content-rtl">

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


Navigation
Links