Make machine action button translatable

CURA-336
This commit is contained in:
fieldOfView 2016-06-27 14:40:07 +02:00
parent b48f4ff8a2
commit 8deb0dc274

View File

@ -4,9 +4,12 @@ from UM.Application import Application
from PyQt5.QtCore import pyqtSignal, pyqtProperty, pyqtSlot from PyQt5.QtCore import pyqtSignal, pyqtProperty, pyqtSlot
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")
class DiscoverUM3Action(MachineAction): class DiscoverUM3Action(MachineAction):
def __init__(self): def __init__(self):
super().__init__("DiscoverUM3Action", "Discover printers") super().__init__("DiscoverUM3Action", catalog.i18nc("@action","Connect via Network"))
self._qml_url = "DiscoverUM3Action.qml" self._qml_url = "DiscoverUM3Action.qml"
self._network_plugin = None self._network_plugin = None