Send translation keys instead of raw english string for backup checks

This commit is contained in:
Johannes Zellner
2021-04-01 16:31:47 +02:00
parent 84dfd4aa84
commit 5ccb1d44fe
+2 -2
View File
@@ -1608,9 +1608,9 @@ function checkConfiguration(callback) {
let message = '';
if (backupConfig.provider === 'noop') {
message = 'Cloudron backups are disabled. Please ensure this server is backed up using alternate means. See https://docs.cloudron.io/backups/#storage-providers for more information.';
message = 'backups.check.noop';
} else if (backupConfig.provider === 'filesystem' && !backupConfig.externalDisk) {
message = 'Cloudron backups are currently on the same disk as the Cloudron server instance. This is dangerous and can lead to complete data loss if the disk fails. See https://docs.cloudron.io/backups/#storage-providers for storing backups in an external location.';
message = 'backups.check.sameDisk';
}
callback(null, message);