Last modified: 2012-04-16 09:16:08 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.
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?
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.
got it. So just put the RLM on *all* names, both RTL and LTR?
Yes.
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.(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.
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).
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.
Direction mark added in r90735.