-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Changing Chinese calendar js files to lowercase #19659
Conversation
The issue is present on LINUX systems. |
Thanks JM! In the Windows platform, one cannot encounter thie issue as the filenames are handled in case insensitive manner. In the Linux platform, where the filenames are case sensitive, one would encounter this issue. Please see the images tested on a Linux platform. The testing was done with both the languages Chinese, Traditional (zh-TW) and Chinese, Simplified (zh-CN). The results are the same. For illustrative purpose, only the result of the language zh-TW is shown. To test this, the Default Administrative Language has to be changed to changed to appropriate language. In this case it would be Chinese, Simplified (zh-CN). Image 1: Before renaming the file zh-CN.js Image 2: After renaming the file zh-CN.js to zh-cn.js |
@infograf768 for J4 I will automate this the same way I did for the installation error page, eg using the node build.js tools: https://github.com/joomla/joomla-cms/blob/4.0-dev/build/build-modules-js/installation.js. This means the files will get generated automatically through the ini files, so we rule out such bugs... |
I have asked Mig to test with this patch
Let's see if it works |
I am told it works. Making new PR |
replacing by #19662 |
From @imanickam
On Siteground joomla demo sites, the Chinese calendar js files will not be used and it defaults to en-GB as their name contains Uppercase.
This patch corrects this.
Now, it also needs some changes in script.php, but I wonder how it will behave i.e. will it delete only the uppercase version?
@mbabker @dgt41
Maybe it would be better to change to lowercase through code when calling these js? That would avoid the possible issues with script.php.
What do you think?