Page MenuHomePhabricator

Broken parentheses in Special:Sitematrix when language lacks translation and has opposite direction
Closed, ResolvedPublic

Description

There is something wrong going on in Special:SiteMatrix. When a language lacks translation to the users interface language and it has the opposite direction, the parentheses are broken.

Example:
https://en.wikipedia.org/wiki/Special:SiteMatrix?uselang=fr

In the first column the description for the row with arz is broken. It says:

مصرى (مصرى)

Example for the opposite direction:
https://en.wikipedia.org/wiki/Special:SiteMatrix?uselang=ar

The row with Alemannisch is broken. The same is the case for many other languages.


Version: unspecified
Severity: normal

Details

Reference
bz70718

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:52 AM
bzimport added projects: SiteMatrix, I18n.
bzimport set Reference to bz70718.

When the local translation for a language name is missing the system falls back to using the name of the language in that language itself instead.

The direction for the text remains that of the local language however, independently on whether a local translation was found.

Expected behaviour:
The direction for the text should be that of the local language only if a translation is found. Otherwise it should be that of the target language.

Amire80 closed this task as Resolved.EditedNov 23 2020, 8:27 AM

This was probably an upstream bug in the Unicode bidi algorithm and its implementation in browsers. If I understand the task description correctly, this no longer happens. As far as I know, the algorithm was updated, and the implementation was fixed in both Gecko and WebKit. If it's still broken, please reopen.