Anyone with non-english Sketchup?

Anyone with non-english Sketchup?

Postby thomthom » Thu Jun 17, 2010 4:55 pm

Can you please post the result of typing this into the Ruby Console:

Sketchup.get_shortcuts
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: Anyone with non-english Sketchup?

Postby tomasz » Thu Jun 17, 2010 5:15 pm

Code: Select all
Sketchup.get_shortcuts
["Ctrl+A\tEdycja/Zaznacz wszystko", "Ctrl+C\tEdycja/Kopiuj", "Ctrl+X\tEdycja/Wytnij", ........................... ]


SU 6.4.112 PL
It is irritating in general, because I cannot transfer (export & import) shortcuts between SU6PL and SU7 Pro ENG.
0

tomasz 
SU2TH & SU2KT Developer
 

Re: Anyone with non-english Sketchup?

Postby thomthom » Thu Jun 17, 2010 5:24 pm

Thanks. So the top menus appear in the language of what Sketchup is localized. hm...

Any methods where one can query what the active localizes string is for an English string?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: Anyone with non-english Sketchup?

Postby pilou » Thu Jun 17, 2010 10:14 pm

for a French Su V7 free
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: Anyone with non-english Sketchup?

Postby Dan Rathbun » Thu Jul 15, 2010 3:45 pm

Can you guys with Windows Non-english try the 2 Win32 methods
Inspector window rollup/rolldown
requires Win32API.so in the plugins folder

(1) open your Ruby Console and Outliner window

(2) we wish to know if the 2 methods work with English window names as arguments, like:

isRolledUp('Outliner')

toggleRollUp('Outliner')
0
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    Re: Anyone with non-english Sketchup?

    Postby Didier Bur » Fri Jul 16, 2010 10:49 pm

    Hi,

    isRolledUp('Outliner') always returns true, either with outliner rolled up or down, or even when it is closed.

    toggleRollUp('Outliner') always returns 0 and never works as expected (nothing happens).

    When called with the french name of the window (Structure), both methods work.
    When called with other french names of windows (Composants, Matières, etc), both methods work as well.

    Hope this helps
    0
    Didier Bur
    Ecole Nationale Supérieure d'Architecture de Nancy (F)
    http://rld.crai.archi.fr/rubylibrarydepot/
    User avatar
    Didier Bur 
     

    Re: Anyone with non-english Sketchup?

    Postby Dan Rathbun » Sat Jul 17, 2010 11:03 am

    Didier Bur wrote: Hope this helps

    Yes it does.. thank you Didier !

    It means we need to build up some .strings Hash files for each one of the language local Sketchup editions.

    I'll make up some templates, and post them in the SKX forum.
    0
      I'm not here much anymore. But a PM will fire email notifications.
      User avatar
      Dan Rathbun 
      PluginStore Author
      PluginStore Author
       

      Re: Anyone with non-english Sketchup?

      Postby Didier Bur » Sat Jul 17, 2010 9:35 pm

      Hi
      It means we need to build up some .strings Hash files for each one of the language local Sketchup editions

      Yes, because I didn't find anything related to translation from english menus, toolbars, etc, even in the 'resources/en-US' or 'resources/fr' folders.
      Stangely when I create an item in a pulldown menu, I use the english name "tools" or "draw" and this works for every localized SU...
      0
      Didier Bur
      Ecole Nationale Supérieure d'Architecture de Nancy (F)
      http://rld.crai.archi.fr/rubylibrarydepot/
      User avatar
      Didier Bur 
       

      Re: Anyone with non-english Sketchup?

      Postby thomthom » Sat Jul 17, 2010 10:55 pm

      Didier Bur wrote:Hi
      It means we need to build up some .strings Hash files for each one of the language local Sketchup editions

      Yes, because I didn't find anything related to translation from english menus, toolbars, etc, even in the 'resources/en-US' or 'resources/fr' folders.
      Stangely when I create an item in a pulldown menu, I use the english name "tools" or "draw" and this works for every localized SU...

      This is strange. Why haven't they made it so that shortcuts works like that...
      0
      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund
      User avatar
      thomthom 
      PluginStore Author
      PluginStore Author
       

      Re: Anyone with non-english Sketchup?

      Postby Dan Rathbun » Sun Jul 18, 2010 7:46 am

      (post removed ... off the Optimization topic.)

      I know how to solve the cross-language window issue on win32.
      0
        I'm not here much anymore. But a PM will fire email notifications.
        User avatar
        Dan Rathbun 
        PluginStore Author
        PluginStore Author
         

        Re: Anyone with non-english Sketchup?

        Postby TIG » Sun Jul 18, 2010 11:04 pm

        On a parallel issue...

        I have recently written an exporter for a rendering app.
        All was fine with it during beta-testing until a Dutch user found that none of his textures were getting used after a seemingly successful export.
        The image files were imported into the correct folder etc, but on closer examination it showed that as well as the material's name getting translated prior to writing the new file format [Red >> Rood etc] the file-path for the texture was as getting translated [Red.jpg >> Rood.jpg] in the API's reading of the texture's details... BUT the API's texturewriter simply used the original English name - so it made a file called 'Red.jpg' when the API said it was called 'Rood.jpg' and so it wasn't found in the new file format's execution.
        This occurred when the texturewriter's write_all method was used, so I changed it to write each texture individually and then forced the 'name' of the written image to match the API's reading of its 'translated' name ! It now works OK in any language. :enlight:

        A related further 'aside aside'... The texturewriter makes the exported image file from the material's .SKM details - so it's possible to have an image file inside the .SKM [actually a 'zip' file] called 'Red.gif' and in the 'filepath' have it named down as 'Red.png' [as you can't actually import a '.gif' I find it hard to reconcile, but I have seen it [!]] - so consequently it will make the incorrect file type on a texture 'write' compared to it's "real" name ! :?
        0
        TIG
        User avatar
        TIG 
        Global Moderator
         

        Re: Anyone with non-english Sketchup?

        Postby thomthom » Mon Jul 19, 2010 9:10 am

        SketchUp reads GIF images - no problem. It's just the filedialog that doesn't list it. If you type * in the filename when you try to insert an image then you can select GIFs and it works.
        0
        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund
        User avatar
        thomthom 
        PluginStore Author
        PluginStore Author
         

        Re: Anyone with non-english Sketchup?

        Postby TIG » Mon Jul 19, 2010 9:21 am

        thomthom wrote:SketchUp reads GIF images - no problem. It's just the filedialog that doesn't list it. If you type * in the filename when you try to insert an image then you can select GIFs and it works.

        I can't select * as an image file-type, only from a list of types or 'all' - neither of which cover 'gif'. :?
        I know you can load a gif by renaming it as a png - though I never saw why it wasn't a supported image extension otherwise - Is being able to load a gif a Mac thing? Interestingly the gif renamed png works fine and is listed in the path and skm as a png and can be saved as png too ??? Gif-ness disappears completely on the rename???
        I had this problem SKP file from someone that wouldn't export the texture properly [overlaid on this Dutch translation confusion I outlined earlier!] where in a material's texture in the SKM it was a gif BUT it said it was a png in the texture-path text-box on the dialog [or when you asked it what it was via the API] BUT it texture-wrote a gif as the output... caused presumably by a manual edit that confused it? :roll: I can't see how it became a gif inside the skm [unless it was manually edited as if a zip file] as making one my way it always says it's a png whatever way you slice it !
        0
        TIG
        User avatar
        TIG 
        Global Moderator
         

        SketchUcation One-Liner Adverts

        by Ad Machine » 5 minutes ago



        Ad Machine 
        Robot
         



         

        Return to Developers' Forum

        Who is online

        Users browsing this forum: markitekt, normdutchman and 6 guests

        Visit our sponsors: