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.
This commit is contained in:
Ghostkeeper 2021-09-07 14:26:43 +02:00
parent 5678b1907a
commit 534e119e72
No known key found for this signature in database
GPG key ID: 68F39EA88EEED5FF
3 changed files with 10 additions and 4 deletions

View file

@ -6,7 +6,7 @@ from typing import Dict, List, Any
from PyQt5.QtNetwork import QNetworkReply from PyQt5.QtNetwork import QNetworkReply
from UM import i18n_catalog from UM.i18n import i18nCatalog
from UM.Logger import Logger from UM.Logger import Logger
from UM.Message import Message from UM.Message import Message
from UM.Signal import Signal from UM.Signal import Signal
@ -15,6 +15,8 @@ from cura.CuraApplication import CuraApplication
from cura.UltimakerCloud.UltimakerCloudScope import UltimakerCloudScope from cura.UltimakerCloud.UltimakerCloudScope import UltimakerCloudScope
from .SubscribedPackagesModel import SubscribedPackagesModel from .SubscribedPackagesModel import SubscribedPackagesModel
i18n_catalog = i18nCatalog("cura")
class DownloadPresenter: class DownloadPresenter:
"""Downloads a set of packages from the Ultimaker Cloud Marketplace """Downloads a set of packages from the Ultimaker Cloud Marketplace
@ -90,7 +92,7 @@ class DownloadPresenter:
lifetime = 0, lifetime = 0,
use_inactivity_timer = False, use_inactivity_timer = False,
progress = 0.0, 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: def _onFinished(self, package_id: str, reply: QNetworkReply) -> None:
self._progress[package_id]["received"] = self._progress[package_id]["total"] self._progress[package_id]["received"] = self._progress[package_id]["total"]

View file

@ -3127,7 +3127,10 @@ msgid ""
"- Add material profiles and plug-ins from the Marketplace\n" "- Add material profiles and plug-ins from the Marketplace\n"
"- Back-up and sync your material profiles and plug-ins\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" "- 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 #: /home/trin/Gedeeld/Projects/Cura/resources/qml/Account/GeneralOperations.qml:62
msgctxt "@button" msgctxt "@button"

View file

@ -3130,7 +3130,8 @@ msgid ""
"- Share ideas and get help from 48,000+ users in the Ultimaker community" "- Share ideas and get help from 48,000+ users in the Ultimaker community"
msgstr "" msgstr ""
"- Aggiungi profili materiale e plugin dal Marketplace\n" "- 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 #: /home/trin/Gedeeld/Projects/Cura/resources/qml/Account/GeneralOperations.qml:62
msgctxt "@button" msgctxt "@button"