Commit 40ddcb8e 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@1929 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 7cba44f4
......@@ -40,13 +40,13 @@ using namespace camitk;
CleanPolyData::CleanPolyData(ActionExtension* extension) : Action(extension) {
// Setting name, description and input component
setName("Clean Mesh");
setDescription("Merge duplicate points, and/or remove unused points and/or remove degenerate cells.");
setDescription(tr("Merge duplicate points, and/or remove unused points and/or remove degenerate cells."));
setComponent("MeshComponent");
// Setting classification family and tags
setFamily("Mesh Processing");
addTag("vtkCleanPolyData");
addTag("Clean vtkPolyData");
addTag(tr("vtkCleanPolyData"));
addTag(tr("Clean vtkPolyData"));
Property *tolerance = new Property("Tolerance", QVariant(1.0), "Tolerance is given as a percentage of the bounding box<br/>E.g. for a Tolerance value of <tt>1.0</tt>, if points are closer than <i>1.0%</i> of the bounding box dimensions, then they are merged.", "%");
tolerance->setAttribute("minimum", QVariant(0.0));
......
......@@ -14,15 +14,15 @@ using namespace camitk;
ComputeCurvatures::ComputeCurvatures ( camitk::ActionExtension* ext ) : Action ( ext ) {
this->setName ( "Compute Curvatures" );
this->setDescription ( QString ( "Computes curvatures of a surface.<br/>" ));
this->setDescription (QString ( tr("Computes curvatures of a surface.<br/>" )));
this->setComponent ( "MeshComponent" );
this->setFamily ( "Mesh Processing" );
this->addTag ( "curvatures" );
this->addTag ( tr("curvatures" ));
Property* curvatureTypeProperty = new Property(tr("Curvature type"), GAUSSIAN, tr("The type of curvature to compute on the surfacic mesh."), "");
curvatureTypeProperty->setEnumTypeName("CurvatureType");
QStringList curvatureTypeNames;
curvatureTypeNames << "Gaussian" << "Mean" << "Maximum" << "Minimum";
curvatureTypeNames << tr("Gaussian") << tr("Mean") << tr("Maximum") << tr("Minimum");
curvatureTypeProperty->setAttribute("enumNames", curvatureTypeNames);
addParameter(curvatureTypeProperty);
}
......@@ -34,7 +34,7 @@ ComputeCurvatures::~ComputeCurvatures() {
Action::ApplyStatus ComputeCurvatures::apply() {
// set waiting cursor and status bar
QApplication::setOverrideCursor ( QCursor ( Qt::WaitCursor ) );
Application::showStatusBarMessage ( "Compute Curvatures..." );
Application::showStatusBarMessage (tr( "Compute Curvatures...") );
Application::resetProgressBar();
vtkSmartPointer<vtkCallbackCommand> progressCallback = vtkSmartPointer<vtkCallbackCommand>::New();
progressCallback->SetCallback(&Application::vtkProgressFunction);
......
......@@ -40,17 +40,17 @@ using namespace camitk;
// -------------------- Decimation constructor --------------------
Decimation::Decimation(ActionExtension *extension) : Action(extension) {
setName("Decimation");
setDescription("This action reduce the number of triangles in a triangle mesh, forming a good approximation to the original geometry. <br/><br /> The algorithm proceeds as follows. Each vertex in the mesh is classified and inserted into a priority queue. The priority is based on the error to delete the vertex and retriangulate the hole. Vertices that cannot be deleted or triangulated (at this point in the algorithm) are skipped. Then, each vertex in the priority queue is processed (i.e., deleted followed by hole triangulation using edge collapse). This continues until the priority queue is empty. Next, all remaining vertices are processed, and the mesh is split into separate pieces along sharp edges or at non-manifold attachment points and reinserted into the priority queue. Again, the priority queue is processed until empty. If the desired reduction is still not achieved, the remaining vertices are split as necessary (in a recursive fashion) so that it is possible to eliminate every triangle as necessary. <br/><br />To use this object, at a minimum you need to specify the parameter <b>Decimation percentage</b>. The algorithm is guaranteed to generate a reduced mesh at this level as long as the following four conditions are met:<ul> \
setDescription(tr("This action reduce the number of triangles in a triangle mesh, forming a good approximation to the original geometry. <br/><br /> The algorithm proceeds as follows. Each vertex in the mesh is classified and inserted into a priority queue. The priority is based on the error to delete the vertex and retriangulate the hole. Vertices that cannot be deleted or triangulated (at this point in the algorithm) are skipped. Then, each vertex in the priority queue is processed (i.e., deleted followed by hole triangulation using edge collapse). This continues until the priority queue is empty. Next, all remaining vertices are processed, and the mesh is split into separate pieces along sharp edges or at non-manifold attachment points and reinserted into the priority queue. Again, the priority queue is processed until empty. If the desired reduction is still not achieved, the remaining vertices are split as necessary (in a recursive fashion) so that it is possible to eliminate every triangle as necessary. <br/><br />To use this object, at a minimum you need to specify the parameter <b>Decimation percentage</b>. The algorithm is guaranteed to generate a reduced mesh at this level as long as the following four conditions are met:<ul> \
<li>topology modification is allowed (i.e., the parameter <b>Preserve topology</b> is false); </li>\
<li>mesh splitting is enabled (i.e., the parameter <b>Splitting</b> is true); </li>\
<li>the algorithm is allowed to modify the boundaries of the mesh (i.e., the parameter <b>Boundary vertex deletion?</b> is true); </li>\
<li>the maximum allowable error (i.e., the paramter <b>Maximum error</b>) is set to <i>1.0e+38f</i> (default value). </ul> \
Other important parameters to adjust are the <b>Feature angle</b> and <b>Split angle</b> parameters, since these can impact the quality of the final mesh.");
Other important parameters to adjust are the <b>Feature angle</b> and <b>Split angle</b> parameters, since these can impact the quality of the final mesh."));
setComponent("MeshComponent");
setFamily("Mesh Processing");
addTag("Decimation");
addTag("Simplify");
addTag(tr("Decimation"));
addTag(tr("Simplify"));
// lazy instanciation
actionWidget = NULL;
......@@ -108,7 +108,7 @@ Decimation::~Decimation() {
Action::ApplyStatus Decimation::apply() {
// set waiting cursor and status bar
QApplication::setOverrideCursor ( QCursor ( Qt::WaitCursor ) );
Application::showStatusBarMessage("Performing Decimation");
Application::showStatusBarMessage(tr("Performing Decimation"));
Application::resetProgressBar();
MeshComponent * targetMesh = dynamic_cast<MeshComponent*>(getTargets().last());
......
......@@ -45,7 +45,7 @@ using namespace camitk;
ExportAsMDL::ExportAsMDL(ActionExtension * extension) : Action(extension) {
// Setting name, description and input component
setName("ExportAsMDL");
setDescription("ExportAsMDL");
setDescription(tr("Export As MDL"));
setComponent("VtkMeshComponent");
// Setting classification family and tags
......@@ -64,7 +64,7 @@ ExportAsMDL::~ExportAsMDL() {
void ExportAsMDL::outputMDL() {
QString ofile = QFileDialog::getSaveFileName(NULL, tr("Save As MDL..."), QString(), "MDL format(*.mdl)");
QString ofile = QFileDialog::getSaveFileName(NULL, tr("Save As MDL..."), QString(), tr("MDL format(*.mdl)"));
if (!ofile.isEmpty()) {
outputfile->setText(ofile);
......
......@@ -39,10 +39,10 @@ using namespace camitk;
ExtractEdges::ExtractEdges(ActionExtension* extension) : Action(extension) {
this->setName("Extract Edges");
this->setDescription("Extract edges from a mesh");
this->setDescription(tr("Extract edges from a mesh"));
this->setComponent("MeshComponent");
this->setFamily("Mesh Processing");
this->addTag("ExtractEdges");
this->addTag(tr("ExtractEdges"));
}
......@@ -51,7 +51,7 @@ Action::ApplyStatus ExtractEdges::apply() {
// set waiting cursor and status bar
QApplication::setOverrideCursor ( QCursor ( Qt::WaitCursor ) );
Application::showStatusBarMessage("Extracting edges...");
Application::showStatusBarMessage(tr("Extracting edges..."));
Application::resetProgressBar();
vtkSmartPointer<vtkCallbackCommand> progressCallback = vtkSmartPointer<vtkCallbackCommand>::New();
progressCallback->SetCallback(&Application::vtkProgressFunction);
......
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