Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Obsolete code for RTL #36143

Closed
wants to merge 2 commits into from
Closed

Conversation

brianteeman
Copy link
Contributor

Removes the code that was added 7 years ago to handle parentheses in RTL being displayed incorrectly in language names

When the code was introduced the LTR text was displayed incorrectly when the document was RTL. Browsers are now better at detection and this code is no longer needed.

To test install any RTL language eg Arabic or Persian Farsi and make that the admin language. Then go to the following links

  1. administrator/index.php?option=com_languages&view=installed&client=1
  2. administrator/index.php?option=com_languages&view=languages
  3. and the admin login form

Before this PR it should look like the screenshot below. After the PR it should still look the same.

If after applying the PR you see something like English (en-GB( please mark this as a failed test and report the exact browser and operating system

image

Removes the code that  was added 7 years ago to handle parentheses in RTL being displayed incorrectly in language names

When the code was introduced the LTR text was displayed incorrectly when the document was RTL. Browsers are now better at detection and this code is no longer needed.

To test install any RTL language eg Arabic or Persian Farsi and make that the admin language. Then go to the following links

administrator/index.php?option=com_languages&view=installed&client=1
administrator/index.php?option=com_languages&view=languages

and the admin login form

Before this PR it should look like the screenshot below. After the PR it should still look the same.

If after applying the PR you see something like `English (en-GB(` please mark this as a failed test and report the exact browser and operating system
@brianteeman
Copy link
Contributor Author

the drone error is unrelated to this pull request

@ceford
Copy link
Contributor

ceford commented Nov 29, 2021

I have tested this item ✅ successfully on b382a0d

All the brackets I saw were correct. However, I did not have any articles or menu items in an rtl language. I am using iranian for testing.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36143.

@infograf768
Copy link
Member

This does not work on Safari 15.1 (17612.2.9.1.20) MacOS Monterey concerning Installed languages

Screenshot 2021-11-30 at 09 19 30

Concerning the admin menu it is wrong before and after patch.

Screenshot 2021-11-30 at 09 25 20

Screenshot 2021-11-30 at 09 34 27

No problem for admin login

@brianteeman
Copy link
Contributor Author

weird that it works in one place and not the other

@brianteeman
Copy link
Contributor Author

Closed as it doesnt work in safari the new internet explorer 6

@brianteeman brianteeman deleted the more_rtl branch December 14, 2021 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants