Page MenuHomePhabricator

Autowikibrowser diff text box's direction for RTL languages should be RTL
Closed, ResolvedPublic

Description

Diff text box for RTL languages should be RTL.

pasted_file (1×1 px, 621 KB)

Event Timeline

Even better, the DIFF should be in the same direction as that on Wiki (as in, JS pages always RTL, content pages based on the content, ...)

I think this can be done by user CSS. If that's confirmed we can add to the default AWB CSS to apply for RTL wikis.

See https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/style.css Create your style.css file, after the first

background-color: white;

add a further line with

direction: rtl;

that should do what you're looking for.

Ah, thank you. This is a good pointer.

I played with it, and it looks like a better thing to do is to add it to this section:

td.diff-addedline,
td.diff-deletedline,
td.diff-context {
	direction: rtl;

Applying it to the whole table also flips the order of the columns, which is not what we need. (I suspect that core MediaWiki is to blame for this, but I'm not in the mood for digging into this...)

So yeah, if you add this line for RTL wikis it will probably be a good fix for everybody.

Rjwilmsi claimed this task.

rev 12316 in default CSS set

direction: rtl;

on RTL wikis to align diff text correctly