diff --git a/pkg/harvester-manager/index.ts b/pkg/harvester-manager/index.ts index 498debb388e..2e1dcbaddfb 100644 --- a/pkg/harvester-manager/index.ts +++ b/pkg/harvester-manager/index.ts @@ -14,6 +14,13 @@ export default function(plugin: IPlugin) { plugin.addProduct(require('./config/harvester-manager')); + if (plugin.environment.isPrime) { + plugin.register('l10n-global', 'Harvester', 'SUSE Virtualization'); + plugin.register('l10n', 'en-us', () => { + return { product: { harvesterManager: 'SUSE Virtualization' } }; + }); + } + plugin.addTab( TabLocation.RESOURCE_CREATE_PAGE, { diff --git a/pkg/harvester-manager/l10n/en-us.yaml b/pkg/harvester-manager/l10n/en-us.yaml index 5c73450d06e..697edeacbbc 100644 --- a/pkg/harvester-manager/l10n/en-us.yaml +++ b/pkg/harvester-manager/l10n/en-us.yaml @@ -2,45 +2,45 @@ harvesterManager: manage: Manage tableHeaders: kubernetesVersion: Kubernetes Version - harvesterVersion: Harvester Version + harvesterVersion: '[[Harvester]] Version' cluster: - label: Harvester Clusters - none: There are no Harvester Clusters - learnMore: Learn more about Harvester from the Harvester Web Site or read the Harvester Docs - description: Harvester is a modern Hyperconverged infrastructure (HCI) solution built for bare metal servers using enterprise-grade open source technologies including Kubernetes, Kubevirt and Longhorn. - supportMessage: The Harvester UI Extension only supports Harvester v1.3.0 and later versions + label: '[[Harvester]] Clusters' + none: There are no [[Harvester]] Clusters + learnMore: Learn more about [[Harvester]] from the [[Harvester]] Web Site or read the [[Harvester]] Docs + description: '[[Harvester]] is a modern Hyperconverged infrastructure (HCI) solution built for bare metal servers using enterprise-grade open source technologies including Kubernetes, Kubevirt and Longhorn.' + supportMessage: The [[Harvester]] UI Extension only supports [[Harvester]] v1.3.0 and later versions plugins: loadError: Error loading harvester plugin extension: install: - warning: "The Harvester UI Extension is not installed" - prompt: "UI Integration for Harvester is now provided via the new Harvester UI Extension, which needs to be installed." + warning: "The [[Harvester]] UI Extension is not installed" + prompt: "UI Integration for [[Harvester]] is now provided via the new [[Harvester]] UI Extension, which needs to be installed." prompt-standard-user: Please contact your system administrator steps: repo: 1: Go to the 2: Apps Repositories - 3: page and add the Harvester repository + 3: page and add the [[Harvester]] repository ui: 1: Go to the 2: Extensions - 3: page and install the Harvester Extension + 3: page and install the [[Harvester]] Extension update: - warning: "Your current Harvester UI Extension ({currentVersion}) is not the latest." - prompt: "A new version ({ newVersion }) is available, please click on Update button to install the latest Harvester UI Extension" + warning: "Your current [[Harvester]] UI Extension ({currentVersion}) is not the latest." + prompt: "A new version ({ newVersion }) is available, please click on Update button to install the latest [[Harvester]] UI Extension" prompt-standard-user: Please contact your system administrator to install the latest version missingRepo: - warning: "The Harvester UI Extension repository is missing" - prompt: "Please click on Update button to add the Harvester repository and install the latest Harvester UI Extension" - prompt-standard-user: Please contact your system administrator to install the latest Harvester UI Extension + warning: "The [[Harvester]] UI Extension repository is missing" + prompt: "Please click on Update button to add the [[Harvester]] repository and install the latest [[Harvester]] UI Extension" + prompt-standard-user: Please contact your system administrator to install the latest [[Harvester]] UI Extension missingVersion: warning: "Could not find a compatible version" - prompt: "Please update Rancher to get the latest compatible version of the Harvester UI extension or try to install it manually" + prompt: "Please update Rancher to get the latest compatible version of the [[Harvester]] UI extension or try to install it manually" prompt-standard-user: Please contact your system administrator error: - warning: "Warning, Harvester UI extension automatic installation failed" - prompt: "Please refresh the page and try again or install the Harvester UI extension manually" - prompt-standard-user: Please contact your system administrator to install or update the Harvester extension + warning: "Warning, [[Harvester]] UI extension automatic installation failed" + prompt: "Please refresh the page and try again or install the [[Harvester]] UI extension manually" + prompt-standard-user: Please contact your system administrator to install or update the [[Harvester]] extension rke: templateError: Incorrect template format affinity: diff --git a/pkg/harvester-manager/l10n/zh-hans.yaml b/pkg/harvester-manager/l10n/zh-hans.yaml index c91f94b001d..63d633664d7 100644 --- a/pkg/harvester-manager/l10n/zh-hans.yaml +++ b/pkg/harvester-manager/l10n/zh-hans.yaml @@ -1,12 +1,12 @@ harvesterManager: manage: 管理 cluster: - label: Harvester 集群 - none: 不存在 Harvester 集群 - learnMore: 访问 Harvester 网站 或阅读 Harvester 官方文档,以了解更多关于 Harvester 的信息。 - description: Harvester 是一个采用企业级开源技术,包括Kubernetes、Kubevirt和Longhorn,为裸金属服务器打造的现代超融合基础设施(HCI)解决方案。 + label: '[[Harvester]] 集群' + none: 不存在 [[Harvester]] 集群 + learnMore: 访问 [[Harvester]] 网站 或阅读 [[Harvester]] 官方文档,以了解更多关于 [[Harvester]] 的信息。 + description: '[[Harvester]] 是一个采用企业级开源技术,包括Kubernetes、Kubevirt和Longhorn,为裸金属服务器打造的现代超融合基础设施(HCI)解决方案。' plugins: - loadError: 加载 Harvester 插件时出错 + loadError: 加载 [[Harvester]] 插件时出错 rke: templateError: 模版格式不正确 cpuModel: diff --git a/pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue b/pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue index 769ce2c2faf..d4eb8ae922b 100644 --- a/pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue +++ b/pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue @@ -240,7 +240,20 @@ export default { // No custom rows limit; 'Table Rows Per Page' preference will be used. return null; - } + }, + + // Return the logo information based on whether is is Harvester or SUSE Virtualization. + logo() { + const isSuseVirtualization = this.$store.getters['i18n/global']('Harvester') === 'SUSE Virtualization'; + + return !isSuseVirtualization ? { + name: 'harvester.png', + height: 64 + } : { + name: 'suse-virtualization.svg', + height: 36 + } + }, }, methods: { @@ -455,8 +468,8 @@ export default {