-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[4.0] [WIP] Joomla Installation: multiple corrections when installing languages and more #32601
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
Closed
infograf768
wants to merge
3
commits into
joomla:4.0-dev
from
infograf768:4.0-installation_languages
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,23 +22,26 @@ | |||||
| <legend class="j-install-step-header"> | ||||||
| <span class="icon-trophy" aria-hidden="true"></span> <?php echo Text::_('INSTL_COMPLETE_CONGRAT'); ?> | ||||||
| </legend> | ||||||
| <div class="j-install-step-form" id="customInstallation"> | ||||||
| <div class="j-install-step-header"> | ||||||
| <h2><?php echo Text::_('INSTL_COMPLETE_TITLE'); ?></h2> | ||||||
| </div> | ||||||
| <div class="j-install-step-form" id="customInstallation"> | ||||||
| <div class="mb-3 mt-4"> | ||||||
| <button class="btn btn-primary w-100" id="installAddFeatures"> | ||||||
| <?php echo Text::_('INSTL_COMPLETE_ADD_EXTRA_LANGUAGE'); ?> <span class="icon-chevron-right" aria-hidden="true"></span> | ||||||
| </button> | ||||||
| </div> | ||||||
| </div> | ||||||
|
|
||||||
| <div id="langInstall" class="install-lang active"> | ||||||
| <?php if (count($this->installed_languages->administrator) > 1) : ?> | ||||||
| <div id="defaultLanguage" | ||||||
| class="j-install-step-form flex-column mt-5 border rounded" | ||||||
| > | ||||||
| <div id="defaultLanguage" | ||||||
| class="j-install-step-form flex-column mt-5 border rounded" | ||||||
| > | ||||||
| <?php else : ?> | ||||||
| <div id="defaultLanguage" | ||||||
| class="j-install-step-form flex-column mt-5 border rounded d-none" | ||||||
| > | ||||||
| <div id="defaultLanguage" | ||||||
| class="j-install-step-form flex-column mt-5 border rounded d-none" | ||||||
| > | ||||||
| <?php endif; ?> | ||||||
| <p><?php echo Text::_('INSTL_DEFAULTLANGUAGE_DESC'); ?></p> | ||||||
| <table class="table table-sm"> | ||||||
|
|
@@ -123,6 +126,7 @@ class="j-install-step-form flex-column mt-5 border rounded d-none" | |||||
| </button> | ||||||
| <?php echo HTMLHelper::_('form.token'); ?> | ||||||
| </div> | ||||||
| </div> | ||||||
| </fieldset> | ||||||
|
|
||||||
| <div id="installRecommended" class="j-install-step active"> | ||||||
|
|
@@ -174,12 +178,14 @@ class="j-install-step-form flex-column mt-5 border rounded d-none" | |||||
| </table> | ||||||
|
|
||||||
| <?php endif; ?> | ||||||
| <?php if ($this->development) : ?> | ||||||
| <div class="alert flex-column mb-1" id="removeInstallationTab"> | ||||||
| <span class="mb-1 font-weight-bold"><?php echo Text::_('INSTL_SITE_DEVMODE_LABEL'); ?></span> | ||||||
| <button class="btn btn-danger mb-1" id="removeInstallationFolder"><?php echo Text::sprintf('INSTL_COMPLETE_REMOVE_FOLDER', 'installation'); ?></button> | ||||||
| </div> | ||||||
| <?php endif; ?> | ||||||
| <div class="alert flex-column mb-1" id="removeInstallationTab"> | ||||||
| <?php if ($this->development) : ?> | ||||||
| <span class="mb-1 font-weight-bold"><?php echo Text::sprintf('INSTL_SITE_DEVMODE_LABEL', 'installation'); ?></span> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Why would you want to change a language string to add html markup |
||||||
| <?php else : ?> | ||||||
| <span class="mb-1 font-weight-bold"><?php echo Text::sprintf('INSTL_COMPLETE_REMOVE_INSTALLATION', 'installation'); ?></span> | ||||||
| <?php endif; ?> | ||||||
| <button class="btn btn-danger mb-1" id="removeInstallationFolder"><?php echo Text::sprintf('INSTL_COMPLETE_REMOVE_FOLDER', 'installation'); ?></button> | ||||||
| </div> | ||||||
| <?php echo HTMLHelper::_('form.token'); ?> | ||||||
|
|
||||||
| <div class="form-group j-install-last-step d-grid gap-2"> | ||||||
|
|
@@ -270,6 +276,7 @@ class="btn btn-primary" | |||||
| </div> | ||||||
| </form> | ||||||
| </div> | ||||||
| </div> | ||||||
| </fieldset> | ||||||
|
|
||||||
| <fieldset id="installFinal" class="j-install-step"> | ||||||
|
|
@@ -280,6 +287,4 @@ class="btn btn-primary" | |||||
| <p><?php echo Text::_('INSTL_COMPLETE_FINAL_DESC'); ?></p> | ||||||
| </div> | ||||||
| </fieldset> | ||||||
|
|
||||||
|
|
||||||
| </div> | ||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this was present before BUT the class font-weight-bold should be avoided in this case. It is being used as a visual indication of importance but as it is just css it has no semantic meaning. Instead it should be either an appropriate heading or the semantic "strong"
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, what precisely do you suggest? Modifying both strings to add
<strong>in the values?In any case this is epiphenomenic in this PR and I will wait for real full tests