Page MenuHomePhabricator

The placeholder of the new edit summary field in "Special:Translate" is left-aligned on RTL interface language
Open, NormalPublic

Description

The new edit summary field, added to the "Translate" extension has a directional issue when using an RTL language interface (such as Hebrew and Arabic).

The placeholder for the edit summary field (defined on "MediaWiki:Tux-editor-editsummary-placeholder") is left-aligned instead of being right-aligned.

When you start typing an edit summary, the text is still left-aligned unless you press CTRL+RIGHT SHIFT.

You can test this problem by looking at this screenshot, or by going to "Special:Translate" (for example, on MetaWiki) and adding "&uselang=he" to the URL.

Event Timeline

Guycn2 created this task.Jun 2 2016, 5:39 AM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptJun 2 2016, 5:39 AM
Guycn2 renamed this task from The placeholder of the new edit summary field in "Special:Translate" is left-aligned in RTL interface language to The placeholder of the new edit summary field in "Special:Translate" is left-aligned on RTL interface language.Jun 2 2016, 5:45 AM
Guycn2 updated the task description. (Show Details)
Guycn2 updated the task description. (Show Details)Jun 2 2016, 5:48 AM
Restricted Application added a project: I18n. · View Herald TranscriptJun 2 2016, 9:54 AM

I don't know why the following code has been added to MediaWiki, but it sure is not helpful in this case:

	/* Most input fields should be in site direction */
	.sitedir-ltr textarea,
	.sitedir-ltr input {
		/* @noflip */
		direction: ltr;
	}

We can override the direction depending on the user language I guess.

See also T136166: Allow changing language of summary in tux.

Nikerabbit triaged this task as Normal priority.Jun 2 2016, 12:29 PM
Nikerabbit moved this task from Backlog to tux on the MediaWiki-extensions-Translate board.

For textarea it generally makes sense, because it should be in the direction of the content language. For inputbox it's occasionally problematic.

What's more important, however, is that I can change the direction in the browser. In Firefox it's Ctrl-Shift-X, and it works. So I'm not sure that this is a bug at all. It's OK if by default it has the direction of the site's content language.

Amire80 moved this task from Translation difficulties to RTL on the I18n board.