Last modified: 2012-08-12 08:05:33 UTC
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.
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.