[solved] Sketcher Add xxx constraint (undo-redo-stack)

Hello community,

for the PartDesign related Sketcher there are about 50 entries in crowdin following the pattern “Add xxx constraint” and I wonder where they belong to.
They aren’t used as commands nor as tool tips. I have looked up several other place, but didn’t succeed to find these strings anywhere in the GUI or preferences.

Does anybody know if they are used at all outside the program code and if so take me by the hand and lead me to the relevant locations, please? :sunglasses:

If they are not used anywhere they shouldn’t be marked to be translated, should they?

Is it only in PartDesign, i.e. only concerning the 7 sketcher commands provided in PartDesign workbench?

As I mentioned before I have no clue where these phrases are used.
Crowdin context tells us they were obtained from the the Sketcher .ts file:

Key.Command[‘Add xxx constraint’]
Command

File: Sketcher.ts

Replace xxx with one of the following:

lock, ‘Distance to origin’, Distance, Symmetry, Horizontal, Vertical, Block, Angle, Equality, Radius, arc angle, concentric and length, DistanceX, DistanceY, point to circle, horizontal, vertical, ‘Lock’, relative ‘Lock’, fixed, ‘Block’, block, coincident, distance from horizontal axis, distance from vertical axis, point to point distance, point to line Distance, circle to circle distance, circle to line distance, length, point on object, point to point horizontal distance, fixed x-coordinate, point to point vertical distance, fixed y-coordinate, parallel, perpendicular, perpendicularity, tangent, radius, diameter, radiam, angle, equality, symmetric, Snell’s law, auto,

Some are in plural, Add xxx constraints:
‘Horizontal’, ‘Vertical’, Symmetry, Distance, Equality,

And one odd: Add tangent constraint point

I am trying to proof-read the translations and to find them in the GUI. If the translation seems to fit well in the location where I found it I’ll mark it as approved. But it is quite useless to approve entries that cannot be found anywhere.
It is useless as well to translate phrases that are not used, which seems to be the case here.

I thought I had seen these names in old function or icon names, but couldn’t find anything in the wiki history.
abdullah may know where they come from.

Sorry for the late reply.

I think those are the ones of the commands (for the undo/redo stack):

https://github.com/FreeCAD/FreeCAD/blob/563dc0b0cc621f6e67ecb50da733ab699c0d73a4/src/Mod/Sketcher/Gui/CommandConstraints.cpp#L1554C1-L1554C81

Do I make sense?

Yes! The stack is the solution. Thank you. :slight_smile: