sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    STYLES - language handling

    Scheduled Pinned Locked Moved Developers' Forum
    1 Posts 1 Posters 438 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • artmusicstudioA Offline
      artmusicstudio
      last edited by

      edit 170122-found the string-file for style names in the programm-dir........one step further.....

      hello,
      maybe somebody has an idea for the following problem:

      in german-skp-version:

      • when i iterate thru model.styles via ruby and display their names,
        the styles are shown as following (edit: in ruby concole, not skp-style-menu):

      • own styles with user-name or edited styles : name in german

      • original styles (like chosen from style-submenues and un-edited: in english (skp-basic name in [style-name] form

      • in the style menu the name is always shown in german

      as soon as i click on the german name in the style menu (top line in the style menu), the style gets converted and will be shown now (ruby-iteration) in german in the ruby console.

      NOW:

      how can i retrieve the german name for the english name and vice versa via ruby? is it a hash?

      the problem is:

      i have an input menu, where i can copy the name from the skp-menu and search for the style.
      but here

      not-edited original styles cannot be found, because

      • skp-menu offers the GERMAN NAME (which i copy via c&p)
      • ruby iterates in the english namespace and cannot find this style via name-input

      any solution or tip?

      thanx a lot in advance
      stan

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement