[4.0] Set default Site and Admin languages in installer#28328
[4.0] Set default Site and Admin languages in installer#28328wilsonge merged 20 commits intojoomla:4.0-devfrom
Conversation
…efaultlanguage
|
Good job! 👍 TODO
NOTE:
|
|
|
||
| $this->installed_languages = new \stdClass; | ||
| $this->installed_languages->administrator = $this->get('InstalledlangsAdministrator', 'Languages'); | ||
| $this->installed_languages->frontend = $this->get('InstalledlangsAdministrator', 'Languages'); |
There was a problem hiding this comment.
weird. It works but should not it be get('InstalledlangsFrontend' ?
There was a problem hiding this comment.
Sorrry, I did not see this comment.
The get is set here:
There was a problem hiding this comment.
curiously, I tested with that modification and it worked also fine...
Thank you for your improvements. This is done.
I deleted these lines because you suggested that. The languages are now unpublished as content languages installed. Is that how it should be?
Done.
Done.
Since the languages are installed at this point in the installation, that fits. I honestly admit that I haven't tested it. |
Yes, it should behave as when we install languages in backend, i.e. the content languages should be created but not be published. |
|
I would certainly create the content language. I don't mind if they are published or not. |
This is how it is in this issue at the moment. Then that fits. |
|
If I do not mistake, this PR contains an extraneous file which is a copy of your config.php |
Thanks. I deleted this wrong file. |
…efaultlanguage
|
I have tested this item ✅ successfully on cd44169 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28328. |
|
I have not tested this item. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28328. |
…efaultlanguage
|
@richard67 @astridx Could you check? Thanks Richard. I answered it. |
|
@astridx both work here... |
|
@astridx The reason is that we do not see an error because the packs we test contain both admin and site parts, but we may have lang packs which contain only the site part, thus why the method/property should correspond precisely. |
|
@infograf768 |
|
I have tested this item ✅ successfully on b216ae2 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28328. |
|
I have tested this item ✅ successfully on b216ae2 Well done. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28328. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28328. |
|
Thankyou very much for picking this up @astridx ! Super appreciated and nice work! |
Alternative Pull Request for Draft #27951.
Summary of Changes
Adding back the ability to set Site and Admin languages in the installer.
Testing Instructions
npm ciorcomposer i.Expected result
People who don't speak English as a native language are able to set the admin default language before they start to configure things.
Actual result
It is not possible to set a default language during installation.
Documentation Changes Required
Not sure.