Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
14 Feb 2025

When the calendar is being displayed with an RTL language the data in the calendar is correctly ordered RTL. However the names od the days is incorrect as this remains LTR

This PR adds a conditional check for RTL and reverses the string of days so that it is displayed correctly

Note that JS is not my thing and it looks like there is code for this already at line 140 but it is not working? Maybe a js expert can see why.

Pull Request for Issue #44818 .

Testing Instructions

Install an RTL language which uses the gregorian calendar OR edit administrator\language\en-GB\langmetadata.xml and set rtl to 1

as this is a js change you will need to apply the pr and then npm run build:js or use a prebuilt package

Actual result BEFORE applying this Pull Request

image

Expected result AFTER applying this Pull Request

image

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar brianteeman brianteeman - open - 14 Feb 2025
avatar brianteeman brianteeman - change - 14 Feb 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Feb 2025
Category JavaScript Repository NPM Change
avatar brianteeman brianteeman - change - 14 Feb 2025
The description was changed
avatar brianteeman brianteeman - edited - 14 Feb 2025
avatar fgsw
fgsw - comment - 14 Feb 2025

Prebuilt packages are not available for download, also not the custom update server:

prebuilt-joomla-fail
avatar richard67
richard67 - comment - 14 Feb 2025

Prebuilt packages are not available for download, also not the custom update server:

Seems there is an issue with a full disk. Will notify some people.

avatar fgsw
fgsw - comment - 15 Feb 2025

Later created Pull Request have now available Prebuilt packages (this one still not).

avatar richard67
richard67 - comment - 15 Feb 2025

I‘ve restarted the drone build, so new packages should be available soon.

avatar richard67
richard67 - comment - 15 Feb 2025

Packages are available now.

avatar richard67
richard67 - comment - 15 Feb 2025

Normally I would say this PR is a bug fix so it has to go into 5.2-dev ... but as it comes too late for 5.2.4 it would go into 5.2.5, which will be released just 2 weeks before 5.3.0 stable, so I think it doesn't really matter.

avatar fgsw fgsw - test_item - 15 Feb 2025 - Tested successfully
avatar fgsw
fgsw - comment - 15 Feb 2025

I have tested this item ✅ successfully on 0c4cb29


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

avatar richard67
richard67 - comment - 15 Feb 2025

Install an RTL language which uses the gregorian calendar

@brianteeman I've tested with Urdu, which uses Gregorian calendar, and to see that nothing is broken I've tested also with Persian (Farsi), which uses the Jalali calendar. In both cases the day order changes with your PR. As I don't speak or read Farsi or Urdu I have to investigate if your PR is right. But maybe your testing instruction only forgot to mention Jalali calendar?

avatar richard67
richard67 - comment - 15 Feb 2025

For Urdu (Pakistan) ur-PK, which uses the Gregorian calendar, the PR works as described, i.e. only the direction of weekday headings has changed:
2025-02-15_test-pr-44900_urdu

For Farsi (Persian, Iran) fa-IR, which uses the Jalali calendar, the PR not only changes the direction but also the week start:
2025-02-15_test-pr-44900_persian

As I don't understand Farsi, I can't say right now which one is right.

avatar richard67
richard67 - comment - 15 Feb 2025

Possibly the code added by this PR should not be added after but before line 654?
No, forget it.

avatar richard67
richard67 - comment - 15 Feb 2025

I've found https://www.parstimes.com/persian/calendar/ , but the day names or abbreviations in the calendar for today look completely different to me:
2025-02-15_test-pr-44900_persian-www

avatar richard67
richard67 - comment - 15 Feb 2025

I've emailed the Persian translation coordinator. I did not get an answer yet, but right now it looks as if this PR fixes the issue also for Persian, i.e. the PR is right. At least that's the feedback I got up to now from discussion in Mattermost.

If that is confirmed, this PR will get a successful test from me.

avatar brianteeman
brianteeman - comment - 17 Feb 2025

I would still like a js person to review this especially because of

Note that JS is not my thing and it looks like there is code for this already at line 140 but it is not working? Maybe a js expert can see why.

Add a Comment

Login with GitHub to post a comment