mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
UX: rename the word "Upgrade" to "Update" in the UI. (#26396)
In this PR, all references in the UI to the word "`upgrade`" are changed to "`update`". This is to differentiate the update process in self-hosted sites from the plan "upgrade" process in hosted sites. Follow-up to the PR: https://github.com/discourse/docker_manager/pull/208
This commit is contained in:
parent
c76b10ec22
commit
cd43985de0
@ -125,17 +125,17 @@
|
|||||||
<span class="normal-note">
|
<span class="normal-note">
|
||||||
{{i18n "admin.dashboard.updates_available"}}
|
{{i18n "admin.dashboard.updates_available"}}
|
||||||
</span>
|
</span>
|
||||||
{{i18n "admin.dashboard.please_upgrade"}}
|
{{i18n "admin.dashboard.please_update"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<CustomHtml
|
<CustomHtml
|
||||||
@name="upgrade-header"
|
@name="update-header"
|
||||||
@versionCheck={{this.versionCheck}}
|
@versionCheck={{this.versionCheck}}
|
||||||
@tagName="div"
|
@tagName="div"
|
||||||
@classNames="upgrade-header"
|
@classNames="update-header"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<PluginOutlet
|
<PluginOutlet
|
||||||
|
@ -526,7 +526,7 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
|
|
||||||
.upgrade-header {
|
.update-header {
|
||||||
flex: 1 1 100%;
|
flex: 1 1 100%;
|
||||||
|
|
||||||
@media screen and (max-width: 650px) {
|
@media screen and (max-width: 650px) {
|
||||||
|
@ -2037,7 +2037,7 @@ en:
|
|||||||
close: "close"
|
close: "close"
|
||||||
dismiss_error: "Dismiss error"
|
dismiss_error: "Dismiss error"
|
||||||
close: "Close"
|
close: "Close"
|
||||||
assets_changed_confirm: "This site just received a software upgrade. Get the latest version now?"
|
assets_changed_confirm: "This site just received a software update. Get the latest version now?"
|
||||||
logout: "You were logged out."
|
logout: "You were logged out."
|
||||||
refresh: "Refresh"
|
refresh: "Refresh"
|
||||||
home: "Home"
|
home: "Home"
|
||||||
@ -4843,10 +4843,10 @@ en:
|
|||||||
up_to_date: "You're up to date!"
|
up_to_date: "You're up to date!"
|
||||||
critical_available: "A critical update is available."
|
critical_available: "A critical update is available."
|
||||||
updates_available: "Updates are available."
|
updates_available: "Updates are available."
|
||||||
please_upgrade: "Please upgrade!"
|
please_update: "Please update!"
|
||||||
no_check_performed: "A check for updates has not been performed. Ensure Sidekiq is running."
|
no_check_performed: "A check for updates has not been performed. Ensure Sidekiq is running."
|
||||||
stale_data: "A check for updates has not been performed lately. Ensure Sidekiq is running."
|
stale_data: "A check for updates has not been performed lately. Ensure Sidekiq is running."
|
||||||
version_check_pending: "Looks like you upgraded recently. Fantastic!"
|
version_check_pending: "Looks like you updated recently. Fantastic!"
|
||||||
installed_version: "Installed"
|
installed_version: "Installed"
|
||||||
latest_version: "Latest"
|
latest_version: "Latest"
|
||||||
problems_found: "Some advice based on your current site settings"
|
problems_found: "Some advice based on your current site settings"
|
||||||
|
@ -3066,7 +3066,7 @@ en:
|
|||||||
Your version: %{installed_version}
|
Your version: %{installed_version}
|
||||||
New version: **%{new_version}**
|
New version: **%{new_version}**
|
||||||
|
|
||||||
- Upgrade using our easy **[one-click browser upgrade](%{base_url}/admin/upgrade)**
|
- Update using our easy **[one-click browser update](%{base_url}/admin/update)**
|
||||||
|
|
||||||
- See what's new in the [release notes](https://meta.discourse.org/tag/release-notes) or view the [raw GitHub changelog](https://github.com/discourse/discourse/commits/main)
|
- See what's new in the [release notes](https://meta.discourse.org/tag/release-notes) or view the [raw GitHub changelog](https://github.com/discourse/discourse/commits/main)
|
||||||
|
|
||||||
@ -3081,7 +3081,7 @@ en:
|
|||||||
Your version: %{installed_version}
|
Your version: %{installed_version}
|
||||||
New version: **%{new_version}**
|
New version: **%{new_version}**
|
||||||
|
|
||||||
- Upgrade using our easy **[one-click browser upgrade](%{base_url}/admin/upgrade)**
|
- Update using our easy **[one-click browser update](%{base_url}/admin/update)**
|
||||||
|
|
||||||
- See what's new in the [release notes](https://meta.discourse.org/tag/release-notes) or view the [raw GitHub changelog](https://github.com/discourse/discourse/commits/main)
|
- See what's new in the [release notes](https://meta.discourse.org/tag/release-notes) or view the [raw GitHub changelog](https://github.com/discourse/discourse/commits/main)
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ module DiscourseUpdates
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Handle cases when version check data is old so we report something that makes sense
|
# Handle cases when version check data is old so we report something that makes sense
|
||||||
if version_info.updated_at.nil? || last_installed_version != Discourse::VERSION::STRING || # never performed a version check # upgraded since the last version check
|
if version_info.updated_at.nil? || last_installed_version != Discourse::VERSION::STRING || # never performed a version check # updated since the last version check
|
||||||
is_stale_data
|
is_stale_data
|
||||||
Jobs.enqueue(:call_discourse_hub, all_sites: true)
|
Jobs.enqueue(:call_discourse_hub, all_sites: true)
|
||||||
version_info.version_check_pending = true
|
version_info.version_check_pending = true
|
||||||
|
Loading…
Reference in New Issue
Block a user