Closed Bug 1354462 Opened 7 years ago Closed 7 years ago

The translation textarea should use target language direction

Categories

(Webtools Graveyard :: Pontoon, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1190566

People

(Reporter: khaled, Unassigned)

Details

Currently it seems that the translation text area uses the direction of the first string bidi character, so text starting with a right-to-left character will have right-to-left direction and be right aligned, and vice versa.

But this is problematic for translations since strings often start with placeholders that might contain left-to-right characters forcing the text to always have left-to-right direction even if it is mostly Arabic text. This can make editing right-to-left text rather hard and error-prone specially when more than one placeholder (or other left-to-right characters) are present in the text, as bidirectional re-ordering rules will give very confusing order and totally unrelated to how the text will be ordered in actual use.

I suggest a hardcoded direction be used for the textarea based on the target language.
We have a pretty lengthy discussion about this in bug 1190566, so I'm marking this one as dupe. Let's continue there.

It seems like we finally have the majority opinion lean towards replacing dir=auto with dir=current_locale_dir. ;)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.