Commit f8709917 authored by barraud's avatar barraud
Browse files

FEATURE 615 translate in french the .ts files.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1938 ec899d31-69d1-42ba-9299-647d76f65fb3
parent b401aa2a
......@@ -35,12 +35,12 @@ ShowArbitrarySliceIn3D::ShowArbitrarySliceIn3D(ActionExtension * extension) : Ac
// Setting name, description and input component
setName("Show Arbitrary Slice In 3D");
setEmbedded(false);
setDescription("Toggle display of the arbitrary slice(s) in 3D");
setDescription(tr("Toggle display of the arbitrary slice(s) in 3D"));
setComponent("ImageComponent");
// Setting classification family and tags
setFamily("Display");
addTag("3D Viewer");
addTag(tr("3D Viewer"));
}
......
......@@ -119,26 +119,26 @@ void ImageComponent::init() {
lut = vtkSmartPointer<vtkWindowLevelLookupTable>::New();
// Properties
Property * nameProp = new Property("Image Name", QVariant("None"), "Name of the image displaied in the explorer", "");
Property * nameProp = new Property("Image Name", QVariant("None"), tr("Name of the image displaied in the explorer"), "");
addProperty(nameProp);
Property * imageDims = new Property("Image Dimensions", QVariant("(0, 0, 0)"), "Dimensions of the image in each direction (x,y,z)", "voxel number");
Property * imageDims = new Property("Image Dimensions", QVariant("(0, 0, 0)"), tr("Dimensions of the image in each direction (x,y,z)"), "voxel number");
imageDims->setReadOnly(true);
addProperty(imageDims);
Property * imageSize = new Property("Image Size", QVariant("(0.0, 0.0, 0.0)"), "Size of the image in each direction (x, y, z)", "mm<sup>3</sup>");
Property * imageSize = new Property("Image Size", QVariant("(0.0, 0.0, 0.0)"), tr("Size of the image in each direction (x, y, z)"), "mm<sup>3</sup>");
imageSize->setReadOnly(true);
addProperty(imageSize);
Property * voxelSize = new Property("Voxel Size", QVariant("(0.0, 0.0, 0.0)"), "Size of an image voxel in each direction (x, y, z)", "mm <sup>3</sup>");
Property * voxelSize = new Property("Voxel Size", QVariant("(0.0, 0.0, 0.0)"), tr("Size of an image voxel in each direction (x, y, z)"), "mm <sup>3</sup>");
voxelSize->setReadOnly(true);
addProperty(voxelSize);
Property * voxelDataType = new Property("Voxel Data Type", QVariant("None"), "Type of the data stored in each voxel", "data type");
Property * voxelDataType = new Property("Voxel Data Type", QVariant("None"), tr("Type of the data stored in each voxel"), "data type");
voxelDataType->setReadOnly(true);
addProperty(voxelDataType);
addProperty(new Property("Display Image in 3D Viewer", QVariant(viewIn3D), "Displays or not the image slices in the 3D viewer", ""));
addProperty(new Property("Display Image in 3D Viewer", QVariant(viewIn3D), tr("Displays or not the image slices in the 3D viewer"), ""));
// Picking properties
selectionView = new QTableView();
......
......@@ -212,58 +212,58 @@ void MeshComponent::initDynamicProperties() {
Property *cellProp;
switch ( elementsMapIt->first ) {
case VTK_EMPTY_CELL:
cellProp = new Property ( "Empty Cells", elementsMapIt->second, "Number Of Empty Cells", "" );
cellProp = new Property ( "Empty Cells", elementsMapIt->second, tr("Number Of Empty Cells"), "" );
break;
case VTK_VERTEX:
cellProp = new Property ( "Vertex", elementsMapIt->second, "Number Of Vertex Cells", "" );
cellProp = new Property ( "Vertex", elementsMapIt->second, tr("Number Of Vertex Cells"), "" );
break;
case VTK_POLY_VERTEX:
cellProp = new Property ( "Edges", elementsMapIt->second, "Number Of Edge Cells", "" );
cellProp = new Property ( "Edges", elementsMapIt->second, tr("Number Of Edge Cells"), "" );
break;
case VTK_LINE :
cellProp = new Property ( "Lines", elementsMapIt->second, "Number Of Line Cells", "" );
cellProp = new Property ( "Lines", elementsMapIt->second, tr("Number Of Line Cells"), "" );
break;
case VTK_POLY_LINE:
cellProp = new Property ( "Polylines", elementsMapIt->second, "Number Of Polylines Cells", "" );
cellProp = new Property ( "Polylines", elementsMapIt->second, tr("Number Of Polylines Cells"), "" );
break;
case VTK_TRIANGLE :
cellProp = new Property ( "Triangles", elementsMapIt->second, "Number Of Triangle Cells", "" );
cellProp = new Property ( "Triangles", elementsMapIt->second, tr("Number Of Triangle Cells"), "" );
break;
case VTK_TRIANGLE_STRIP:
cellProp = new Property ( "Triangle Strips", elementsMapIt->second, "Number Of Triangle Strip Cells", "" );
cellProp = new Property ( "Triangle Strips", elementsMapIt->second, tr("Number Of Triangle Strip Cells"), "" );
break;
case VTK_POLYGON:
cellProp = new Property ( "Polygons", elementsMapIt->second, "Number Of Polygon Cells", "" );
cellProp = new Property ( "Polygons", elementsMapIt->second, tr("Number Of Polygon Cells"), "" );
break;
case VTK_PIXEL:
cellProp = new Property ( "Pixels", elementsMapIt->second, "Number Of Pixel Cells", "" );
cellProp = new Property ( "Pixels", elementsMapIt->second, tr("Number Of Pixel Cells"), "" );
break;
case VTK_QUAD:
cellProp = new Property ( "Quads", elementsMapIt->second, "Number Of Quad Cells", "" );
cellProp = new Property ( "Quads", elementsMapIt->second, tr("Number Of Quad Cells"), "" );
break;
case VTK_TETRA :
cellProp = new Property ( "Tetrahedra", elementsMapIt->second, "Number Of Tetrahedral Cells", "" );
cellProp = new Property ( "Tetrahedra", elementsMapIt->second, tr("Number Of Tetrahedral Cells"), "" );
break;
case VTK_VOXEL:
cellProp = new Property ( "Voxels", elementsMapIt->second, "Number Of Voxel Cells", "" );
cellProp = new Property ( "Voxels", elementsMapIt->second, tr("Number Of Voxel Cells"), "" );
break;
case VTK_HEXAHEDRON :
cellProp = new Property ( "Hexahedra", elementsMapIt->second, "Number Of Hexahedral Cells", "" );
cellProp = new Property ( "Hexahedra", elementsMapIt->second, tr("Number Of Hexahedral Cells"), "" );
break;
case VTK_WEDGE :
cellProp = new Property ( "Wedges", elementsMapIt->second, "Number Of Wedge Cells", "" );
cellProp = new Property ( "Wedges", elementsMapIt->second, tr("Number Of Wedge Cells"), "" );
break;
case VTK_PYRAMID :
cellProp = new Property ( "Pyramids", elementsMapIt->second, "Number Of Pyramid Cells", "" );
cellProp = new Property ( "Pyramids", elementsMapIt->second, tr("Number Of Pyramid Cells"), "" );
break;
case VTK_PENTAGONAL_PRISM:
cellProp = new Property ( "Pentagonal Prisms", elementsMapIt->second, "Number Of Pentagonal Prism Cells", "" );
cellProp = new Property ( "Pentagonal Prisms", elementsMapIt->second, tr("Number Of Pentagonal Prism Cells"), "" );
break;
case VTK_HEXAGONAL_PRISM:
cellProp = new Property ( "Hexagonal Prisms", elementsMapIt->second, "Number Of Hexagonal Prism Cells", "" );
cellProp = new Property ( "Hexagonal Prisms", elementsMapIt->second, tr("Number Of Hexagonal Prism Cells"), "" );
break;
default :
cellProp = new Property ( "Others", elementsMapIt->second, "Number Of <i>Other Type Of Cells</i>. <br/>It can be quadratic isoparametric cells, Cubic isoparametric cells, <br/>convex group of points, higher order cells in parametric form, <br/>higher order cells (see VTKCellType enum for more information)", "" );
cellProp = new Property ( "Others", elementsMapIt->second, tr("Number Of <i>Other Type Of Cells</i>. <br/>It can be quadratic isoparametric cells, Cubic isoparametric cells, <br/>convex group of points, higher order cells in parametric form, <br/>higher order cells (see VTKCellType enum for more information)"), "" );
break;
}
cellProp->setReadOnly ( true );
......@@ -274,7 +274,7 @@ void MeshComponent::initDynamicProperties() {
unsigned long memUsage = 0;
if ( getPointSet() !=NULL )
memUsage = getPointSet()->GetActualMemorySize();
Property *memoryUsage = new Property ( "Size In Memory", QVariant ( QString ( "%1" ).arg ( memUsage ) ), "Actual size of the data in kilobytes. <br/>This number is valid only after the pipeline has updated. <br/>The memory size returned is guaranteed to be greater than or <br/>equal to the memory required to represent the data<br/> (e.g., extra space in arrays, etc. are not included in the return value).", "Kb" );
Property *memoryUsage = new Property ( "Size In Memory", QVariant ( QString ( "%1" ).arg ( memUsage ) ), tr("Actual size of the data in kilobytes. <br/>This number is valid only after the pipeline has updated. <br/>The memory size returned is guaranteed to be greater than or <br/>equal to the memory required to represent the data<br/> (e.g., extra space in arrays, etc. are not included in the return value)."), "Kb" );
memoryUsage->setReadOnly ( true );
addProperty ( memoryUsage );
}
......
......@@ -45,7 +45,7 @@ QString MeshComponentExtension::getName() const {
// --------------- getDescription -------------------
QString MeshComponentExtension::getDescription() const {
return "Interface all mesh manager plugins";
return tr("Interface all mesh manager plugins");
}
......
......@@ -377,7 +377,7 @@ void Explorer::renameItem() {
}
} else
QMessageBox::information(explorerTree, "Rename", "Please select an element in the explirer! \n");
QMessageBox::information(explorerTree, "Rename", tr("Please select an element in the explirer! \n"));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment