Page MenuHomePhabricator

direction of justtranslated is not set according to the language
Closed, ResolvedPublic

Description

The "justtranslated" feature in quickedit.js is very nice, except it doesn't apply the right direction to the result.

I tried to fix it myself, but couldn't find an easy way to get the direction from the language code. Apparently, there is not obvious way to do something like Language::factory() and Language::getDir() in MediaWiki's JavaScript, but maybe I missed something.


Version: unspecified
Severity: normal

Details

Reference
bz39233

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:09 AM
bzimport set Reference to bz39233.
Amire80 created this task.Aug 10 2012, 3:11 PM

A simplistic fix here:
https://gerrit.wikimedia.org/r/#/c/18470/

It just applies dir="auto", but should apply proper direction.

If there's no dynamic way to find the direction, maybe it can be taken from the translating <textarea> somehow, but I'm not sure how.

patch merged.