Page MenuHomePhabricator

TableSorter icon follows interface lang instead of content lang
Open, Needs TriagePublicBUG REPORT

Description

The icons that appear in table header cells for indicating sort order appear on the left or right side depending on the current interface language. The alignment should instead follow the page language.

For example, with your interface language set to English en, create a page such as the following, mark it for translation, and add a Hebrew he translation.

<languages />
{| class="sortable wikitable"
! <translate>Head</translate>
|-
| Aaa
|-
| Bbb
|-
| Ccc
|}

Then view the page as /Table_test/he?uselang=en and notice that the sorting icons are on the left. Load the page again with an RTL interface language, and the icons swap sides, e.g. /Table_test/he?uselang=he.

Note also that the opposite is true: Table_test/en?uselang=he has the icons on the left, but they should be on the right.