Use the right catalog for the Cura plugins

This commit is contained in:
Arjen Hiemstra 2015-05-01 15:56:44 +02:00
parent f82ed32ef0
commit 1646007e9c
4 changed files with 14 additions and 7 deletions

View file

@ -1,11 +1,16 @@
#Shoopdawoop
from . import CuraEngineBackend
from UM.i18n import i18nCatalog
catalog = i18nCatalog('cura')
def getMetaData():
return {
'type': 'backend',
'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')
}
}

View file

@ -2,7 +2,7 @@ from . import GCodeWriter
from UM.i18n import i18nCatalog
catalog = i18nCatalog('plugins')
catalog = i18nCatalog('cura')
def getMetaData():
return {

View file

@ -1,5 +1,7 @@
from . import LayerView
from UM.i18n import i18nCatalog
catalog = i18nCatalog('cura')
def getMetaData():
return {
@ -8,7 +10,7 @@ def getMetaData():
"name": "Layer View"
},
'view': {
'name': 'Layers',
'name': catalog.i18nc('Layers View mode', 'Layers'),
'view_panel': 'LayerView.qml'
}
}

View file

@ -2,7 +2,7 @@ from . import USBPrinterManager
from UM.i18n import i18nCatalog
i18n_catalog = i18nCatalog('plugins')
i18n_catalog = i18nCatalog('cura')
def getMetaData():
return {