mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:25:56 +08:00
Use the right catalog for the Cura plugins
This commit is contained in:
parent
f82ed32ef0
commit
1646007e9c
@ -1,14 +1,19 @@
|
|||||||
#Shoopdawoop
|
#Shoopdawoop
|
||||||
from . import CuraEngineBackend
|
from . import CuraEngineBackend
|
||||||
|
|
||||||
|
from UM.i18n import i18nCatalog
|
||||||
|
catalog = i18nCatalog('cura')
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
return {
|
return {
|
||||||
'type': 'backend',
|
'type': 'backend',
|
||||||
'plugin': {
|
'plugin': {
|
||||||
'name': "CuraEngine Backend"
|
'name': "CuraEngine Backend",
|
||||||
|
'author': 'Arjen Hiemstra',
|
||||||
|
'description': catalog.i18nc('CuraEngine backend plugin description', 'Provides the link to the CuraEngine slicing backend')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def register(app):
|
def register(app):
|
||||||
return {"backend":CuraEngineBackend.CuraEngineBackend()}
|
return { "backend": CuraEngineBackend.CuraEngineBackend() }
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ from . import GCodeWriter
|
|||||||
|
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
|
|
||||||
catalog = i18nCatalog('plugins')
|
catalog = i18nCatalog('cura')
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
return {
|
return {
|
||||||
@ -21,4 +21,4 @@ def getMetaData():
|
|||||||
}
|
}
|
||||||
|
|
||||||
def register(app):
|
def register(app):
|
||||||
return {"mesh_writer":GCodeWriter.GCodeWriter()}
|
return { "mesh_writer": GCodeWriter.GCodeWriter() }
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
from . import LayerView
|
from . import LayerView
|
||||||
|
|
||||||
|
from UM.i18n import i18nCatalog
|
||||||
|
catalog = i18nCatalog('cura')
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
return {
|
return {
|
||||||
@ -8,11 +10,11 @@ def getMetaData():
|
|||||||
"name": "Layer View"
|
"name": "Layer View"
|
||||||
},
|
},
|
||||||
'view': {
|
'view': {
|
||||||
'name': 'Layers',
|
'name': catalog.i18nc('Layers View mode', 'Layers'),
|
||||||
'view_panel': 'LayerView.qml'
|
'view_panel': 'LayerView.qml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def register(app):
|
def register(app):
|
||||||
return {"view":LayerView.LayerView()}
|
return { "view": LayerView.LayerView() }
|
||||||
|
@ -2,7 +2,7 @@ from . import USBPrinterManager
|
|||||||
|
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
|
|
||||||
i18n_catalog = i18nCatalog('plugins')
|
i18n_catalog = i18nCatalog('cura')
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user