Commit 559b5e16 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@1931 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 89f368b2
......@@ -61,7 +61,7 @@ MergeMeshs::MergeMeshs(ActionExtension * extension) : Action(extension) {
// Setting classification family and tags
this->setFamily("Mesh Processing");
this->addTag("Merge Meshes");
this->addTag(tr("Merge Meshes"));
Property* valueMesh1Property = new Property(tr("Value for mesh 1"), 1, tr("In the file, each triangle will be saved with its (indice, value)"), "");
valueMesh1Property->setAttribute("minimum", 1);
......
......@@ -53,13 +53,13 @@ using namespace camitk;
MeshClipping::MeshClipping(ActionExtension *extension): Action(extension) {
//-- Initializing action parameters
this->setName("Mesh Clipping");
this->setDescription("Interactive Mesh Clipping in the 3D Viewer");
this->setDescription(tr("Interactive Mesh Clipping in the 3D Viewer"));
this->setComponent("MeshComponent"); // nothing needed
this->setFamily("Mesh Processing");
this->addTag("Mesh");
this->addTag("Clipping");
this->addTag("3D Interaction");
this->addTag(tr("Mesh"));
this->addTag(tr("Clipping"));
this->addTag(tr("3D Interaction"));
// please always use lazy instanciation for GUI
// (i.e., no GUI related code in action constructors)
......@@ -361,9 +361,9 @@ void MeshClipping::changeSmoothing() {
//- Updating button text
QPushButton *button = dynamic_cast< QPushButton * >(sender());
if(smoothing)
button->setText("Raw clipping");
button->setText(tr("Raw clipping"));
else
button->setText("Smooth clipping");
button->setText(tr("Smooth clipping"));
apply();
......@@ -376,9 +376,9 @@ void MeshClipping::changeAllComponents() {
//- Updating button text
QPushButton *button = dynamic_cast< QPushButton * >(sender());
if(allComponents) {
button->setText("Clip Selected Components only");
button->setText(tr("Clip Selected Components only"));
} else {
button->setText("Clip All Components");
button->setText(tr("Clip All Components"));
Component *candidate;
foreach(candidate, list) {
candidate->setDataConnection(candidate->getDataPort());
......
......@@ -49,8 +49,8 @@ using namespace camitk;
SaveDisplacementFromTransformation::SaveDisplacementFromTransformation(ActionExtension * extension) : Action(extension) {
// Setting name, description and input component
setName("Save Displacement From Transformation");
setDescription("Save the displacement from the last translation in a text file. Alternatively, load a transformation from \
a text file and apply it on the selected Mesh component.");
setDescription(tr("Save the displacement from the last translation in a text file. Alternatively, load a transformation from \
a text file and apply it on the selected Mesh component."));
setComponent("MeshComponent");
// Setting classification family and tags
......@@ -163,8 +163,8 @@ QWidget* SaveDisplacementFromTransformation::getWidget() {
// Setting the widget containing the parameters, using the default widget
actionWidget = new ActionWidget ( this );
QPushButton *loadtransformation = new QPushButton("Load Transformation");
QPushButton *outputbutton = new QPushButton("Output file");
QPushButton *loadtransformation = new QPushButton(tr("Load Transformation"));
QPushButton *outputbutton = new QPushButton(tr("Output file"));
outputfile = new QLineEdit();
actionWidget->layout()->addWidget( loadtransformation );
......
......@@ -57,7 +57,7 @@ SmoothFilter::SmoothFilter(ActionExtension * extension) : Action(extension) {
// Setting classification family and tags
setFamily("Mesh Processing");
addTag("SMO");
addTag(tr("SMO"));
// Setting the action's parameters
Property* boundarySmoothingProperty = new Property(tr("Boundary smoothing"), true, tr("Turn on/off the smoothing of vertices on the boundary of the mesh."), "");
......
......@@ -55,13 +55,13 @@ using namespace camitk;
WarpOut::WarpOut(ActionExtension* extension) : Action(extension) {
// Setting name, description and input component
setName("Warp Out");
setDescription("Move the outside points along the normal in order to thicken a volumic mesh (works only with closed- centered- mesh).");
setDescription(tr("Move the outside points along the normal in order to thicken a volumic mesh (works only with closed- centered- mesh)."));
setComponent("MeshComponent");
// Setting classification family and tags
setFamily("Mesh Processing");
addTag("Grow");
addTag("Thicken");
addTag(tr("Grow"));
addTag(tr("Thicken"));
Property* displacementProperty = new Property(tr("Displacement"), 1.0, tr("The length of the displacement of the mesh toward its normals."), "");
displacementProperty->setAttribute("minimum", 0.0);
......@@ -91,7 +91,7 @@ Action::ApplyStatus WarpOut::apply() {
} else if ( vtkPolyData::SafeDownCast ( targetMesh->getPointSet() ) ) {
resultPointSet = vtkSmartPointer<vtkPolyData>::New();
} else {
QMessageBox::warning(NULL, "Warp Out", "Invalid mesh: the selected component (\"" + targetMesh->getName() + "\") is not an unstructured grid nor a polydata.", QMessageBox::Abort);
QMessageBox::warning(NULL, tr("Warp Out"), tr("Invalid mesh: the selected component (\"" )+ targetMesh->getName() + tr("\") is not an unstructured grid nor a polydata."), QMessageBox::Abort);
return ABORTED;
}
......
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