Remove translation for Unknown printer type

CURA-6449
This commit is contained in:
Lipu Fei 2019-04-12 12:23:22 +02:00
parent 588dd6cd78
commit 26205fbdce

View file

@ -61,12 +61,12 @@ class DiscoveredPrinter(QObject):
from cura.CuraApplication import CuraApplication from cura.CuraApplication import CuraApplication
readable_type = CuraApplication.getInstance().getMachineManager().getMachineTypeNameFromId(self._machine_type) readable_type = CuraApplication.getInstance().getMachineManager().getMachineTypeNameFromId(self._machine_type)
if not readable_type: if not readable_type:
readable_type = catalog.i18nc("@label", "Unknown") readable_type = "unknown"
return readable_type return readable_type
@pyqtProperty(bool, notify = machineTypeChanged) @pyqtProperty(bool, notify = machineTypeChanged)
def isUnknownMachineType(self) -> bool: def isUnknownMachineType(self) -> bool:
return self.readableMachineType == catalog.i18nc("@label", "Unknown") return self.readableMachineType == "unknown"
@pyqtProperty(QObject, constant = True) @pyqtProperty(QObject, constant = True)
def device(self) -> "NetworkedPrinterOutputDevice": def device(self) -> "NetworkedPrinterOutputDevice":