Problem/Motivation

Both #1452188: New UI for string translation and #1445004: Implement customized translation bit on translations updated selectors in locale.admin.css (formerly locale.css), but didn't fully update locale-rtl.css or rename it to locale.admin-rtl.css.

locale.admin.css

.locale-translate-filter-form .form-item-langcode,
.locale-translate-filter-form .form-item-translation,
.locale-translate-filter-form .form-item-customized {

locale-rtl.css

.locale-translate-filter-form .form-item-language,
.locale-translate-filter-form .form-item-translation,
.locale-translate-filter-form .form-item-group {

Proposed resolution

The patch in #1 corrects the discrepancies and renames locale-rtl.css to locale.admin-rtl.css. Before applying this patch, an RTL version of locale.admin.css will never be included - see language_css_alter().

Remaining tasks

Patch needs reviews.

User interface changes

The RTL styles for Locale will correctly be applied.

Before:
1799124-locale_rtl-before.png

After:
1799124-locale_rtl-after.png

API changes

n/a

Original report by Cottser

#1452188: New UI for string translation and #1445004: Implement customized translation bit on translations updated locale.admin.css (formerly locale.css), but didn't fully update locale-rtl.css.

Attached patch corrects this and renames locale-rtl.css to locale.admin-rtl.css.

Cross-linking with #1663130: Clean up css in Locale.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

star-szr’s picture

FileSize
1.18 KB

Rerolled patch. A couple other commits got things much closer, but the following group of selectors remains invalid, and the filename should be updated for consistency. language is now langcode, group is now customized.

+++ /dev/nullundefined
@@ -1,16 +0,0 @@
-.locale-translate-filter-form .form-item-language,
-.locale-translate-filter-form .form-item-translation,
-.locale-translate-filter-form .form-item-group {

Status: Needs review » Needs work

The last submitted patch, 1799124-1.patch, failed testing.

star-szr’s picture

Status: Needs work » Needs review

#1: 1799124-1.patch queued for re-testing.

star-szr’s picture

Title: locale-rtl.css is out of sync with locale.admin.css » locale-rtl.css is out of sync with locale.admin.css, is never included due to incorrect filename

Updated the issue summary and title to more accurately reflect the problem. I didn't realize previously that locale-rtl.css just won't be included, so this is more serious than I initially thought.

Patch still applies.

star-szr’s picture

Issue summary: View changes

Updating issue summary to use template

star-szr’s picture

Issue summary: View changes

Clarifying that no RTL stylesheet will be included

star-szr’s picture

Issue summary: View changes

Updated issue summary.

star-szr’s picture

Added some screenshots to the issue summary.

star-szr’s picture

Assigned: Unassigned » star-szr
andymartha’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
30.89 KB
32.78 KB

I can confirm that the issue described in #1 occurs in a fresh installation of Drupal 8.x-dev; the page at admin/config/regional/translate is not right to left when the language is set to right to left. See screenshot.

After applying the patch 1799124-1.patch in #1 by Cottser, the page at admin/config/regional/translate IS right to left when the language is set that way. See screenshot.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Adding screenshots to summary