Commit a6ef37fc authored by Dirk Wilden's avatar Dirk Wilden
Browse files

translations

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6778 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 96d01063
......@@ -4,4 +4,4 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyLine)
add_definitions (-DENABLE_POLYLINE_SUPPORT)
endif ()
openflipper_plugin (DIRS PolyLine BSplineCurve widgets)
openflipper_plugin (DIRS PolyLine BSplineCurve widgets TRANSLATION_LANGUAGES de_DE)
\ No newline at end of file
......@@ -69,7 +69,7 @@
void SelectionPlugin::selectEdges( int objectId , idList _edgeList ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"selectEdges : unable to get object" );
emit log(LOGERR,tr("selectEdges : unable to get object") );
return;
}
......@@ -89,7 +89,7 @@ void SelectionPlugin::selectEdges( int objectId , idList _edgeList ) {
BSplineCurveSelection::selectEdges( PluginFunctions::splineCurve(object) , _edgeList );
#endif
else{
emit log(LOGERR,"selectEdges : Unsupported object Type" );
emit log(LOGERR,tr("selectEdges : Unsupported object Type") );
return;
}
......@@ -110,7 +110,7 @@ void SelectionPlugin::selectEdges( int objectId , idList _edgeList ) {
void SelectionPlugin::unselectEdges( int objectId , idList _edgeList ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"unselectEdges : unable to get object" );
emit log(LOGERR,tr("unselectEdges : unable to get object") );
return;
}
......@@ -130,7 +130,7 @@ void SelectionPlugin::unselectEdges( int objectId , idList _edgeList ) {
BSplineCurveSelection::unselectEdges( PluginFunctions::splineCurve(object) , _edgeList );
#endif
else{
emit log(LOGERR,"unselectEdges : Unsupported object Type" );
emit log(LOGERR,tr("unselectEdges : Unsupported object Type") );
return;
}
......@@ -152,7 +152,7 @@ void SelectionPlugin::selectAllEdges( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"selectAllVertices : unable to get object" );
emit log(LOGERR,tr("selectAllVertices : unable to get object") );
return;
}
......@@ -169,7 +169,7 @@ void SelectionPlugin::selectAllEdges( int objectId )
BSplineCurveSelection::selectAllEdges( PluginFunctions::splineCurve(object) );
#endif
else{
emit log(LOGERR,"selectAllEdges : Unsupported object Type" );
emit log(LOGERR,tr("selectAllEdges : Unsupported object Type") );
return;
}
......@@ -183,7 +183,7 @@ void SelectionPlugin::clearEdgeSelection( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"clearEdgeSelection : unable to get object" );
emit log(LOGERR,tr("clearEdgeSelection : unable to get object") );
return;
}
......@@ -200,7 +200,7 @@ void SelectionPlugin::clearEdgeSelection( int objectId )
BSplineCurveSelection::clearEdgeSelection( PluginFunctions::splineCurve(object) );
#endif
else{
emit log(LOGERR,"clearEdgeSelection : Unsupported object Type" );
emit log(LOGERR,tr("clearEdgeSelection : Unsupported object Type") );
return;
}
......@@ -214,7 +214,7 @@ void SelectionPlugin::invertEdgeSelection( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"invertEdgeSelection : unable to get object" );
emit log(LOGERR,tr("invertEdgeSelection : unable to get object") );
return;
}
......@@ -231,7 +231,7 @@ void SelectionPlugin::invertEdgeSelection( int objectId )
BSplineCurveSelection::invertEdgeSelection( PluginFunctions::splineCurve(object) );
#endif
else{
emit log(LOGERR,"invertEdgeSelection : Unsupported object Type" );
emit log(LOGERR,tr("invertEdgeSelection : Unsupported object Type") );
return;
}
......@@ -245,7 +245,7 @@ void SelectionPlugin::selectBoundaryEdges( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"selectBoundaryEdges : unable to get object" );
emit log(LOGERR,tr("selectBoundaryEdges : unable to get object") );
return;
}
......@@ -255,15 +255,15 @@ void SelectionPlugin::selectBoundaryEdges( int objectId )
MeshSelection::selectBoundaryEdges(PluginFunctions::polyMesh(object));
#ifdef ENABLE_POLYLINE_SUPPORT
else if ( object->dataType() == DATA_POLY_LINE )
emit log(LOGERR,"selectBoundaryEdges : Not implemented on PolyLines" );
emit log(LOGERR,tr("selectBoundaryEdges : Not implemented on PolyLines") );
// PolyLineSelection::selectAllEdges( PluginFunctions::polyLine(object) );
#endif
#ifdef ENABLE_BSPLINECURVE_SUPPORT
else if ( object->dataType() == DATA_BSPLINE_CURVE )
emit log(LOGERR,"selectBoundaryEdges : Not implemented on BSplineCurves" );
emit log(LOGERR,tr("selectBoundaryEdges : Not implemented on BSplineCurves") );
#endif
else{
emit log(LOGERR,"selectBoundaryEdges : Unsupported object Type" );
emit log(LOGERR,tr("selectBoundaryEdges : Unsupported object Type") );
return;
}
......@@ -277,7 +277,7 @@ idList SelectionPlugin::getEdgeSelection( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"getEdgeSelection : unable to get object" );
emit log(LOGERR,tr("getEdgeSelection : unable to get object") );
return idList(0);
}
......@@ -296,7 +296,7 @@ idList SelectionPlugin::getEdgeSelection( int objectId )
return BSplineCurveSelection::getEdgeSelection( PluginFunctions::splineCurve(object) );
#endif
else{
emit log(LOGERR,"getEdgeSelection : Unsupported object Type" );
emit log(LOGERR,tr("getEdgeSelection : Unsupported object Type") );
return idList(0);
}
......
......@@ -58,7 +58,7 @@
void SelectionPlugin::selectFaces( int objectId , idList _faceList ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"selectFaces : unable to get object" );
emit log(LOGERR,tr("selectFaces : unable to get object") );
return;
}
......@@ -70,7 +70,7 @@ void SelectionPlugin::selectFaces( int objectId , idList _faceList ) {
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::selectFaces(PluginFunctions::polyMesh(object), _faceList);
else{
emit log(LOGERR,"selectFaces : Unsupported object Type" );
emit log(LOGERR,tr("selectFaces : Unsupported object Type") );
return;
}
......@@ -91,7 +91,7 @@ void SelectionPlugin::selectFaces( int objectId , idList _faceList ) {
void SelectionPlugin::unselectFaces( int objectId , idList _faceList ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"unselectFaces : unable to get object" );
emit log(LOGERR,tr("unselectFaces : unable to get object") );
return;
}
......@@ -103,7 +103,7 @@ void SelectionPlugin::unselectFaces( int objectId , idList _faceList ) {
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::unselectFaces(PluginFunctions::polyMesh(object), _faceList);
else{
emit log(LOGERR,"unselectFaces : Unsupported object Type" );
emit log(LOGERR,tr("unselectFaces : Unsupported object Type") );
return;
}
......@@ -125,7 +125,7 @@ void SelectionPlugin::selectAllFaces( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"selectAllFaces : unable to get object" );
emit log(LOGERR,tr("selectAllFaces : unable to get object") );
return;
}
......@@ -134,7 +134,7 @@ void SelectionPlugin::selectAllFaces( int objectId )
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::selectAllFaces(PluginFunctions::polyMesh(object));
else{
emit log(LOGERR,"selectAllFaces : Unsupported object Type" );
emit log(LOGERR,tr("selectAllFaces : Unsupported object Type") );
return;
}
......@@ -148,7 +148,7 @@ void SelectionPlugin::clearFaceSelection( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"clearFaceSelection : unable to get object" );
emit log(LOGERR,tr("clearFaceSelection : unable to get object") );
return;
}
......@@ -157,7 +157,7 @@ void SelectionPlugin::clearFaceSelection( int objectId )
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::clearFaceSelection(PluginFunctions::polyMesh(object));
else{
emit log(LOGERR,"clearFaceSelection : Unsupported object Type" );
emit log(LOGERR,tr("clearFaceSelection : Unsupported object Type") );
return;
}
......@@ -171,7 +171,7 @@ void SelectionPlugin::invertFaceSelection( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"invertFaceSelection : unable to get object" );
emit log(LOGERR,tr("invertFaceSelection : unable to get object") );
return;
}
......@@ -180,7 +180,7 @@ void SelectionPlugin::invertFaceSelection( int objectId )
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::invertFaceSelection(PluginFunctions::polyMesh(object));
else{
emit log(LOGERR,"invertFaceSelection : Unsupported object Type" );
emit log(LOGERR,tr("invertFaceSelection : Unsupported object Type") );
return;
}
......@@ -194,7 +194,7 @@ void SelectionPlugin::selectBoundaryFaces( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"selectBoundaryFaces : unable to get object" );
emit log(LOGERR,tr("selectBoundaryFaces : unable to get object") );
return;
}
......@@ -203,7 +203,7 @@ void SelectionPlugin::selectBoundaryFaces( int objectId )
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::selectBoundaryFaces(PluginFunctions::polyMesh(object));
else{
emit log(LOGERR,"selectBoundaryFaces : Unsupported object Type" );
emit log(LOGERR,tr("selectBoundaryFaces : Unsupported object Type") );
return;
}
......@@ -218,7 +218,7 @@ void SelectionPlugin::shrinkFaceSelection( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"shrinkFaceSelection : unable to get object" );
emit log(LOGERR,tr("shrinkFaceSelection : unable to get object") );
return;
}
......@@ -227,7 +227,7 @@ void SelectionPlugin::shrinkFaceSelection( int objectId )
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::shrinkFaceSelection(PluginFunctions::polyMesh(object));
else{
emit log(LOGERR,"shrinkFaceSelection : Unsupported object Type" );
emit log(LOGERR,tr("shrinkFaceSelection : Unsupported object Type") );
return;
}
......@@ -241,7 +241,7 @@ void SelectionPlugin::growFaceSelection( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"growFaceSelection : unable to get object" );
emit log(LOGERR,tr("growFaceSelection : unable to get object") );
return;
}
......@@ -250,7 +250,7 @@ void SelectionPlugin::growFaceSelection( int objectId )
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::growFaceSelection(PluginFunctions::polyMesh(object));
else{
emit log(LOGERR,"growFaceSelection : Unsupported object Type" );
emit log(LOGERR,tr("growFaceSelection : Unsupported object Type") );
return;
}
......@@ -264,7 +264,7 @@ idList SelectionPlugin::getFaceSelection( int objectId )
{
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"getFaceSelection : unable to get object" );
emit log(LOGERR,tr("getFaceSelection : unable to get object") );
return idList(0);
}
......@@ -275,7 +275,7 @@ idList SelectionPlugin::getFaceSelection( int objectId )
else if ( object->dataType() == DATA_POLY_MESH )
return MeshSelection::getFaceSelection(PluginFunctions::polyMesh(object));
else{
emit log(LOGERR,"getFaceSelection : Unsupported object Type" );
emit log(LOGERR,tr("getFaceSelection : Unsupported object Type") );
return idList(0);
}
......
......@@ -57,7 +57,7 @@
void SelectionPlugin::selectHandleVertices( int objectId , idList _vertexList ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"selectHandleVertices : unable to get object" );
emit log(LOGERR,tr("selectHandleVertices : unable to get object") );
return;
}
......@@ -71,7 +71,7 @@ void SelectionPlugin::selectHandleVertices( int objectId , idList _vertexList )
MeshSelection::setArea(PluginFunctions::polyMesh(object) , _vertexList , HANDLEAREA, true);
update_regions( PluginFunctions::polyMesh(object) );
} else {
emit log(LOGERR,"selectHandleVertices : Unsupported object Type" );
emit log(LOGERR,tr("selectHandleVertices : Unsupported object Type") );
return;
}
......@@ -92,7 +92,7 @@ void SelectionPlugin::selectHandleVertices( int objectId , idList _vertexList )
void SelectionPlugin::unselectHandleVertices( int objectId , idList _vertexList ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"unselectHandleVertices : unable to get object" );
emit log(LOGERR,tr("unselectHandleVertices : unable to get object") );
return;
}
......@@ -104,7 +104,7 @@ void SelectionPlugin::unselectHandleVertices( int objectId , idList _vertexList
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::setArea(PluginFunctions::polyMesh(object) , _vertexList , HANDLEAREA, false);
else {
emit log(LOGERR,"unselectHandleVertices : Unsupported object Type" );
emit log(LOGERR,tr("unselectHandleVertices : Unsupported object Type") );
return;
}
......@@ -125,7 +125,7 @@ void SelectionPlugin::unselectHandleVertices( int objectId , idList _vertexList
void SelectionPlugin::clearHandleVertices( int objectId ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"clearHandleVertices : unable to get object" );
emit log(LOGERR,tr("clearHandleVertices : unable to get object") );
return;
}
......@@ -134,7 +134,7 @@ void SelectionPlugin::clearHandleVertices( int objectId ) {
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::setArea(PluginFunctions::polyMesh(object) , HANDLEAREA, false);
else {
emit log(LOGERR,"clearHandleVertices : Unsupported object Type" );
emit log(LOGERR,tr("clearHandleVertices : Unsupported object Type") );
return;
}
......@@ -147,7 +147,7 @@ void SelectionPlugin::clearHandleVertices( int objectId ) {
void SelectionPlugin::setAllHandleVertices( int objectId ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"setAllHandleVertices : unable to get object" );
emit log(LOGERR,tr("setAllHandleVertices : unable to get object") );
return;
}
......@@ -156,7 +156,7 @@ void SelectionPlugin::setAllHandleVertices( int objectId ) {
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::setArea(PluginFunctions::polyMesh(object) , HANDLEAREA, true);
else {
emit log(LOGERR,"setAllHandleVertices : Unsupported object Type" );
emit log(LOGERR,tr("setAllHandleVertices : Unsupported object Type") );
return;
}
......@@ -169,7 +169,7 @@ void SelectionPlugin::setAllHandleVertices( int objectId ) {
idList SelectionPlugin::getHandleVertices( int objectId ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"getHandleVertices : unable to get object" );
emit log(LOGERR,tr("getHandleVertices : unable to get object") );
return idList(0);
}
......@@ -180,7 +180,7 @@ idList SelectionPlugin::getHandleVertices( int objectId ) {
else if ( object->dataType() == DATA_POLY_MESH )
return MeshSelection::getArea(PluginFunctions::polyMesh(object) , HANDLEAREA);
else {
emit log(LOGERR,"getHandleVertices : Unsupported object Type" );
emit log(LOGERR,tr("getHandleVertices : Unsupported object Type") );
return idList(0);;
}
......
......@@ -57,7 +57,7 @@
void SelectionPlugin::selectModelingVertices( int objectId , idList _vertexList ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"selectModelingVertices : unable to get object" );
emit log(LOGERR,tr("selectModelingVertices : unable to get object") );
return;
}
......@@ -71,7 +71,7 @@ void SelectionPlugin::selectModelingVertices( int objectId , idList _vertexList
MeshSelection::setArea(PluginFunctions::polyMesh(object) , _vertexList , AREA, true);
update_regions( PluginFunctions::polyMesh(object) );
} else {
emit log(LOGERR,"selectModelingVertices : Unsupported object Type" );
emit log(LOGERR,tr("selectModelingVertices : Unsupported object Type") );
return;
}
......@@ -92,7 +92,7 @@ void SelectionPlugin::selectModelingVertices( int objectId , idList _vertexList
void SelectionPlugin::unselectModelingVertices( int objectId , idList _vertexList ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"unselectModelingVertices : unable to get object" );
emit log(LOGERR,tr("unselectModelingVertices : unable to get object") );
return;
}
......@@ -104,7 +104,7 @@ void SelectionPlugin::unselectModelingVertices( int objectId , idList _vertexLis
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::setArea(PluginFunctions::polyMesh(object) , _vertexList , AREA, false);
else{
emit log(LOGERR,"unselectModelingVertices : Unsupported object Type" );
emit log(LOGERR,tr("unselectModelingVertices : Unsupported object Type") );
return;
}
......@@ -125,7 +125,7 @@ void SelectionPlugin::unselectModelingVertices( int objectId , idList _vertexLis
void SelectionPlugin::clearModelingVertices( int objectId ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"clearModelingVertices : unable to get object" );
emit log(LOGERR,tr("clearModelingVertices : unable to get object") );
return;
}
......@@ -134,7 +134,7 @@ void SelectionPlugin::clearModelingVertices( int objectId ) {
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::setArea(PluginFunctions::polyMesh(object) , AREA, false);
else{
emit log(LOGERR,"clearModelingVertices : Unsupported object Type" );
emit log(LOGERR,tr("clearModelingVertices : Unsupported object Type") );
return;
}
......@@ -147,7 +147,7 @@ void SelectionPlugin::clearModelingVertices( int objectId ) {
void SelectionPlugin::setAllModelingVertices( int objectId ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"setAllModelingVertices : unable to get object" );
emit log(LOGERR,tr("setAllModelingVertices : unable to get object") );
return;
}
......@@ -156,7 +156,7 @@ void SelectionPlugin::setAllModelingVertices( int objectId ) {
else if ( object->dataType() == DATA_POLY_MESH )
MeshSelection::setArea(PluginFunctions::polyMesh(object) , AREA, true);
else{
emit log(LOGERR,"setAllModelingVertices : Unsupported object Type" );
emit log(LOGERR,tr("setAllModelingVertices : Unsupported object Type") );
return;
}
......@@ -168,7 +168,7 @@ void SelectionPlugin::setAllModelingVertices( int objectId ) {
idList SelectionPlugin::getModelingVertices( int objectId ) {
BaseObjectData* object;
if ( ! PluginFunctions::getObject(objectId,object) ) {
emit log(LOGERR,"getModelingVertices : unable to get object" );
emit log(LOGERR,tr("getModelingVertices : unable to get object") );
return idList(0);
}
......@@ -179,7 +179,7 @@ idList SelectionPlugin::getModelingVertices( int objectId ) {
else if ( object->dataType() == DATA_POLY_MESH )
return MeshSelection::getArea(PluginFunctions::polyMesh(object) , AREA);
else{
emit log(LOGERR,"getModelingVertices : Unsupported object Type" );
emit log(LOGERR,tr("getModelingVertices : Unsupported object Type") );
return idList(0);
}
......@@ -192,7 +192,7 @@ void SelectionPlugin::loadFlipperModelingSelection( int _objectId , QString _fil
QFile file(_filename);
if ( ! file.exists() ) {
emit log(LOGERR,"Unable to find file : " + _filename );
emit log(LOGERR,tr("Unable to find file : ") + _filename );
return;
}
......@@ -202,7 +202,7 @@ void SelectionPlugin::loadFlipperModelingSelection( int _objectId , QString _fil
QString header = input.readLine();
if ( !header.contains("Selection") ) {
emit log(LOGERR,"Wrong file header! should be Selection but is " + header );
emit log(LOGERR,tr("Wrong file header! should be Selection but is ") + header );
return;
}
......@@ -213,14 +213,14 @@ void SelectionPlugin::loadFlipperModelingSelection( int _objectId , QString _fil
uint vertexCount = header.toUInt(&ok);
if ( !ok ) {
emit log(LOGERR,"Unable to parse header. Cant get vertex count from string : " + header );
emit log(LOGERR,tr("Unable to parse header. Cant get vertex count from string : ") + header );
return;
}
//compare VertexCount
BaseObjectData* object;
if ( ! PluginFunctions::getObject(_objectId, object) ) {
emit log(LOGERR,"loadSelection : unable to get object" );
emit log(LOGERR,tr("loadSelection : unable to get object") );
return;
}
......@@ -245,7 +245,7 @@ void SelectionPlugin::loadFlipperModelingSelection( int _objectId , QString _fil
QStringList inputList = input.readLine().split(" ");
if ( inputList.size() != 2 ) {
emit log(LOGERR,"Unable to parse entry at vertex index " + QString::number( vertexId ) );
emit log(LOGERR,tr("Unable to parse entry at vertex index ") + QString::number( vertexId ) );
return;
}
......@@ -266,7 +266,7 @@ void SelectionPlugin::loadFlipperModelingSelection( int _objectId , QString _fil
selectHandleVertices(_objectId,handleVertices);
} else
emit log(LOGERR,"Unable to open selection file!");
emit log(LOGERR,tr("Unable to open selection file!"));
}
//=========================================================
......@@ -280,7 +280,7 @@ void SelectionPlugin::saveFlipperModelingSelection( int _objectId , QString _fil
//get the object
BaseObjectData* object;
if ( ! PluginFunctions::getObject(_objectId,object) ) {
emit log(LOGERR,"saveFlipperModelingSelection : unable to get object" );
emit log(LOGERR,tr("saveFlipperModelingSelection : unable to get object") );
return;
}
......@@ -330,10 +330,10 @@ void SelectionPlugin::saveFlipperModelingSelection( int _objectId , QString _fil
input << (int) modelingAll[i] << " " << (int) handleAll[i] << endl;
} else {
emit log(LOGERR, "saveFlipperModelingSelection : Unsupported Type.");
emit log(LOGERR, tr("saveFlipperModelingSelection : Unsupported Type."));
}
} else
emit log(LOGERR,"Unable to open selection file!");
emit log(LOGERR,tr("Unable to open selection file!"));
}
......@@ -58,17 +58,17 @@ void SelectionPlugin::selectionContextMenu(QAction* _action) {
if ( ! PluginFunctions::getObject(objectId,object) )
return;
if ( _action->text() == "All")
if ( _action->text() == tr("All"))
selectAll( objectId );
else if ( _action->text() == "Clear")
else if ( _action->text() == tr("Clear"))
clearSelection( objectId );
else if ( _action->text() == "Invert")
else if ( _action->text() == tr("Invert"))
invertSelection( objectId );
else if ( _action->text() == "Shrink")
else if ( _action->text() == tr("Shrink"))
shrinkSelection( objectId );
else if ( _action->text() == "Grow")
else if ( _action->text() == tr("Grow"))
growSelection( objectId );
else if ( _action->text() == "Boundary")
else if ( _action->text() == tr("Boundary"))
selectBoundary( objectId );
emit updatedObject(objectId);
......
......@@ -119,7 +119,7 @@ void SelectionPlugin::toggleSelection(QMouseEvent* _event)
}
#endif
else{
emit log(LOGERR,"toggleSelection : Unsupported dataType");
emit log(LOGERR,tr("toggleSelection : Unsupported dataType"));
}
}
}
......@@ -146,7 +146,7 @@ void SelectionPlugin::paintSphereSelection(QMouseEvent* _event) {
if ( sphere_selection_ ) {
sphere_selection_ = false;
for ( uint i = 0 ; i < selection_changes_.size() ; ++ i ) {
emit createBackup(selection_changes_[i],"Sphere Paint Selection");
emit createBackup(selection_changes_[i],tr("Sphere Paint Selection"));
}
selection_changes_.clear();
}
......@@ -286,7 +286,7 @@ void SelectionPlugin::componentSelection(QMouseEvent* _event) {
}
object->update();
emit createBackup(object->id(),"Component Selection");
emit createBackup(object->id(),tr("Component Selection"));
}
}
......@@ -359,7 +359,7 @@ void SelectionPlugin::surfaceLassoSelection(QMouseEvent* _event){
PluginFunctions::actionMode( Viewer::ExamineMode );
} else if ( object->dataType(DATA_POLY_MESH) ) {
emit log(LOGERR,"PolyLine on quad meshes not fully supported!! ");
emit log(LOGERR,tr("PolyLine on quad meshes not fully supported!! "));
polyLineID_ = -1;
//switch back to PolyLine drawing
......
......@@ -403,9 +403,9 @@ void SelectionPlugin::closestBoundarySelection( MeshT* _mesh, int _vh, unsigned
}else
emit log(LOGERR, "Unable to find boundary.");
emit log(LOGERR, tr("Unable to find boundary."));
}else
emit log(LOGERR, "Invalid vertex handle.");
emit log(LOGERR, tr("Invalid vertex handle."));
}
//***********************************************************************************
......
......@@ -86,7 +86,7 @@ void SelectionPlugin::initializePlugin() {
return;