DEV: One more i18n string

This commit is contained in:
Jarek Radosz 2023-01-24 20:54:28 +01:00
parent e418f0ba5d
commit 3d24afc6bc
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,6 @@
import Repo from "discourse/plugins/docker_manager/discourse/models/repo";
import Route from "@ember/routing/route";
import I18n from "I18n";
export default class UpgradeIndex extends Route {
model() {
@ -32,12 +33,9 @@ export default class UpgradeIndex extends Route {
// Special case: If the branch is "main" warn user
if (repo.id === "discourse" && repo.branch === "origin/main") {
this.controllerFor("upgrade").appendBannerHtml(`
<b>WARNING:</b>
Your Discourse is tracking the 'main' branch which may be unstable,
<a href='https://meta.discourse.org/t/change-tracking-branch-for-your-discourse-instance/17014'>
we recommend tracking the 'tests-passed' branch</a>.
`);
this.controllerFor("upgrade").appendBannerHtml(
I18n.t("admin.docker.main_branch_warning")
);
}
});

View File

@ -12,6 +12,7 @@ en:
last_updated: "Last Updated:"
latest_version: "Latest Version:"
link_to_upgrade: "Perform upgrades here"
main_branch_warning: "<b>WARNING:</b> Your Discourse is tracking the 'main' branch which may be unstable, <a href='https://meta.discourse.org/t/change-tracking-branch-for-your-discourse-instance/17014'> we recommend tracking the 'tests-passed' branch</a>."
new_version_available: "New Version Available!"
official_plugin: "Official Plugin"
outdated_notice: "Your Discourse installation is out of date"