Git Product home page Git Product logo

Comments (14)

shaise avatar shaise commented on July 18, 2024 1

Yes! I will take a look

from freecad_fastenerswb.

shaise avatar shaise commented on July 18, 2024 1

I see, why don't you present them using Title Case, and when saving you do it in lowercase... or even better ignore the case when reading from the file so old versions will be ok, and the new versions of the file will be written in title case.

Once again - this is internal to freecad. That's why you can not translate property names.
The only way to fix it currently, Is create a conversion script that read old files, copy old parameters to new parameters and delete old parameters. Also, every place there is a use for the parametes (fastener WB files or any script that uses it) must be converted as well. I wish that there was a possibility to have a separate display name - this way it was possible to change only the display name and even have translations for it.
Perhaps Freecad will eventually support it.

from freecad_fastenerswb.

shaise avatar shaise commented on July 18, 2024 1

@leoheck , After some consideration I decided to change Fasteners to Title Case, Since doing it in freecad core will take sometime.
This work meant changing 72 files and add a built in migration script to migrate old Fastener files.
I guess this comprehensive change might cause some things to break, but I'll fix it once I get feedback from the community.
If you have old files with fasteners, please try them (by loading and doing some changes to the fasteners). Let me know if you encounter issues.
Thanks!
image

from freecad_fastenerswb.

leoheck avatar leoheck commented on July 18, 2024 1

I am checking this right now, this looks good and professional.

image

Did not have any issues with a couple of files.
I will close this issue, and if I have any I can open it again, or create a new one. Cool?

from freecad_fastenerswb.

shaise avatar shaise commented on July 18, 2024

the true/false are built in FreeCad properties. they are not controlled by fasteners workbench

from freecad_fastenerswb.

leoheck avatar leoheck commented on July 18, 2024

I see, but this list is a display that does not need to be the Python code itself. You can treat them to display to the user. You can also treat them to get from the user. Freecad is getting polished on the dev version and I thought the text on this extension could be improved too.

from freecad_fastenerswb.

shaise avatar shaise commented on July 18, 2024

Perhaps I was not clear. I can not change it even if I want to. This is an internal FreeCAD featute.
For example: sketch parameters are also lower case:
image

from freecad_fastenerswb.

leoheck avatar leoheck commented on July 18, 2024

Ah, I see. Then if it is like that everywhere, it is good as it is. Now property names could still be improved to match the other properties, right?

from freecad_fastenerswb.

leoheck avatar leoheck commented on July 18, 2024

Your example shows the Title case is used when there is more than one word.

image

from freecad_fastenerswb.

shaise avatar shaise commented on July 18, 2024

And... Sorry. Although this name is controlled by the workbench, this is also saved when saving the file. If I change everything to upper case, it will no longer be able to read old files...

from freecad_fastenerswb.

leoheck avatar leoheck commented on July 18, 2024

I see, why don't you present them using Title Case, and when saving you do it in lowercase... or even better ignore the case when reading from the file so old versions will be ok, and the new versions of the file will be written in title case.

from freecad_fastenerswb.

leoheck avatar leoheck commented on July 18, 2024

I think you can a simple regexp to filter out the case when reading from the file.

from freecad_fastenerswb.

leoheck avatar leoheck commented on July 18, 2024

Thanks for the clarification @shaise

from freecad_fastenerswb.

leoheck avatar leoheck commented on July 18, 2024

Oh, that's beautiful. Nice @shaise. Thanks for considering this suggestion. As soon as I install it I will test my old files to report in case of any problem.

from freecad_fastenerswb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.