
from . import SimpleView

from UM.i18n import i18nCatalog
i18n_catalog = i18nCatalog("uranium")

def getMetaData():
    return {
        "plugin": {
            "name": i18n_catalog.i18nc("@label", "Simple View"),
            "author": "Ultimaker",
            "version": "1.0",
            "decription": i18n_catalog.i18nc("@info:whatsthis", "Provides a simple solid mesh view."),
            "api": 2
        },
        "view": {
            "name": i18n_catalog.i18nc("@item:inmenu", "Simple"),
            "visible": False
        }
    }

def register(app):
    return { "view": SimpleView.SimpleView() }



from . import SimpleView

from UM.i18n import i18nCatalog
i18n_catalog = i18nCatalog("uranium")

def getMetaData():
    return {
        "type": "view",
        "plugin": {
            "name": i18n_catalog.i18nc("@label", "Simple View"),
            "author": "Ultimaker",
            "version": "1.0",
            "description": i18n_catalog.i18nc("@info:whatsthis", "Provides a simple solid mesh view."),
            "api": 2
        },
        "view": {
            "name": i18n_catalog.i18nc("@item:inmenu", "Simple"),
            "visible": False
        }
    }

def register(app):
    return { "view": SimpleView.SimpleView() }


Fix plug-in type and description key
Fix plug-in type and description key

't Was a typo.

Contributes to issue CURA-1190.

  
  from . import SimpleView
  
  from UM.i18n import i18nCatalog
  i18n_catalog = i18nCatalog("uranium")
  
  def getMetaData():
      return {
+         "type": "view",
          "plugin": {
              "name": i18n_catalog.i18nc("@label", "Simple View"),
              "author": "Ultimaker",
              "version": "1.0",
-             "decription": i18n_catalog.i18nc("@info:whatsthis", "Provides a simple solid mesh view."),
+             "description": i18n_catalog.i18nc("@info:whatsthis", "Provides a simple solid mesh view."),
              "api": 2
          },
          "view": {
              "name": i18n_catalog.i18nc("@item:inmenu", "Simple"),
              "visible": False
          }
      }
  
  def register(app):
      return { "view": SimpleView.SimpleView() }
  
  
Fix plug-in type and description key
## Code Before:

from . import SimpleView

from UM.i18n import i18nCatalog
i18n_catalog = i18nCatalog("uranium")

def getMetaData():
    return {
        "plugin": {
            "name": i18n_catalog.i18nc("@label", "Simple View"),
            "author": "Ultimaker",
            "version": "1.0",
            "decription": i18n_catalog.i18nc("@info:whatsthis", "Provides a simple solid mesh view."),
            "api": 2
        },
        "view": {
            "name": i18n_catalog.i18nc("@item:inmenu", "Simple"),
            "visible": False
        }
    }

def register(app):
    return { "view": SimpleView.SimpleView() }


## Instruction:
Fix plug-in type and description key
## Code After:

from . import SimpleView

from UM.i18n import i18nCatalog
i18n_catalog = i18nCatalog("uranium")

def getMetaData():
    return {
        "type": "view",
        "plugin": {
            "name": i18n_catalog.i18nc("@label", "Simple View"),
            "author": "Ultimaker",
            "version": "1.0",
            "description": i18n_catalog.i18nc("@info:whatsthis", "Provides a simple solid mesh view."),
            "api": 2
        },
        "view": {
            "name": i18n_catalog.i18nc("@item:inmenu", "Simple"),
            "visible": False
        }
    }

def register(app):
    return { "view": SimpleView.SimpleView() }

