From 534e119e7288d27d9112883766071d9a6cf0a2dc Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 7 Sep 2021 14:26:43 +0200 Subject: Fix translations of log-in page and sync message The French and Italian translations didn't have proper newlines there. The message for the sync progress wasn't translated because it didn't properly get the catalog. Contributes to issue CURA-8472. --- plugins/Toolbox/src/CloudSync/DownloadPresenter.py | 6 ++++-- resources/i18n/fr_FR/cura.po | 5 ++++- resources/i18n/it_IT/cura.po | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/plugins/Toolbox/src/CloudSync/DownloadPresenter.py b/plugins/Toolbox/src/CloudSync/DownloadPresenter.py index a070065540..8a5e763f3c 100644 --- a/plugins/Toolbox/src/CloudSync/DownloadPresenter.py +++ b/plugins/Toolbox/src/CloudSync/DownloadPresenter.py @@ -6,7 +6,7 @@ from typing import Dict, List, Any from PyQt5.QtNetwork import QNetworkReply -from UM import i18n_catalog +from UM.i18n import i18nCatalog from UM.Logger import Logger from UM.Message import Message from UM.Signal import Signal @@ -15,6 +15,8 @@ from cura.CuraApplication import CuraApplication from cura.UltimakerCloud.UltimakerCloudScope import UltimakerCloudScope from .SubscribedPackagesModel import SubscribedPackagesModel +i18n_catalog = i18nCatalog("cura") + class DownloadPresenter: """Downloads a set of packages from the Ultimaker Cloud Marketplace @@ -90,7 +92,7 @@ class DownloadPresenter: lifetime = 0, use_inactivity_timer = False, progress = 0.0, - title = i18n_catalog.i18nc("@info:title", "Changes detected from your Ultimaker account", )) + title = i18n_catalog.i18nc("@info:title", "Changes detected from your Ultimaker account")) def _onFinished(self, package_id: str, reply: QNetworkReply) -> None: self._progress[package_id]["received"] = self._progress[package_id]["total"] diff --git a/resources/i18n/fr_FR/cura.po b/resources/i18n/fr_FR/cura.po index 1bf5efd375..a0cb30bc72 100644 --- a/resources/i18n/fr_FR/cura.po +++ b/resources/i18n/fr_FR/cura.po @@ -3127,7 +3127,10 @@ msgid "" "- Add material profiles and plug-ins from the Marketplace\n" "- Back-up and sync your material profiles and plug-ins\n" "- Share ideas and get help from 48,000+ users in the Ultimaker community" -msgstr "- Ajoutez des profils de matériaux et des plug-ins à partir de la Marketplace - Sauvegardez et synchronisez vos profils de matériaux et vos plug-ins - Partagez vos idées et obtenez l'aide de plus de 48 000 utilisateurs de la communauté Ultimaker" +msgstr "" +"- Ajoutez des profils de matériaux et des plug-ins à partir de la Marketplace\n" +"- Sauvegardez et synchronisez vos profils de matériaux et vos plug-ins\n" +"- Partagez vos idées et obtenez l'aide de plus de 48 000 utilisateurs de la communauté Ultimaker" #: /home/trin/Gedeeld/Projects/Cura/resources/qml/Account/GeneralOperations.qml:62 msgctxt "@button" diff --git a/resources/i18n/it_IT/cura.po b/resources/i18n/it_IT/cura.po index 26d125cae3..e4b973e436 100644 --- a/resources/i18n/it_IT/cura.po +++ b/resources/i18n/it_IT/cura.po @@ -3130,7 +3130,8 @@ msgid "" "- Share ideas and get help from 48,000+ users in the Ultimaker community" msgstr "" "- Aggiungi profili materiale e plugin dal Marketplace\n" -"- Esegui il backup e la sincronizzazione dei profili materiale e dei plugin⏎- Condividi idee e ottieni supporto da più di 48.000 utenti nella community di Ultimaker" +"- Esegui il backup e la sincronizzazione dei profili materiale e dei plugin\n" +"- Condividi idee e ottieni supporto da più di 48.000 utenti nella community di Ultimaker" #: /home/trin/Gedeeld/Projects/Cura/resources/qml/Account/GeneralOperations.qml:62 msgctxt "@button" -- cgit v1.2.3