Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#22453 closed defect (bug) (fixed)

3.5 RTL audit

Reported by: nacin's profile nacin Owned by: ocean90's profile ocean90
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.5
Component: RTL Keywords: audit has-patch commit
Focuses: Cc:

Description

Audit RTL in 3.5. Look for breakage and inconsistencies, especially with new features: media, the color picker, etc.


Notes on how you can help auditing:

While you can set $text_direction to 'rtl' in wp-config.php, this is largely imperfect as English strings don't necessarily flip correctly, which can be tough when an english string has HTML elements. (We saw this, for example, with page numbering above/below the list tables.)

I built a 3.5-beta3 download package for he_IL: http://he.wordpress.org/release-archive/he_IL/wordpress-3.5-beta3-he_IL.zip. If you download it and want to integrate into an existing test install, The key is copying over wp-content/languages/* and then setting WPLANG in wp-config.php to 'he_IL'.

Attachments (12)

22453.welcome-screen.patch (3.3 KB) - added by ocean90 12 years ago.
22453.media-view.patch (6.1 KB) - added by ocean90 12 years ago.
20469.add-media.diff (723 bytes) - added by SergeyBiryukov 12 years ago.
22453.image-editor.patch (641 bytes) - added by maor 12 years ago.
22453.image-editor-theme-filter.patch (1.6 KB) - added by ocean90 12 years ago.
22453.patch (5.3 KB) - added by ocean90 12 years ago.
22453.admin-bar-webkit.patch (394 bytes) - added by ocean90 12 years ago.
22453.media-view.2.patch (1.9 KB) - added by ocean90 12 years ago.
RTL-media.png (213.5 KB) - added by ramiy 12 years ago.
22453.2.patch (3.0 KB) - added by ocean90 12 years ago.
22615.3b.patch (3.2 KB) - added by ocean90 12 years ago.
22453.wp-colorpicker.patch (4.2 KB) - added by ocean90 12 years ago.

Download all attachments as: .zip

Change History (47)

#1 @ocean90
12 years ago

  • Cc ocean90 added

#2 in reply to: ↑ description @maor
12 years ago

  • Cc maorhaz@… added

If you download it and want to integrate into an existing test install, The key is copying over wp-content/languages/* and then setting WPLANG in wp-config.php to 'he_IL'.

Thanks, nacin. I'll be testing that.

#3 follow-up: @maor
12 years ago

@nacin, I've unpacked the attached ZIP archive and installed WordPress normally. When I first logged in, the dashboard was all flipped over as if it didn't have the RTL stylesheet included. http://i.imgur.com/mT2pK.png

However, when I enabled on SCRIPT_DEBUG it all got back to normal.

Other than that there are minor CSS issues. Especially with the new button styles. http://i.imgur.com/7FtPg.png
Also, I haven't noticed anything exceptional about the pagination area over and below list tables. This is how it looks:

http://i.imgur.com/uLGpz.png

In general it's looking pretty good.

#4 follow-up: @ocean90
12 years ago

Attached 22453.welcome-screen.patch for the Welcome Screen and 22453.media-view.patch for the media modal.

#5 @koopersmith
12 years ago

In 22604:

Media: RTL styles for the media modal. props ocean90. see #22453, #21390.

#6 in reply to: ↑ 3 @ramiy
12 years ago

Replying to maor:

... the dashboard was all flipped over as if it didn't have the RTL stylesheet included.
However, when I enabled on SCRIPT_DEBUG it all got back to normal.

I confirm that.

Adding define('SCRIPT_DEBUG', true); to wp-config.php fixed the problem.


Replying to Nasin:


Other RTL issuies:

#8 @ramiy
12 years ago

  • Cc r_a_m_i@… added

#9 @ramiy
12 years ago

And checkout this related ticket #16834. I reported this issue almost 2 years ago.

#10 @DrewAPicture
12 years ago

  • Cc xoodrew@… added

#11 @SergeyBiryukov
12 years ago

20469.add-media.diff fixes "Add Media" button (http://i.imgur.com/7FtPg.png in comment:3).

padding-left: 10px (rather than 0 or auto) comes from default button styles.

Last edited 12 years ago by SergeyBiryukov (previous) (diff)

#12 in reply to: ↑ 4 @maor
12 years ago

Replying to ocean90:

Attached 22453.welcome-screen.patch for the Welcome Screen and 22453.media-view.patch for the media modal.

RE the Welcome Panel patch. I noticed padding was added to the welcome panel column's wrapper, and it makes them look a little weird. http://i.imgur.com/yjDgL.png. Instead there should be no padding on that element, exactly the way it is in the LTR version.

Done some testings (see below) and figured it looks much better without the padding on the right http://i.imgur.com/9u2rR.png.

.welcome-panel .welcome-panel-column-container {
	padding: 0;
}
Last edited 12 years ago by maor (previous) (diff)

#13 @maor
12 years ago

Attached 22453.image-editor.patch for the attachment editor screen. Fixes the "Edit Image" button. (http://i.imgur.com/jHoTh.png in comment:6).

#15 @helenyhou
12 years ago

Welcome panel stuff still going on at #21368, since it was reopened, including RTL. Hopefully we'll close that off soon to reduce confusion.

#16 @azaozz
12 years ago

In [22638]:

Welcome screen: clean up the css, improve the html, add RTL styles, props helenyhou TobiasBg ocean90, fixes #21368, see #22453

#17 @ocean90
12 years ago

  • Keywords has-patch commit added
  • Version set to trunk

22453.image-editor-theme-filter.patch extends the patch from maor. It removes unneeded lines and improves the image edit buttons.

20469.add-media.diff and 22453.image-editor-theme-filter.patch should be committed.

@ocean90
12 years ago

#18 @ocean90
12 years ago

22453.patch combines 20469.add-media.diff and 22453.image-editor-theme-filter.patch​. The patch also fixes the spinners, the featured image button and the edit slug box.

#19 @azaozz
12 years ago

In 22640:

RTL fixes and improvements: add-media, image-editor, the spinners, the featured image button, some css cleanup, props ocean90, maor, SergeyBiryukov, ramiy, see #22453

#20 @azaozz
12 years ago

In 22641:

RTL: fix styling of Skip To links, see #22453

#21 @ocean90
12 years ago

22453.admin-bar-webkit.patch fixes an issue in Webkit, see [18934].

In [19080] the fix was added to the RTL style with the transform to border-right. Since the bug exits only on the left side the RTL change reverts the originally fix. The lines should be removed from the RTL style again.

#22 @azaozz
12 years ago

In 22643:

RTL: remove unneeded toolbar border-right, props ocean90, see #22453

#23 @nacin
12 years ago

  • Keywords has-patch commit removed

Lots of patches and commits here. Anything left uncommitted or unpatched? If not, it'd be cool to finish off #16834 too as it is the only other RTL issue open on Trac.

#25 @ocean90
12 years ago

  • Keywords commit added

#26 @nacin
12 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 22720:

RTL media-views fixes. props ocean90. fixes #22453.

@ramiy
12 years ago

#27 @ramiy
12 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

#28 @helenyhou
12 years ago

  • Keywords needs-patch added; has-patch commit removed

Media modal.

http://core.trac.wordpress.org/raw-attachment/ticket/22453/RTL-media.png

#29 @ocean90
12 years ago

  • Owner changed from nacin to ocean90
  • Status changed from reopened to accepted

@ocean90
12 years ago

#30 @ocean90
12 years ago

  • Keywords has-patch added; needs-patch removed

@ocean90
12 years ago

#31 @koopersmith
12 years ago

  • Keywords commit added

#32 @ocean90
12 years ago

22453.wp-colorpicker.patch adds RTL support for the colorpicker. (And includes a small clean up.)

#34 @ryan
12 years ago

In 22947:

RTL fixes for media and color picker.

Props ocean90
see #22453

#35 @ocean90
12 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.