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:
Vinoth Kannan 2024-04-02 20:04:37 +05:30 committed by GitHub
parent c76b10ec22
commit cd43985de0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 10 deletions

View File

@ -125,17 +125,17 @@
<span class="normal-note">
{{i18n "admin.dashboard.updates_available"}}
</span>
{{i18n "admin.dashboard.please_upgrade"}}
{{i18n "admin.dashboard.please_update"}}
{{/if}}
</div>
</div>
{{/if}}
<CustomHtml
@name="upgrade-header"
@name="update-header"
@versionCheck={{this.versionCheck}}
@tagName="div"
@classNames="upgrade-header"
@classNames="update-header"
/>
<PluginOutlet

View File

@ -526,7 +526,7 @@
justify-content: space-between;
padding-top: 1em;
.upgrade-header {
.update-header {
flex: 1 1 100%;
@media screen and (max-width: 650px) {

View File

@ -2037,7 +2037,7 @@ en:
close: "close"
dismiss_error: "Dismiss error"
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."
refresh: "Refresh"
home: "Home"
@ -4843,10 +4843,10 @@ en:
up_to_date: "You're up to date!"
critical_available: "A critical update is 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."
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"
latest_version: "Latest"
problems_found: "Some advice based on your current site settings"

View File

@ -3066,7 +3066,7 @@ en:
Your version: %{installed_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)
@ -3081,7 +3081,7 @@ en:
Your version: %{installed_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)

View File

@ -39,7 +39,7 @@ module DiscourseUpdates
)
# 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
Jobs.enqueue(:call_discourse_hub, all_sites: true)
version_info.version_check_pending = true