Skip to content

Commit

Permalink
Improve placeables inside right-to-left text
Browse files Browse the repository at this point in the history
Make them embedded left-to-right strings so that things like “%(foo)s”
do not look like “foo)s)%” inside right-to-left strings (which can be
seen when setting, say, Arabic as an alt source language).

This does not affect translation field (which would benefit from this
most), though.
  • Loading branch information
khaledhosny committed Apr 18, 2014
1 parent a8f3b99 commit 190f905
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pootle/static/css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,17 @@ a.editor-specialchar:hover
color: #840;
}

.highlight-escape,
.placeable
{
/* Switch the next two lines to “unicode-bidi: isolate” once it is widely
* supported and let the browser determine the direction, instead of
* assuming that all placeables are left-to-right string.
*/
direction: ltr;
unicode-bidi: embed;
}

.placeable:hover,
.highlight-escape:hover,
#js-selected-placeable
Expand Down

0 comments on commit 190f905

Please sign in to comment.