Wikimedia

Support RTL (Right-to-Left) text direction in the "Special:PageMigration" page

The page Special:PageMigration provided by MediaWiki's Translate extension lacks support for RTL (Right-to-Left) direction of text. See the screenshot in https://phabricator.wikimedia.org/T139463

This task is to add

dir="rtl"

into

<textarea class="mw-tpm-sp-unit__target five columns">

in the resulting HTML code.

(This should be based on language properties, but one problem exists: currently is no common way for determine this property by the literal language code.)

Possible way for resolving:

  • On PHP side there is Language::getDir.
  • JavaScript can call [[ //translatewiki.net/wiki/Special:ApiSandbox#action=query&format=json&prop=info&meta=&titles=Project%3AAbout%2Ffi | prop=info]] or use ULS: $.uls.data.getDir.

You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.

Task tags

  • i18n
  • rtl
  • php
  • javascript

Students who completed this task

Phantom42

Task type

  • code Code
  • web Design
close

2017