From 633bdac21afe7bcd8212b8e0cd6a1157b6975c16 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 24 Feb 2020 14:21:39 +0100 Subject: [PATCH] Don't start message with a newline That breaks a couple of things: * It messes up the layout of the message. * The translations need to have this newline in as well, or they won't be accepted by gettext. * The x-test translation puts 'xxxx' before the translation, so this one won't compile any more. Contributes to issue CURA-7201. --- .../Toolbox/src/CloudSync/CloudPackageChecker.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/Toolbox/src/CloudSync/CloudPackageChecker.py b/plugins/Toolbox/src/CloudSync/CloudPackageChecker.py index 5b60d7d2a0..1f8b153c8f 100644 --- a/plugins/Toolbox/src/CloudSync/CloudPackageChecker.py +++ b/plugins/Toolbox/src/CloudSync/CloudPackageChecker.py @@ -90,14 +90,14 @@ class CloudPackageChecker(QObject): Logger.log("d", "Discrepancy found between Cloud subscribed packages and Cura installed packages") sync_message = Message(self._i18n_catalog.i18nc( "@info:generic", - "\nDo you want to sync material and software packages with your account?"), - title=self._i18n_catalog.i18nc("@info:title", "Changes detected from your Ultimaker account", ), - lifetime=0) + "Do you want to sync material and software packages with your account?"), + title = self._i18n_catalog.i18nc("@info:title", "Changes detected from your Ultimaker account", ), + lifetime = 0) sync_message.addAction("sync", - name=self._i18n_catalog.i18nc("@action:button", "Sync"), - icon="", - description="Sync your Cloud subscribed packages to your local environment.", - button_align=Message.ActionButtonAlignment.ALIGN_RIGHT) + name = self._i18n_catalog.i18nc("@action:button", "Sync"), + icon = "", + description = "Sync your Cloud subscribed packages to your local environment.", + button_align = Message.ActionButtonAlignment.ALIGN_RIGHT) sync_message.actionTriggered.connect(self._onSyncButtonClicked) sync_message.show()