From d5c7ad3c50f89a2ddc2de1866ffb7f09397f3be2 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Sun, 22 Mar 2020 15:29:32 +0300 Subject: [PATCH] Improve translations to French --- src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts | 105 +++++++++++++++++++- src/GeomAlgoAPI/GeomAlgoAPI_Defeaturing.cpp | 7 ++ src/SketchPlugin/SketchPlugin_msg_fr.ts | 24 +++++ 3 files changed, 131 insertions(+), 5 deletions(-) diff --git a/src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts b/src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts index 71d8468c1..0dfcdfacf 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts +++ b/src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts @@ -991,7 +991,7 @@ advanced - avancée + Avancée @@ -1295,7 +1295,7 @@ - Recover:objects + Copy:objects Sources: Sources: @@ -1310,7 +1310,7 @@ - Recover:number + Copy:number Nb copies Nb de copies @@ -1964,7 +1964,7 @@ Attribute "%1" is not initialized. - Sélectionner des objetsю + Sélectionner des objets. @@ -4144,6 +4144,10 @@ Perform copy and rotate Effectuer une copie et une rotation + + Angular direction + Direction angulaire + AngularCopy:axis_angular @@ -4155,6 +4159,10 @@ Select an edge for the axis of rotation Sélectionnez une arête pour l'axe de rotation + + Attribute "%1" is not initialized. + Sélectionnez une arête pour l'axe de rotation + AngularCopy:axis_angular:GeomValidators_ShapeType @@ -4173,6 +4181,10 @@ Select objects Sélectionner des objets + + Attribute "%1" is not initialized. + Sélectionner des objets + AngularCopy:nb_angular @@ -4208,6 +4220,10 @@ Perform copy and translate Effectuer la copie et la translation + + First direction + Première direction + LinearCopy:axis_first_dir @@ -4219,6 +4235,10 @@ Select an edge for the first direction Sélectionnez une arête pour la première direction + + Attribute "%1" is not initialized. + Sélectionnez une arête pour la première direction + LinearCopy:axis_first_dir:GeomValidators_ShapeType @@ -4237,6 +4257,17 @@ Select an edge for the second direction Sélectionnez une arête pour la deuxième direction + + Attribute "%1" is not initialized. + Sélectionnez une arête pour la deuxième direction + + + + LinearCopy:axis_second_dir:GeomValidators_ShapeType + + The object is empty + L'objet est vide + LinearCopy:main_objects @@ -4248,6 +4279,10 @@ Select objects Sélectionner des objets + + Attribute "%1" is not initialized. + Sélectionner des objets + LinearCopy:nb_first_dir @@ -4511,6 +4546,10 @@ Select an object Sélectionnez un objet + + Attribute "%1" is not initialized. + Sélectionnez la forme cible. + Placement:placement_end_shape:GeomValidators_BodyShapes @@ -4529,6 +4568,10 @@ Select objects to move Sélectionnez les objets à déplacer + + Attribute "%1" is not initialized. + Sélectionnez les objets à déplacer. + Placement:placement_reverse_direction @@ -4551,6 +4594,10 @@ Select an object Sélectionnez un objet + + Attribute "%1" is not initialized. + Sélectionnez la forme de départ. + Placement:placement_start_shape:GeomValidators_BodyShapes @@ -4600,6 +4647,10 @@ Select an edge for axis Sélectionnez une arête pour l'axe + + Attribute "%1" is not initialized. + Sélectionnez une arête pour l'axe + Rotation:center_point @@ -4611,6 +4662,10 @@ Select a center point Sélectionnez un point central + + Attribute "%1" is not initialized. + Sélectionnez un point central + Rotation:center_point:GeomValidators_ConstructionComposite @@ -4629,6 +4684,10 @@ Select an end point Sélectionnez un point d'arrivée + + Attribute "%1" is not initialized. + Sélectionnez un point d'arrivée + Rotation:end_point:GeomValidators_ConstructionComposite @@ -4647,6 +4706,10 @@ Select solid objects Sélectionner des objets solides + + Attribute "%1" is not initialized. + Sélectionnez les objets à déplacer. + Rotation:start_point @@ -4658,6 +4721,10 @@ Start point Point de départ + + Attribute "%1" is not initialized. + Sélectionnez un point de départ + Rotation:start_point:GeomValidators_ConstructionComposite @@ -4704,6 +4771,10 @@ Select an axis Sélectionnez un axe + + Attribute "%1" is not initialized. + Sélectionnez l'axe de symétrie. + Symmetry:axis_object:GeomValidators_ShapeType @@ -4733,6 +4804,10 @@ Select solid objects Sélectionner des objets solides + + Attribute "%1" is not initialized. + Sélectionnez les objets. + Symmetry:plane_object @@ -4744,6 +4819,10 @@ Select a plane Sélectionnez un plan + + Attribute "%1" is not initialized. + Sélectionnez le plan de symétrie. + Symmetry:point_object @@ -4755,7 +4834,11 @@ Select a point Sélectionnez un point - + + Attribute "%1" is not initialized. + Sélectionnez le point de symétrie. + + Symmetry:point_object:GeomValidators_ShapeType @@ -4856,6 +4939,10 @@ Select the end point to define the axis Sélectionnez le point final pour définir l'axe + + Attribute "%1" is not initialized. + Sélectionnez le point final. + Translation:end_point:GeomValidators_ConstructionComposite @@ -4874,6 +4961,10 @@ Select solid objects Sélectionner des objets solides + + Attribute "%1" is not initialized. + Sélectionnez les objets à déplacer. + Translation:start_point @@ -4885,6 +4976,10 @@ Start point Point de départ + + Attribute "%1" is not initialized. + Sélectionnez le point de départ. + Translation:start_point:GeomValidators_ConstructionComposite diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Defeaturing.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Defeaturing.cpp index 9b058e8b3..4b9e21162 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Defeaturing.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Defeaturing.cpp @@ -54,6 +54,13 @@ void GeomAlgoAPI_Defeaturing::build(const GeomShapePtr& theBaseSolid, aDefeaturing->DumpErrors(errors); aDefeaturing->DumpWarnings(errors); myError = errors.str(); + // the error string may end by '\n', remove it for correct translation + size_t aNbToRemove = 0; + for (std::string::reverse_iterator it = myError.rbegin(); + it != myError.rend() && *it == '\n'; ++it) + ++aNbToRemove; + if (aNbToRemove > 0) + myError = myError.substr(0, myError.size() - aNbToRemove); return; } diff --git a/src/SketchPlugin/SketchPlugin_msg_fr.ts b/src/SketchPlugin/SketchPlugin_msg_fr.ts index c1a83d63f..5e1b889ba 100644 --- a/src/SketchPlugin/SketchPlugin_msg_fr.ts +++ b/src/SketchPlugin/SketchPlugin_msg_fr.ts @@ -1114,6 +1114,10 @@ Select list of objects to be rotated Sélectionnez la liste des objets à faire pivoter + + Attribute "%1" is not initialized. + Sélectionnez la liste des objets à faire pivoter + @@ -1251,6 +1255,10 @@ Select list of objects to be translated Sélectionner la liste des objets à translater + + Attribute "%1" is not initialized. + Sélectionner la liste des objets à translater. + @@ -2564,6 +2572,10 @@ SketchConstraintDistanceVertical:ConstraintEntityA + + Attribute "%1" is not initialized. + Sélectionnez un point. + First point Premier point @@ -2582,6 +2594,10 @@ SketchConstraintDistanceVertical:ConstraintEntityB + + Attribute "%1" is not initialized. + Sélectionnez un point. + Second point Deuxième point @@ -3801,6 +3817,10 @@ Center of rotation Centre de rotation + + Attribute "%1" is not initialized. + Sélectionnez le centre de rotation. + SketchMultiRotation:MultiRotationObjects @@ -3853,6 +3873,10 @@ Start point of translation Point de départ de la translation + + Attribute "%1" is not initialized. + Point de départ de la translation. + SketchMultiTranslation:ValueType -- 2.30.2