Mesh: Apply the translation function appropriately
This commit is contained in:
@@ -20,13 +20,14 @@
|
||||
#* *
|
||||
#**************************************************************************/
|
||||
|
||||
|
||||
import Mesh
|
||||
import FreeCAD as App
|
||||
import FreeCADGui as Gui
|
||||
import Part
|
||||
import MeshPartGui
|
||||
|
||||
from PySide.QtCore import QT_TRANSLATE_NOOP # for translations
|
||||
|
||||
class BaseCommand(object):
|
||||
def __init__(self):
|
||||
pass
|
||||
@@ -43,8 +44,8 @@ class CreateFlatMesh(BaseCommand):
|
||||
|
||||
def GetResources(self):
|
||||
return {'Pixmap': 'MeshPart_CreateFlatMesh.svg',
|
||||
'MenuText': 'Unwrap Mesh',
|
||||
'ToolTip': 'find a flat representation of a mesh'}
|
||||
'MenuText': QT_TRANSLATE_NOOP("MeshPart_FlatteningCommand", "Unwrap Mesh"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("MeshPart_FlatteningCommand", "Find a flat representation of a mesh.")}
|
||||
|
||||
def Activated(self):
|
||||
import numpy as np
|
||||
@@ -75,8 +76,8 @@ class CreateFlatFace(BaseCommand):
|
||||
|
||||
def GetResources(self):
|
||||
return {'Pixmap': 'MeshPart_CreateFlatFace.svg',
|
||||
'MenuText': 'Unwrap Face',
|
||||
'ToolTip': 'find a flat representation of a mesh'}
|
||||
'MenuText': QT_TRANSLATE_NOOP("MeshPart_FlatteningCommand", "Unwrap Face"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("MeshPart_FlatteningCommand", "Find a flat representation of a mesh.")}
|
||||
|
||||
def Activated(self):
|
||||
import numpy as np
|
||||
|
||||
Reference in New Issue
Block a user