Page MenuHomePhabricator

Untranslated gadget descriptions have incorrect directionality in RTL user languages
Open, LowestPublicFeature

Description

Screenshot of

See screenshot. It is particularly evident in "Configurable edit buttons (old style)" where the colons are mixed up.

You need to have an account and be logged in to display the Gadget tab in Special:Preferences.


Version: unspecified
Severity: normal
URL: https://translatewiki.net/wiki/Special:Preferences?uselang=he#prefsection-gadgets

Attached:

Schermafbeelding_2011-08-02_om_14.16.33.png (727×1 px, 186 KB)

Details

Reference
bz30182

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:49 PM
bzimport set Reference to bz30182.
bzimport added a subscriber: Unknown Object (MLST).

Isn't this part of the more generic problem that untranslated messages anywhere in the interface will have their directionality messed up when characters that 'go both ways' (such as parentheses and colons) are involved?

Indeed it is. We can do it MediaWiki-side (see bug 14649) and/or wait until HTML5 is implemented in browsers, which will probably fix these kinds of BiDi issues.

I added dir="auto" in r106051 which fixes the gadget descriptions, currently only in Chrome. It's not the best solution, but it's an improvement.

(In reply to comment #3)

/me votes for "wait"

Do we still need to wait, or did browsers other than Chrome and HTML5 catch up?

Do we still need to wait, or did browsers other than Chrome and HTML5 catch up?

I’m not sure what HTML5 says about bidirectionality, but if that comment referred to revision 29 of the Unicode Bidirectional Algorithm (which was a substantial overhaul, aimed at fixing problems like the unbalanced parentheses in the screenshot, I believe), it’s not a panacea. translatewiki’s gadgets list looks very different these days (and is fully translated into Hebrew, at least), but if you check https://en.wikipedia.org/wiki/Special:Preferences?uselang=he#mw-prefsection-gadgets, and remove the dir="auto" added in f6e96b17e9, then the parentheses stay correctly balanced, but the period at the end of the sentence wanders to the other end of the line.

Screen Shot 2020-02-06 at 13.49.55.png (108×714 px, 13 KB)Screen Shot 2020-02-06 at 13.49.59.png (108×714 px, 13 KB)

That said, the dir="auto" seems to do the job – at least until someone finds a gadget description where it doesn’t do the right thing, I suppose.

Izno changed the subtype of this task from "Task" to "Feature Request".Jul 24 2023, 5:42 PM