Machine action labels are now translatable

CURA-1385
This commit is contained in:
Jaime van Kessel 2016-07-04 10:26:59 +02:00
parent b7906c9ce7
commit 41147b5128
3 changed files with 14 additions and 5 deletions

View file

@ -1,14 +1,16 @@
from cura.MachineAction import MachineAction
from cura.PrinterOutputDevice import PrinterOutputDevice
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtCore import pyqtSlot
from UM.Application import Application
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")
from cura.PrinterOutputDevice import PrinterOutputDevice
class BedLevelMachineAction(MachineAction):
def __init__(self):
super().__init__("BedLevel", "Level bed")
super().__init__("BedLevel", catalog.i18nc("@action", "Level bed"))
self._qml_url = "BedLevelMachineAction.qml"
self._bed_level_position = 0