• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Multi-language plugin

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

    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
    • T Offline
      thomthom
      last edited by 20 Apr 2011, 10:47

      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 26 Apr 2011, 07:24

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

        1 Reply Last reply Reply Quote 0
        • P Offline
          Pout
          last edited by 27 Apr 2011, 11:40

          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 28 Apr 2011, 14:27

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

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 28 Apr 2011, 15:54

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

              TIG

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

              Advertisement