No Code Attached Yet
avatar brianteeman
brianteeman
4 Feb 2025

Steps to reproduce the issue

Easier to modify the eng language than struggle with installing an RTL language

In administrator\language\en-GB\langmetadata.xml set <rtl>1</rtl>

Go to any calendar such as article publish date

Expected result

Image

Actual result

Image

Additional comments

As can be seen the dates are correctly displayed RTL but the day names in the table header remain LTR

The calendar.js has code to detect if it is RTL and to reverse the order of the days

// Legacy thing, days for RTL is reversed
if (this.params.direction === 'rtl') {
this.strings.days = this.strings.days.reverse();
this.strings.shortDays = this.strings.shortDays.reverse();
}

But this does not appear to get used in the code to generate the table head which starts here

row = createElement("tr", thead); // day names

Of course my js analysis could be completely wrong but the bug is still a bug

avatar brianteeman brianteeman - open - 4 Feb 2025
avatar joomla-cms-bot joomla-cms-bot - change - 4 Feb 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Feb 2025
avatar akshat16j
akshat16j - comment - 5 Feb 2025

Hey! I'm interested. Can you assign this issue to me?

avatar fgsw
fgsw - comment - 6 Feb 2025

Can you assign this issue to me?

@akshat16j Issues aren't assigned, doing a Pull Request is enough.

Add a Comment

Login with GitHub to post a comment