Page MenuHomePhabricator

The directionality (RTL/LTR) of definitions must match the directionality of the script in which they're written
Closed, DeclinedPublic

Description

On Expression and DefinedMeaning pages all the definitions appear as left-to-right text if the user's interface language is LTR and as RTL if the user's language is RTL.

It would be nice to have them always displayed according to their inherent directionality: right-to-left if the language is right-to-left - Arabic, Urdu, Farsi, Hebrew, Yiddish, Divehi, etc., and left-to-right if it's not. The current wrong display is immediately noticeable, because according to http://www.omegawiki.org/Help:Definition , definition must end with a period, and the period appears in the wrong end of the sentence when the directionality of the definition is different from the directionality of the user's preferred language.

Maybe i'm naive, but this should be fairly trivial to implement.


Version: unspecified
Severity: normal

Details

Reference
bz23035

Event Timeline

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

Robin, is this something you would want to look into?

In itself it's not that difficult: just adding lang & dir attributes at the right place. But I am not familiar at all with the OmegaWiki code, nor can I easily install the extension. We should probably talk with Kipcool or someone else about this bug.

Purodha renamed this task from the directionality (RTL/LTR) of definitions must match the directionality of the language in which they're written to The directionality (RTL/LTR) of definitions must match the directionality of the script in which they're written.Nov 9 2015, 12:39 AM
Purodha raised the priority of this task from Low to Medium.
Purodha set Security to None.

This applies to all fields of relational data in the Expression and DefinedMeaning pages. Also, html attributes lang and/or xml:lang are missing. They can easily be added in one go with the dir attributes.