Giter VIP home page Giter VIP logo

Comments (5)

teocomi avatar teocomi commented on June 16, 2024 1

Thanks for flagging this Martin!
Seems to have been an involuntary consequence of our rework on categories. We'll make sure it's addresses before the stable release.

cc @paloknapo @AlanRynne

from speckle-sharp.

teocomi avatar teocomi commented on June 16, 2024

Thanks for flagging this Martin!
Seems to have been an involuntary consequence of our rework on categories. We'll make sure it's addresses before the stable release.

cc @paloknapo @AlanRynne

from speckle-sharp.

teocomi avatar teocomi commented on June 16, 2024

Hey @martinromby my understanding is that the strings sent in 2.15 use the display value of the Category field, which is localized.
How are you currently handling categories in other languages?

from speckle-sharp.

clairekuang avatar clairekuang commented on June 16, 2024

Hi @martinromby , to give you more context this misalignment was introduced because we've (1) refactored how we were previously sending category values with a new list of RevitCategory enums for better internal alignment and (2) we are now using the category display name for our Collection class while using the enum value for object category property values.

Would changing the Collection name to match the object category property values solve your misalignment issue, eg using StructuralColumns instead of Structural Columns for both the Collection name and the object category value?

from speckle-sharp.

martinromby avatar martinromby commented on June 16, 2024

Hi @clairekuang and @teocomi
Thanks for taking time out of your retreat to get back to me on this. :)

Hey @martinromby my understanding is that the strings sent in 2.15 use the display value of the Category field, which is localized. How are you currently handling categories in other languages?

We haven't run into these issues just yet. But this PR smoothens those bums - thanks! 🙌

Just for reference:
Commit with 2.15.2 version - with DEU localization (localized category naming):
https://speckle.xyz/streams/8bfb3033d8/commits/059d931656

Commit with 2.16.0-rc3 version - with DEU localization (standardised category naming):
https://speckle.xyz/streams/8bfb3033d8/commits/bc4f108228

Hi @martinromby , to give you more context this misalignment was introduced because we've (1) refactored how we were previously sending category values with a new list of RevitCategory enums for better internal alignment and (2) we are now using the category display name for our Collection class while using the enum value for object category property values.

Would changing the Collection name to match the object category property values solve your misalignment issue, eg using StructuralColumns instead of Structural Columns for both the Collection name and the object category value?

Ahh - I see. At the moment we use the object category property values, but I agree that the ENUM lists are a better implementation and we'll change our whitelisted categories accordingly.
I'll leave the Collection naming up to you, but I weigh towards some sort of naming alignment between Collection and object.

from speckle-sharp.

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.