[4.2] Fix wrong installation language select default value#37252
[4.2] Fix wrong installation language select default value#37252laoneo merged 10 commits intojoomla:4.2-devfrom
Conversation
|
woohoo!! |
|
Can we use the same technique to do something that @wilsonge and I talked about for the language installation step which is to display the current installation language as the default option |
You mean, when I select de-DE, that this language pack is installed by default (when available) or is on top of the list? |
|
There are good reasons for it not to be installed by default. For example you are installing in german but the site is for a french client. I just mean that german is either at the top of the list or it stays in the same position but it is preselected as the default in that list. Hope that makes sense |
|
This method is not needed, to pre-select the installation language, we can just use the value of the dropdown: Then we just have to sort it up here based on this value. |
|
To be honest I never really looked to see how to do it. Something I can work on tomorrow |
|
I have tested this item ✅ successfully on cd2e2db This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37252. |
|
no its a bug. If you look at the xml joomla-cms/installation/language/en-NZ/langmetadata.xml Lines 3 to 14 in cb07dbd |
@brianteeman Do you know if this has to be fixed here in the repo or on Crowdin? |
|
@bembelimen Drone failing again at the API tests at the installation step. Last time it was the system test at the same place, and the time before again the API test. Always at the installation after having selected the language. It seems it is not always failing, but often. Maybe the tests need a little adjustment? |
sorry dont know |
I've proposed the fix on Crowdin. |
|
I have tested this item ✅ successfully on cd2e2db This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37252. |
|
@bembelimen I'd set RTC now as it has 2 tests, but there is still the drone failure of which I'm not sure if it is related. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37252. |
|
@laoneo Hmm, we still have the constantly failing installation in drone, due to which I was told I should not set RTC. When @roland-d would do an update of the 4.2-dev branch to the current 4.1-dev branch (so-called "upmerge"), we could see if the fix in the installation language file for the duplicate "English (United Kingdom)" will help with the tests so it's clear they do not fail due to this PR (and beside that would help me with rebasing some other PRs from 4.1-dev to 4.2-dev). |
|
Ok, restarted drone and it fails again. So time to remove RTC again. |
|
Back to pending. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37252. |
|
@richard67 Upmerge done |
|
@roland-d Thanks. Will update the branch of this PR here now. |
|
RTC but with an unanswered bug ? #37252 (comment) |
|
That bug already exists in 3.x (and should be fixed for sure) but is not related to this PR. |
But prior to this PR the language is never preselected. |
Where is this done? |
In 3.x it is, it was broken in 4.0 (which is fixed with this PR again) but the old behaviour is not improved. |
|
Ok |
|
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
|
Is the change in the composer lock file correct? |
|
Removed RTC as the pull request is still pending. |
|
Yes, the change in composer lock is correct. That pulls the updated Joomla Browser version, which fixes the issue we had with the tests. |
|
Then this needs to be fixed, before it can be merged. |
|
What needs to be fixed? |
|
The conflict |
|
I've solved the conflicting composer.lock file. The version from this PR was the right one because newer than the one from #37565 . RTC is still ok, it doesn't need new human tests as all changes after these were only for the automated tests (Joomla browser update) and clean branch updates. |
|
Thanks! |










Summary of Changes
Fix the language select default value when installing a fresh Joomla!
Testing Instructions
Actual result BEFORE applying this Pull Request
Although the language is discovered correctly, the "English" is displayed as the selected language:
Expected result AFTER applying this Pull Request
Correct language is selected: