Closed hasecilu closed 3 months ago
Hi @hasecilu ,
Sorry, this will not work. Since your translation goes all the way down to the command property as well, loading a file saved in another language will cause an error Perhaps we need to translate only the gui.
shai
Hi, I made several tests and it seems is like that, previously only tested on current session.
Do you know if FreeCAD has a method to get the index of the enum property? When we retrieve the value it returns the string, i think would to the trick.
When freecad saves an enum parameter, it saves it name. When it reads it, it must be one of the enums it have in the list.
Well, for now I think the method OnChanged()
could be made using the strings, I'll make another PR
As said, the gui (task window) can still be translatable - but then set the property with the original values.
updateEnableState()
method