Update more copies

CURA-10719
This commit is contained in:
c.lamboo 2023-07-27 10:31:38 +02:00
parent 0e77a05c74
commit 31cb11ce63
2 changed files with 16 additions and 15 deletions

View file

@ -408,26 +408,27 @@ class WorkspaceDialog(QObject):
@pyqtSlot() @pyqtSlot()
def showMissingMaterialsWarning(self) -> None: def showMissingMaterialsWarning(self) -> None:
result_message = Message( result_message = Message(
i18n_catalog.i18nc("@info:status", "The material used in this project relies on some material definitions not available in Cura, this might produce undesirable print results. We highly recommend installing the full material package from the Marketplace."), i18n_catalog.i18nc("@info:status",
"Some of the packages used in the project file are currently not installed in Cura, this might produce undesirable print results. We highly recommend installing the all required packages from the Marketplace."),
lifetime=0, lifetime=0,
title=i18n_catalog.i18nc("@info:title", "Material profiles not installed"), title=i18n_catalog.i18nc("@info:title", "Some required packages are not installed"),
message_type=Message.MessageType.WARNING message_type=Message.MessageType.WARNING
) )
result_message.addAction( result_message.addAction(
"learn_more", "learn_more",
name=i18n_catalog.i18nc("@action:button", "Learn more"), name=i18n_catalog.i18nc("@action:button", "Learn more"),
icon="", icon="",
description="Learn more about project materials.", description=i18n_catalog.i18nc("@label", "Learn more about project packages."),
button_align=Message.ActionButtonAlignment.ALIGN_LEFT, button_align=Message.ActionButtonAlignment.ALIGN_LEFT,
button_style=Message.ActionButtonStyle.LINK button_style=Message.ActionButtonStyle.LINK
) )
result_message.addAction( result_message.addAction(
"install_materials", "install_materials",
name=i18n_catalog.i18nc("@action:button", "Install Materials"), name=i18n_catalog.i18nc("@action:button", "Install Packages"),
icon="", icon="",
description="Install missing materials from project file.", description=i18n_catalog.i18nc("@label", "Install missing packages from project file."),
button_align=Message.ActionButtonAlignment.ALIGN_RIGHT, button_align=Message.ActionButtonAlignment.ALIGN_RIGHT,
button_style=Message.ActionButtonStyle.DEFAULT button_style=Message.ActionButtonStyle.DEFAULT
) )
result_message.actionTriggered.connect(self._onMessageActionTriggered) result_message.actionTriggered.connect(self._onMessageActionTriggered)
result_message.show() result_message.show()

View file

@ -364,7 +364,7 @@ UM.Dialog
UM.Label UM.Label
{ {
id: warningText id: warningText
text: catalog.i18nc("@label", "The material used in this project is currently not installed in Cura.<br/>Install the material profile and reopen the project.") text: catalog.i18nc("@label", "This project contains materials or plugins that are currently not installed in Cura.<br/>Install the missing packages and reopen the project.")
} }
} }