ui: repo status: adapt some warning/error gettexts

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-02 23:59:56 +02:00
parent 46231d0da2
commit 96ecd62ac1

View File

@ -462,7 +462,7 @@ Ext.define('Proxmox.node.APTRepositories', {
let wrongSuites = vm.get('suitesWarning'); let wrongSuites = vm.get('suitesWarning');
if (!enterprise && !nosubscription && !test) { if (!enterprise && !nosubscription && !test) {
addWarn(Ext.String.format(gettext('No {0} repository is enabled!'), vm.get('product'))); addWarn(Ext.String.format(gettext('No {0} repository is enabled, you do not get any updates!'), vm.get('product')));
} else if (enterprise && !nosubscription && !test && activeSubscription) { } else if (enterprise && !nosubscription && !test && activeSubscription) {
addGood(Ext.String.format(gettext('You get supported updates for {0}'), vm.get('product'))); addGood(Ext.String.format(gettext('You get supported updates for {0}'), vm.get('product')));
} else if (nosubscription || test) { } else if (nosubscription || test) {
@ -470,7 +470,7 @@ Ext.define('Proxmox.node.APTRepositories', {
} }
if (wrongSuites) { if (wrongSuites) {
addWarn(gettext('Some Suites are misconfigured')); addWarn(gettext('Some suites are misconfigured'));
} }
if (!activeSubscription && enterprise) { if (!activeSubscription && enterprise) {
@ -482,11 +482,11 @@ Ext.define('Proxmox.node.APTRepositories', {
} }
if (test) { if (test) {
addWarn(gettext('The test repository is not recommended for production use!')); addWarn(gettext('The test repository may pull in unstable updates and is not recommended for production use!'));
} }
if (errors.length > 0) { if (errors.length > 0) {
text = gettext('Error parsing repositories'); text = gettext('Fatal error when parsing at least one repository');
} }
let iconCls = Proxmox.Utils.get_health_icon(status, true); let iconCls = Proxmox.Utils.get_health_icon(status, true);