Page MenuHomePhabricator

Wdqs-app-editor-placeholder looks bad in RTL languages
Open, MediumPublic

Description

The translatable message Wdqs-app-editor-placeholder includes the word "SPARQL", which is probably not translated. In RTL languages, this causes the message to be displayed in an unreadable way: It's displayed in the query writing textarea that is by its nature LTR, and putting an LTR word in the middle of an RTL sentence breaks it

One solution that I found for this is defining the dir HTML attribute for <pre class="CodeMirror-placeholder"> as "rtl" and setting its text-align CSS property to left (explicitly, and without auto-flipping).

If it's impossible, there is another, much less elegant, solution: add an RLE control character in the beginning of the message, and a PDF character in its end (see https://en.wikipedia.org/wiki/Bi-directional_text#Table_of_possible_BiDi-types ).

Event Timeline

Amire80 triaged this task as Medium priority.Sep 1 2018, 12:07 PM
Amire80 created this task.