Merge pull request #7320 from nextcloud/bugfix/text

Make string more readable for translators.
This commit is contained in:
Matthieu Gallien 2024-10-15 08:55:55 +02:00 committed by GitHub
commit 88ba1816e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -394,18 +394,23 @@ void GeneralSettings::slotUpdateChannelChanged()
return; return;
} }
const auto enterprise = configFile.validUpdateChannels().contains("enterprise") ? tr("- enterprise: contains stable versions for customers.\n", const auto nonEnterpriseOptions = tr("- beta: contains versions with new features that may not be tested thoroughly\n"
"description of enterprise update channel for enterprise customers") "- daily: contains versions created daily only for testing and development\n"
: ""; "\n"
"Downgrading versions is not possible immediately: changing from beta to stable means waiting for the new stable version.",
"list of available update channels to non enterprise users and downgrading warning");
const auto enterpriseOptions = tr("- enterprise: contains stable versions for customers.\n"
"\n"
"Downgrading versions is not possible immediately: changing from stable to enterprise means waiting for the new enterprise version.",
"list of available update channels to enterprise users and downgrading warning");
auto msgBox = new QMessageBox( auto msgBox = new QMessageBox(
QMessageBox::Warning, QMessageBox::Warning,
tr("Changing update channel?"), tr("Changing update channel?"),
tr("The channel determines which upgrades will be offered to install:\n" tr("The channel determines which upgrades will be offered to install:\n"
"- stable: contains tested versions considered reliable\n" "- stable: contains tested versions considered reliable\n",
"- beta: contains versions with new features that may not be tested thoroughly\n" "starts list of available update channels, stable is always available")
"- daily: contains versions created daily only for testing and development\n" .append(configFile.validUpdateChannels().contains("enterprise") ? enterpriseOptions : nonEnterpriseOptions),
"%1\n"
"Downgrading versions is not possible immediately: changing from beta to stable means waiting for the new stable version.").arg(enterprise),
QMessageBox::NoButton, QMessageBox::NoButton,
this); this);
const auto acceptButton = msgBox->addButton(tr("Change update channel"), QMessageBox::AcceptRole); const auto acceptButton = msgBox->addButton(tr("Change update channel"), QMessageBox::AcceptRole);