mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 06:09:38 +08:00
Add proper translation contexts to RemovableDriveOutputDevice
This commit is contained in:
parent
2bd7b5764d
commit
85a13b7ad7
@ -17,8 +17,8 @@ class RemovableDriveOutputDevice(OutputDevice):
|
|||||||
super().__init__(device_id)
|
super().__init__(device_id)
|
||||||
|
|
||||||
self.setName(device_name)
|
self.setName(device_name)
|
||||||
self.setShortDescription(catalog.i18nc("", "Save to Removable Drive"))
|
self.setShortDescription(catalog.i18nc("@action:button", "Save to Removable Drive"))
|
||||||
self.setDescription(catalog.i18nc("", "Save to Removable Drive {0}").format(device_name))
|
self.setDescription(catalog.i18nc("@info:tooltip", "Save to Removable Drive {0}").format(device_name))
|
||||||
self.setIconName("save_sd")
|
self.setIconName("save_sd")
|
||||||
self.setPriority(1)
|
self.setPriority(1)
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ class RemovableDriveOutputDevice(OutputDevice):
|
|||||||
job.progress.connect(self._onProgress)
|
job.progress.connect(self._onProgress)
|
||||||
job.finished.connect(self._onFinished)
|
job.finished.connect(self._onFinished)
|
||||||
|
|
||||||
message = Message(catalog.i18nc("", "Saving to Removable Drive {0}").format(self.getName()), 0, False, -1)
|
message = Message(catalog.i18nc("@info:status", "Saving to Removable Drive <filename>{0}</filename>").format(self.getName()), 0, False, -1)
|
||||||
message.show()
|
message.show()
|
||||||
|
|
||||||
job._message = message
|
job._message = message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user