Last modified: 2012-04-16 09:16:08 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 T30030, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28030 - LTR usernames are aligned incorrectly in RTL wikis when the date preference is yyyy-mm-ddThh:mm:ss
LTR usernames are aligned incorrectly in RTL wikis when the date preference i...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks: 28708
  Show dependency treegraph
 
Reported: 2011-03-13 16:06 UTC by Amir E. Aharoni
Modified: 2012-04-16 09:16 UTC (History)
5 users (show)

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


Attachments

Description Amir E. Aharoni 2011-03-13 16:06:49 UTC
The order of the information in the page history is usually this:

2011-03-13T10:11:36 Username (talk | contribs | block) (123 bytes) (summary) (rollback | undo)

In RTL wikis if the username is in the Latin characters, the actually displayed order is:

Username 2011-03-13T10:11:36 (talk | contribs | block) (123 bytes) (summary) (rollback | undo)

To fix this, RLM can be added before the username in RTL wikis.
Comment 1 Mark A. Hershberger 2011-04-22 17:48:38 UTC
out of curiosity, is there a way to easily determine in PHP if the name should have RLM before it?  A regexp that would match any LTR character, maybe?
Comment 2 Amir E. Aharoni 2011-04-22 18:26:22 UTC
Such a regexp would work, but it would be just a waste of cycles. This RLM won't affect RTL names in any bad way.
Comment 3 Mark A. Hershberger 2011-04-22 19:07:58 UTC
got it.  So just put the RLM on *all* names, both RTL and LTR?
Comment 4 Amir E. Aharoni 2011-04-22 19:46:44 UTC
Yes.
Comment 5 Bawolff (Brian Wolff) 2011-04-23 02:44:25 UTC
In interest of completeness, if we did this, shouldn't we also put a LRM when the content language is a LTR language?
Comment 6 Amir E. Aharoni 2011-04-23 07:43:11 UTC
No, this is not needed.(In reply to comment #5)
> In interest of completeness, if we did this, shouldn't we also put a LRM when
> the content language is a LTR language?

No, this is not needed. This only happens in RTL wikis because of the ambiguous directionality of the numbers in the date.
Comment 7 Jan Paul Posma 2011-04-26 12:40:10 UTC
Can you please give an example of incorrect behaviour (i.e. an url)? I cannot find this problem on some of the wikis I looked at (ar, he, yi Wikipedias).
Comment 8 Amir E. Aharoni 2011-04-26 12:46:48 UTC
I see - that's because i have funny preferences :)

My date preference is 2011-04-26T12:42:09 and not the default. That format is all LTR, and that causes wrong alignment of the username.

I changed the description accordingly.
Comment 9 Robin Pepermans (SPQRobin) 2011-06-24 20:59:53 UTC
Direction mark added in r90735.

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


Navigation
Links