-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.3] RTL Calendar Days #44900
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
[5.3] RTL Calendar Days #44900
Conversation
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. Signed-off-by: BrianTeeman <[email protected]>
Seems there is an issue with a full disk. Will notify some people. |
Later created Pull Request have now available Prebuilt packages (this one still not). |
I‘ve restarted the drone build, so new packages should be available soon. |
Packages are available now. |
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. |
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. |
@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? |
|
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: |
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. |
I would still like a js person to review this especially because of
|
am i wasting my time here |
@brianteeman No, just leave the PR open. I did not get a reply from them. I will try again and try to find other testers. Give me a bit time. I'm optimistic we can get this ready for 5.3.x, if not 5.3.1 then 5.3.2. Update: I just see it has already 1 good test (which I've restored after branch update because still valid). |
Ok, I have found out what the issue with the Persian calendar is: The translators have worked around the issue in their joomla.ini file. Currently that is:
When throwing that into a translator or check at https://en.wikipedia.org/wiki/Names_of_the_days_of_the_week you will see that they have used for Sunday the translation of Saturday, for Monday the translation of Friday, for Tuesday the translation of Thursday, Wednesday ir right, for Thursday they have used the translation of Tuesday, for Friday the translation of Monday and for Saturday the one of Sunday. That means they have worked around the reverse order and also the wrong start of the week and weekend days in their langmetadata.xml. Or in short words: This PR here is right (as my test for Urdu ur-PK has shown), but it will need a fix in their translations when this PR gets merged and released because it breaks their ugly workaround. @tecpromotion Do you have a contact to the Persian translators? I had tried the email address from the translation downloads but did not get any answer when I had asked for their advice before. |
I have tested this item ✅ successfully on 7319a4b The different week start day (Monday in de-DE, Sunday in the others) was also correctly handled. The issues I've discovered for the Persian calendar are caused by a wrong workaround in their translation, see my previous comment. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44900. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44900. |
In the Persian (fa-IR) In the Persian (fa-IR)
to
|
@dgrammatiko could you have a look here?
|
Thx |
thanks |
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 1as this is a js change you will need to apply the pr and then
npm run build:js
or use a prebuilt packageActual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
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