]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Make string more readable for translators.
authorCamila Ayres <hello@camilasan.com>
Mon, 14 Oct 2024 18:49:21 +0000 (20:49 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 15 Oct 2024 06:55:47 +0000 (08:55 +0200)
Fix #7309.

Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/generalsettings.cpp

index 6af68b396cbe8d357ee13daf73b8a1a9205b6914..ab28ca196903f1fd07b9919866fde24cfbc634a2 100644 (file)
@@ -394,18 +394,23 @@ void GeneralSettings::slotUpdateChannelChanged()
         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);