sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    Multi-language plugin

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 483 Views
    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.
    • P Offline
      Pout
      last edited by

      I was wondering if there is a built-in possibility so a plugin can be installed in different languages?
      Probably somewhere with the resources? I assume the .strings files are translation files?

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Check out the example scripts that comes with SketchUp, they demonstrates some methods for localizing strings.

        Not sure how many script authors use them. Me and some few others use our own wrappers. I use this custom class from my TT_Lib2 library: http://www.thomthom.net/software/sketchup/tt_lib2/doc/TT/Babelfish.html
        That's because I wanted more features than what SU provided. And a less verbose way to add the strings.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • P Offline
          Pout
          last edited by

          Thx for th information thomthom, i'll have a look

          1 Reply Last reply Reply Quote 0
          • P Offline
            Pout
            last edited by

            ThomThom

            I have had a look at the way SU works (with LanguageHandler.new)
            I'm still a bit puzzled though on what the best way to do this is

            Default LanguageHandler seems to look into Resources/en-US directory for the strings file
            So i suppose when a french SU version is installed it will look into Resources/FR (or something simular)

            This, in short would mean that the user (or the installation procedure) would need to put the correct language file in the correct directory (english language file in en-US, french language file in FR)
            Is there an easier way to do this?
            Maybe write all the plugin specific language files in a directory and access those?

            1 Reply Last reply Reply Quote 0
            • P Offline
              Pout
              last edited by

              Wouldn't it be a good idea to create a global system for all plugins?

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                Sketchup tried it... BUT many of us prefer our own methods...

                TIG

                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