Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make string more readable for translators. #7320

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions src/gui/generalsettings.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*

Check notice on line 1 in src/gui/generalsettings.cpp

View workflow job for this annotation

GitHub Actions / build

Run clang-format on src/gui/generalsettings.cpp

File src/gui/generalsettings.cpp does not conform to Custom style guidelines. (lines 397, 398, 399, 400, 402, 403, 404, 411, 412, 413)
* Copyright (C) by Daniel Molkentin <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -394,18 +394,23 @@
return;
}

const auto enterprise = configFile.validUpdateChannels().contains("enterprise") ? tr("- enterprise: contains stable versions for customers.\n",
"description of enterprise update channel for enterprise customers")
: "";
const auto nonEnterpriseOptions = tr("- beta: contains versions with new features that may not be tested thoroughly\n"
"- 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(
QMessageBox::Warning,
tr("Changing update channel?"),
tr("The channel determines which upgrades will be offered to install:\n"
"- stable: contains tested versions considered reliable\n"
"- beta: contains versions with new features that may not be tested thoroughly\n"
"- daily: contains versions created daily only for testing and development\n"
"%1\n"
"Downgrading versions is not possible immediately: changing from beta to stable means waiting for the new stable version.").arg(enterprise),
"- stable: contains tested versions considered reliable\n",
"starts list of available update channels, stable is always available")
.append(configFile.validUpdateChannels().contains("enterprise") ? enterpriseOptions : nonEnterpriseOptions),
QMessageBox::NoButton,
this);
const auto acceptButton = msgBox->addButton(tr("Change update channel"), QMessageBox::AcceptRole);
Expand Down
Loading