Page MenuHomePhabricator

Lexemes in Ottoman Turkish (ota) tagged as ltr text on special pages
Open, Needs TriagePublic

Description

When https://www.wikidata.org/wiki/Lexeme:L18649 is shown on special pages such as Special:RecentChanges and Special:Contributions, the HTML contains <span class="mw-content-ltr" dir="ltr" lang="ota">قوقوروز</span>. Ottoman Turkish is written in the Arabic script, so it should be tagged as rtl, not ltr.

Arabic itself is correctly tagged as rtl, so it seems to be a problem with Ottoman Turkish specifically. The language-data database knows that ota uses the Arabic script. Perhaps it's caused by ota being one of the languages added for Wikidata via wmgExtraLanguageNames in InitialiseSettings.php?