1 Reply Latest reply on Aug 11, 2008 12:51 PM by Loic.Aigon

    finding locale-independant strings

    Level 1
      Hello all,

      I am still struggling with InDesign's locale-independant strings.

      The line
      var aSubMenu = myMainMenu.menuElements.item("$ID/Object");
      

      works just fine. But the next menu in line
      var aSubMenu = myMainMenu.menuElements.item("$ID/Table");
      

      yields nothing.

      Also the line
      app.findKeyStrings("Tabelle");
      

      gives: "$ID/XML_TableName,$ID/kTablePanelTitle" but not the menu.

      What am I missing here? Can it be that some menuItems do not have a locale-independant form?

      Thank you
      Gerald
        • 1. Re: finding locale-independant strings
          Loic.Aigon Adobe Community Professional
          Hi Gerald,
          In the Indesign CS3 scripting guide there is a piece of explanation on menus. There is a script to write a list of all menu actions (in locale version). So if a element is not translated in locale version, you will see it in a second.
          Could it help ?
          Loic
          PS: By the way can I invite you to help Thomas regarding to the button script ? He is in need of limiting the script action to items on a specific layer. I tried to help but not sure to implement your script well.