Last modified: 2011-07-24 11:37: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 T29490, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27490 - [regression] RTL ui in LTR wiki is LTR aligned
[regression] RTL ui in LTR wiki is LTR aligned
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.18.x
All All
: Normal normal (vote)
: ---
Assigned To: Trevor Parscal
http://translatewiki.net/wiki/Main_Pa...
: i18n
Depends on:
Blocks: rtl
  Show dependency treegraph
 
Reported: 2011-02-17 09:00 UTC by Niklas Laxström
Modified: 2011-07-24 11:37 UTC (History)
9 users (show)

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


Attachments
Screenshot of current implementation (190.51 KB, image/png)
2011-02-19 22:36 UTC, DieBuche
Details
How the method from comment 4 would look like (189.00 KB, image/png)
2011-02-19 22:39 UTC, DieBuche
Details

Description Niklas Laxström 2011-02-17 09:00:03 UTC
Just relaying http://translatewiki.net/wiki/Thread:Support/RTL_doesn't_work
I don't know when this happened or why.
Comment 1 DieBuche 2011-02-17 22:45:29 UTC
Shouldn't 
<link rel="stylesheet" href="/w/load.php?debug=false&lang=he&modules=mediawiki.legacy.commonPrint%7Cmediawiki.legacy.shared%7Cskins.vector%7Ctranslate-css&only=styles&skin=vector">

get a &dir=rtl ?

Or make load.php set dir=rtl as default for all rtl scripts
Comment 2 Roan Kattouw 2011-02-17 23:01:11 UTC
(In reply to comment #1)
> Shouldn't 
> <link rel="stylesheet"
> href="/w/load.php?debug=false&lang=he&modules=mediawiki.legacy.commonPrint%7Cmediawiki.legacy.shared%7Cskins.vector%7Ctranslate-css&only=styles&skin=vector">
> 
> get a &dir=rtl ?
> 
> Or make load.php set dir=rtl as default for all rtl scripts
The dir parameter is inferred from the lang parameter if it's not set, so &lang=he will set RTL mode. Or should do so at least, some of that code changed and I don't know what's what any more.
Comment 3 Roan Kattouw 2011-02-17 23:03:17 UTC
(In reply to comment #2)
> The dir parameter is inferred from the lang parameter if it's not set, so
> &lang=he will set RTL mode. Or should do so at least, some of that code changed
> and I don't know what's what any more.
Hmm, now it's inferred from the *content* language instead. I wonder why.
Comment 4 DieBuche 2011-02-17 23:08:51 UTC
Since it would make english articles left-aligned.
Imo, the best way would be to 
1. Infer the dir from the display language (Atleast mediawiki & commons forced the display language to set the direction previously.)
2. protect #bodyContent etc. with dir=contentLanguageDir
Comment 5 Roan Kattouw 2011-02-17 23:11:32 UTC
(In reply to comment #4)
> Since it would make english articles left-aligned.
> Imo, the best way would be to 
> 1. Infer the dir from the display language (Atleast mediawiki & commons forced
> the display language to set the direction previously.)
> 2. protect #bodyContent etc. with dir=contentLanguageDir

This is kind of over my head. Niklas, could you weigh in on this?
Comment 6 Aaron Schulz 2011-02-17 23:13:38 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > The dir parameter is inferred from the lang parameter if it's not set, so
> > &lang=he will set RTL mode. Or should do so at least, some of that code changed
> > and I don't know what's what any more.
> Hmm, now it's inferred from the *content* language instead. I wonder why.

r81622?
Comment 7 Roan Kattouw 2011-02-17 23:14:46 UTC
(In reply to comment #6)
> r81622?
Was just about to say that.
Comment 8 DieBuche 2011-02-19 22:36:03 UTC
Created attachment 8175 [details]
Screenshot of current implementation
Comment 9 DieBuche 2011-02-19 22:39:56 UTC
Created attachment 8176 [details]
How the method from comment 4 would look like

This is how a patch from comment 4 would look like: Correct outer layout; and the content has the correct direction of wgContentLanguage.
Comment 10 Purodha Blissenbach 2011-02-21 02:12:55 UTC
We have the very general problem in MediaWiki, that we often do not know the language/script, and thus directionality, of a piece of text. For instance, when fallback languages mix with either content language or uselang= language in a page, each of those different pieces and snippets should be properly tagged with lang= and dir= attributes in HTML. But wfMsg*() neither tells, which actual language was picked (can even return mixed languages) nor does it add such tagging where appropriate.
Comment 11 Mark A. Hershberger 2011-03-26 06:28:38 UTC
Since a fix has been made and Roan has merged it to 1.17, I'm closing this bug.
Comment 12 Niklas Laxström 2011-03-26 07:09:39 UTC
What fix?
Comment 13 Mark A. Hershberger 2011-03-26 18:10:39 UTC
(In reply to comment #12)
> What fix?

r81622 unless I'm missing something.
Comment 14 DieBuche 2011-03-26 19:08:28 UTC
That wasn't a proper fix: "This makes the content readable and the ''UI messed up''"
And this bug is about the wrongly aligned UI
Comment 15 Niklas Laxström 2011-03-26 22:40:35 UTC
Indeed it's not a fix, it's the cause (or half of it, if resource loader is the other half?)
Comment 16 Mark A. Hershberger 2011-03-26 23:41:14 UTC
(In reply to comment #15)
> it's the cause

Thanks for helping me understand this better :)
Comment 17 Mark A. Hershberger 2011-03-28 19:55:51 UTC
Removing 1.17 tarball blocker because Tim writes this in his explanation for the change:

> It's not ideal, but at least it's no worse than it was in 1.16. It's
> preferable because the content area is more likely to have bidirectional text
> than the UI area. The UI is split up into short strings, generally in a
> consistent language, so there is less chance of the UBA moving fragments of
> text around.
Comment 18 DieBuche 2011-04-21 14:16:30 UTC
*** Bug 28228 has been marked as a duplicate of this bug. ***
Comment 19 Robin Pepermans (SPQRobin) 2011-07-06 03:05:42 UTC
Marking as fixed, because bug 6100 is fixed, which appears to be about the same... (r91518).

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


Navigation
Links