mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-08 02:41:49 +08:00
Make machine action button translatable
CURA-336
This commit is contained in:
parent
b48f4ff8a2
commit
8deb0dc274
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user